<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Enumap&#039;s Weblog</title>
	<atom:link href="http://enumap.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://enumap.wordpress.com</link>
	<description>GIS, GeoMatics, GeoInfoMatics, Photogrammetry, Remote sensing, Map</description>
	<lastBuildDate>Sun, 15 Jan 2012 14:51:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='enumap.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Enumap&#039;s Weblog</title>
		<link>http://enumap.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://enumap.wordpress.com/osd.xml" title="Enumap&#039;s Weblog" />
	<atom:link rel='hub' href='http://enumap.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Convert Points to Line, Polyline and Polygon</title>
		<link>http://enumap.wordpress.com/2012/01/05/convert-points-to-line-polyline-and-polygon/</link>
		<comments>http://enumap.wordpress.com/2012/01/05/convert-points-to-line-polyline-and-polygon/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 03:07:54 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=441</guid>
		<description><![CDATA[20120105 ไปเก็บข้อมูลโปรไฟล์ถนนวงแหวนตะวันออกมา ข้อมูลได้จาก GPS + IMU ภายหลังประมวลผลแล้วได้ข้อมูลเป็น จุด ออกมา 164,669 จุด เมื่อนำไปเปิดใน  QGIS แล้วเล่นทำเอาเครื่องอืดไปเลยทีเดียว กระนั้นเลยแปลงจาก จุดเรือนแสนเหล่านั้นให้เป็นเส้นดูดีกว่า อาจจะเร็วขึ้นบ้าง วิธีการนั้นสามารถทำได้หลายวิธี แต่ในที่นี้จะเสนอวิธีที่ใช้ซอฟต์แวร์ QGIS ที่เป็นซอฟต์แวร์ฟรี ไม่เสียค่าลิขสิทธิ์ และมีความสามารถเพียงพอต่อการใช้งานครับ ดังนี้ QGIS มี Plugins ที่ชื่อ Points2One ที่ทำหน้าที่จัดการเรื่องนี้อยู่ ติดตั้งมันซะ เมนู Plugins/Fetch Python Plugins&#8230; เลือก Points2One แล้ว คลิก Install plugin เมื่อติดตั้งเสร็จแล้วจะมี ไอคอนในทูลบาร์เป้นตัวหนังสือสีแดง P2 เมื่อเรียกใช้งานจะเห็นดังภาพ เลือกรูปแบบว่าต้องการให้เป็น รูปปิด หรือเส้น กำหนดชื่อ shapefile สำหรับบันทึกผล แล้วคลิก OK เมื่อเลือกให้ไฟล์ที่แปลงเสร็จแล้วแสดงใน QGIS [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=441&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20120105</p>
<p>ไปเก็บข้อมูลโปรไฟล์ถนนวงแหวนตะวันออกมา ข้อมูลได้จาก GPS + IMU<br />
ภายหลังประมวลผลแล้วได้ข้อมูลเป็น จุด ออกมา 164,669 จุด<br />
เมื่อนำไปเปิดใน  QGIS แล้วเล่นทำเอาเครื่องอืดไปเลยทีเดียว<br />
กระนั้นเลยแปลงจาก จุดเรือนแสนเหล่านั้นให้เป็นเส้นดูดีกว่า อาจจะเร็วขึ้นบ้าง<br />
วิธีการนั้นสามารถทำได้หลายวิธี แต่ในที่นี้จะเสนอวิธีที่ใช้ซอฟต์แวร์ QGIS ที่เป็นซอฟต์แวร์ฟรี<br />
ไม่เสียค่าลิขสิทธิ์ และมีความสามารถเพียงพอต่อการใช้งานครับ ดังนี้</p>
<p>QGIS มี Plugins ที่ชื่อ Points2One ที่ทำหน้าที่จัดการเรื่องนี้อยู่ ติดตั้งมันซะ</p>
<p>เมนู Plugins/Fetch Python Plugins&#8230;<br />
เลือก Points2One แล้ว คลิก Install plugin<br />
<a href="http://enumap.files.wordpress.com/2012/01/p21_1.jpg"><img class="alignnone size-medium wp-image-442" title="p21_1" src="http://enumap.files.wordpress.com/2012/01/p21_1.jpg?w=300&#038;h=203" alt="" width="300" height="203" /></a></p>
<p>เมื่อติดตั้งเสร็จแล้วจะมี ไอคอนในทูลบาร์เป้นตัวหนังสือสีแดง P2 เมื่อเรียกใช้งานจะเห็นดังภาพ<br />
<a href="http://enumap.files.wordpress.com/2012/01/p21_2.jpg"><img class="alignnone size-medium wp-image-443" title="p21_2" src="http://enumap.files.wordpress.com/2012/01/p21_2.jpg?w=300&#038;h=204" alt="" width="300" height="204" /></a></p>
<p>เลือกรูปแบบว่าต้องการให้เป็น รูปปิด หรือเส้น<br />
กำหนดชื่อ shapefile สำหรับบันทึกผล แล้วคลิก OK<br />
<a href="http://enumap.files.wordpress.com/2012/01/p21_3.jpg"><img class="alignnone size-medium wp-image-444" title="p21_3" src="http://enumap.files.wordpress.com/2012/01/p21_3.jpg?w=300&#038;h=203" alt="" width="300" height="203" /></a></p>
<p>เมื่อเลือกให้ไฟล์ที่แปลงเสร็จแล้วแสดงใน QGIS<br />
ผลที่ได้จะเห็นว่า เส้นอยู่ในแนวเดียวกันกับข้อมูลจุด<br />
เสร็จแล้ว เห็นไหม ไม่ยากเลย</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/441/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/441/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/441/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=441&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2012/01/05/convert-points-to-line-polyline-and-polygon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2012/01/p21_1.jpg?w=300" medium="image">
			<media:title type="html">p21_1</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2012/01/p21_2.jpg?w=300" medium="image">
			<media:title type="html">p21_2</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2012/01/p21_3.jpg?w=300" medium="image">
			<media:title type="html">p21_3</media:title>
		</media:content>
	</item>
		<item>
		<title>Memory card ติดในเครื่องเอาออกอย่างไรดี</title>
		<link>http://enumap.wordpress.com/2011/12/23/memory-card-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b9%83%e0%b8%99%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b9%80%e0%b8%ad%e0%b8%b2%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%ad%e0%b8%a2/</link>
		<comments>http://enumap.wordpress.com/2011/12/23/memory-card-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b9%83%e0%b8%99%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b9%80%e0%b8%ad%e0%b8%b2%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%ad%e0%b8%a2/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 11:51:23 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=433</guid>
		<description><![CDATA[20111224 &#160; เครื่องโน๊ตบุ๊คสมัยนี้มีช่องสำหรับอ่านการ์ดจากกล้องถ่ายรูป บางทีก็โฆษณาว่าอ่านได้ 4 in 1 หรือ 10 in 1 บางครั้งก็ทำให้ผู้ใช้สับสนว่าอ่านได้หรือไม่ได้ ทีนี้บางทีเกิดพลาดเสียบเข้าไปแล้วตัวแผ่นการ์ดดันไปค้างอยู่ข้างใน ทำยังไงก็ไม่ออก เขี่ยก็แล้วแคะก็แล้วไม่ยอมออกมา ทำไงดีหรือว่าต้องไปเสียตังค์ให้ช่างพันธุ์ทิพย์รื้อเอาออกให้ดี ผมมีทางออก เรามาดูกัน การ์ด MS duo pro คาอยู่ในช่องอ่านของโน๊ตบุ๊ค หากใช้วิธีการอื่นไม่ได้ผล ลองหาอุปกรณ์ดังนี้ครับ สก๊อตเทป หรือมาร์สกิ้งเทป กับคัดเตอร์หรือวัสดุเล็กๆ แบนๆ อุปกรณ์มี เทป กับคัตเตอร์ ตัดเทปออกมาช่วงหนึ่ง ตัดความกว้างให้เล็กกว่าแผ่นการ์ดที่ติดอยู่ข้างในเล็กน้อย วางเทปให้เลยช่องไปเล็กน้อยแล้วใช้ใบมีดคัตเตอร์สอดดันส่วนที่เลยให้ตัวเทปแปะติดกับการ์ดเข้าไปข้างในช่อง &#160; จากนั้นก็ค่อยๆดึงเทปออกมาอาจต้องดึงแบบยกๆ เล็กน้อยนะครับ ถ้าไม่ออก็ทำใหม่หรือหาเทปกาวที่เหนียวกว่ามาทำครับ เห็นไหมออกมาแล้ว หวังว่าคงช่วยได้นะครับ<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=433&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20111224</p>
<p>&nbsp;</p>
<p>เครื่องโน๊ตบุ๊คสมัยนี้มีช่องสำหรับอ่านการ์ดจากกล้องถ่ายรูป บางทีก็โฆษณาว่าอ่านได้ 4 in 1 หรือ 10 in 1 บางครั้งก็ทำให้ผู้ใช้สับสนว่าอ่านได้หรือไม่ได้ ทีนี้บางทีเกิดพลาดเสียบเข้าไปแล้วตัวแผ่นการ์ดดันไปค้างอยู่ข้างใน ทำยังไงก็ไม่ออก เขี่ยก็แล้วแคะก็แล้วไม่ยอมออกมา ทำไงดีหรือว่าต้องไปเสียตังค์ให้ช่างพันธุ์ทิพย์รื้อเอาออกให้ดี</p>
<p>ผมมีทางออก เรามาดูกัน</p>
<p><a href="http://enumap.files.wordpress.com/2011/12/a2.jpg"><img class="alignnone size-medium wp-image-434" title="a2" src="http://enumap.files.wordpress.com/2011/12/a2.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>การ์ด MS duo pro คาอยู่ในช่องอ่านของโน๊ตบุ๊ค</p>
<p>หากใช้วิธีการอื่นไม่ได้ผล ลองหาอุปกรณ์ดังนี้ครับ สก๊อตเทป หรือมาร์สกิ้งเทป กับคัดเตอร์หรือวัสดุเล็กๆ แบนๆ</p>
<p><a href="http://enumap.files.wordpress.com/2011/12/a1.jpg"><img class="alignnone size-medium wp-image-435" title="a1" src="http://enumap.files.wordpress.com/2011/12/a1.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>อุปกรณ์มี เทป กับคัตเตอร์</p>
<p>ตัดเทปออกมาช่วงหนึ่ง ตัดความกว้างให้เล็กกว่าแผ่นการ์ดที่ติดอยู่ข้างในเล็กน้อย</p>
<p>วางเทปให้เลยช่องไปเล็กน้อยแล้วใช้ใบมีดคัตเตอร์สอดดันส่วนที่เลยให้ตัวเทปแปะติดกับการ์ดเข้าไปข้างในช่อง</p>
<p><a href="http://enumap.files.wordpress.com/2011/12/a5.jpg"><img class="alignnone size-medium wp-image-436" title="a5" src="http://enumap.files.wordpress.com/2011/12/a5.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>&nbsp;</p>
<p>จากนั้นก็ค่อยๆดึงเทปออกมาอาจต้องดึงแบบยกๆ เล็กน้อยนะครับ ถ้าไม่ออก็ทำใหม่หรือหาเทปกาวที่เหนียวกว่ามาทำครับ<br />
<a href="http://enumap.files.wordpress.com/2011/12/a7.jpg"><img class="alignnone size-medium wp-image-437" title="a7" src="http://enumap.files.wordpress.com/2011/12/a7.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a></p>
<p>เห็นไหมออกมาแล้ว</p>
<p>หวังว่าคงช่วยได้นะครับ</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/433/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/433/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/433/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=433&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/12/23/memory-card-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b9%83%e0%b8%99%e0%b9%80%e0%b8%84%e0%b8%a3%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b8%87%e0%b9%80%e0%b8%ad%e0%b8%b2%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%ad%e0%b8%a2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2011/12/a2.jpg?w=300" medium="image">
			<media:title type="html">a2</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2011/12/a1.jpg?w=300" medium="image">
			<media:title type="html">a1</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2011/12/a5.jpg?w=300" medium="image">
			<media:title type="html">a5</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2011/12/a7.jpg?w=300" medium="image">
			<media:title type="html">a7</media:title>
		</media:content>
	</item>
		<item>
		<title>PostGIS: สำเนาฐานข้อมูลพร้อมแปลงระบบพิกัด</title>
		<link>http://enumap.wordpress.com/2011/11/01/postgis-dumpchangeprojection/</link>
		<comments>http://enumap.wordpress.com/2011/11/01/postgis-dumpchangeprojection/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 13:12:44 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[GIS]]></category>
		<category><![CDATA[spatial database]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=430</guid>
		<description><![CDATA[&#160; 20111021 วัตถุประสงค์ ต้องการทำสำเนาฐานข้อมูลปริภูมิแต่เปลี่ยนระบบพิกัดของข้อมูลปริภูมิ ต้องการแปลงระบบพิกัดจาก Geographic/WGS84 ไปเป็น UTM Zone47/WGS84 กำหนดฐานข้อมูล ชื่อ river มีตาราง river4326 และกำหนดให้ฐานข้อมูลใหม่ให้ชื่อ river32647 ข้อมูล river4326 ประกอบไปด้วย Column [ID],[name],[length],[basin],[subbasin],[the_geom] ที่จริงในการเรียกใช้งาน สามารถแปลงระบบพิกัดแบบ on-the-fly ได้เลยและแนะนำให้ทำอย่างนั้นเมื่อใช้งานจริง แต่ในที่นี้ลองว่าถ้าต้องการทำแบบนี้ทำได้อย่างไรบ้าง วิธีการ  SQL Query: SELECT * FROM river4326 WHERE 1=0 เพื่อ ให้แสดงเฉพาะชื่อ Column จะได้ &#124; [ID] &#124; [name] &#124; [length] &#124; [basin] &#124; [subbasin] &#124; [the_geom] &#124; สร้าง ตารางขึ้นใหม่ในฐานข้อมูลนั้น ให้ชื่อ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=430&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>20111021</p>
<p>วัตถุประสงค์</p>
<ul>
<li>ต้องการทำสำเนาฐานข้อมูลปริภูมิแต่เปลี่ยนระบบพิกัดของข้อมูลปริภูมิ</li>
<li>ต้องการแปลงระบบพิกัดจาก Geographic/WGS84 ไปเป็น UTM Zone47/WGS84</li>
<li>กำหนดฐานข้อมูล ชื่อ river มีตาราง river4326 และกำหนดให้ฐานข้อมูลใหม่ให้ชื่อ river32647</li>
<li>ข้อมูล river4326 ประกอบไปด้วย Column [ID],[name],[length],[basin],[subbasin],[the_geom]</li>
</ul>
<p>ที่จริงในการเรียกใช้งาน สามารถแปลงระบบพิกัดแบบ on-the-fly ได้เลยและแนะนำให้ทำอย่างนั้นเมื่อใช้งานจริง แต่ในที่นี้ลองว่าถ้าต้องการทำแบบนี้ทำได้อย่างไรบ้าง</p>
<p>วิธีการ</p>
<ul>
<li> SQL Query: SELECT * FROM river4326 WHERE 1=0<br />
เพื่อ ให้แสดงเฉพาะชื่อ Column จะได้<br />
| [ID] | [name] | [length] | [basin] | [subbasin] | [the_geom] |</li>
<li>สร้าง ตารางขึ้นใหม่ในฐานข้อมูลนั้น ให้ชื่อ river_32647 โดยใช้คำสั่ง SQL<br />
CREATE TABLE <strong><span style="color:#ff0000;">river_32647</span></strong> as SELECT <strong><span style="color:#ff0000;">ID, name, length, basin, subbasin</span></strong>, ST_Transform(ST_SetSRID(<strong><span style="color:#ff0000;">the_geom</span></strong>, 4326), 32647) as <strong><span style="color:#0000ff;">the_geom</span></strong><span style="color:#0000ff;"><span style="color:#000000;">FROM <span style="color:#ff0000;"><strong>river4326</strong></span></span></span><strong><span style="color:#0000ff;"><br />
</span></strong>เป็นการสร้างตาราง river_32647  ขึ้นมาใหม่โดยให้มี column เหมือน river4326 และเปลี่ยน the_geom จากระบบพิกัด Geographic ไปเป็น UTM</li>
<li>เลือกตาราง river_32647 ทำการ backup ไว้ให้ชื่อไฟล์ river_32647.backup</li>
<li>สร้างฐานข้อมูลให้ เลือกtemplate PostGIS ให้ชื่อฐานข้อมูลใหม่ว่า river32647</li>
<li>restore ไฟล์ river_32647 เข้ามาในฐานข้อมูล river32647</li>
</ul>
<p>นี่เป็นเพียงวิธีการหนึ่งที่ทำได้นะครับ ผมเชื่อว่ามีวิธีที่ง่ายกว่านี้แน่ แต่ยังหาไม่เจอ ท่านในมีคำแนะนำช่วยชี้แนะเพิ่มเติมด้วยครับ<br />
อย่างที่บอกถ้าใช้งานจริงแนะนำให้แปลงระบบพิกัด on-the-fly ดีกว่าง่ายกว่าเยอะเลยและเก็บฐานข้อมูลแค่ชุดเดียวด้วย</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/430/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=430&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/11/01/postgis-dumpchangeprojection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>
	</item>
		<item>
		<title>Libre Office/Open Office: How to check day in month</title>
		<link>http://enumap.wordpress.com/2011/10/23/libre-officeopen-office-how-to-check-day-in-month/</link>
		<comments>http://enumap.wordpress.com/2011/10/23/libre-officeopen-office-how-to-check-day-in-month/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 14:31:28 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=428</guid>
		<description><![CDATA[20111023 When you want to know number of day in month especially number of day in February. it is 28 or 29 if you use formula in cell like &#8220;=Day(B3)&#8221; when B3 contain 02/02/00 (02 February 2000) you will get &#8220;2&#8243;. the February 2000 has 29 day try this formula &#8220;=DAY(EOMONTH(B3,0))&#8221; you will get &#8220;29&#8243; have fun with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=428&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20111023</p>
<p>When you want to know number of day in month especially number of day in February. it is 28 or 29<br />
if you use formula in cell like &#8220;=Day(B3)&#8221; when B3 contain 02/02/00 (02 February 2000) you will get &#8220;2&#8243;.<br />
the February 2000 has 29 day try this formula</p>
<p>&#8220;=DAY(EOMONTH(B3,0))&#8221; you will get &#8220;29&#8243;</p>
<p>have fun with Open Office ( it also work in MS Excel)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/428/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=428&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/10/23/libre-officeopen-office-how-to-check-day-in-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>
	</item>
		<item>
		<title>Libre Office/Open Office: Macro: convert text to string / String to text</title>
		<link>http://enumap.wordpress.com/2011/10/22/libre-officeopen-office-macro-convert-text-to-string-string-to-text/</link>
		<comments>http://enumap.wordpress.com/2011/10/22/libre-officeopen-office-macro-convert-text-to-string-string-to-text/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 01:05:22 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=425</guid>
		<description><![CDATA[20101022 การดึงค่าจากตารางมาสู่ตัวแปรของภาษาเบสิคใน Libre/Open Office มีแค่สองอย่างคือ Value ที่เป็นตัวเลขกับ String ที่เป็นตัวอักษร บางทีได้ค่ามาเป็นตัวอักษรต้องการแปลงเป็นตัวเลขทำได้ง่ายๆ ดังนี้ A = &#8220;123.456&#8243; myValue = Val(A) เมื่อได้ค่ามาเป็นตัวเลขแล้วจะทำการเปลี่ยนเป็นชนิดตัวเลขเป็นอย่างอื่นภายหลังได้ หรือสามารถใช้ฟังก์ชั่นในการเปลี่ยนได้เลยจากค่าในตารางได้ดังนี้ CStr(Var) converts any data type into a string. CInt(Var) converts any data types into an integer value. CLng(Var) converts any data types into a long value. CSng(Var) converts any data types into a single value. CDbl(Var) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=425&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20101022</p>
<p>การดึงค่าจากตารางมาสู่ตัวแปรของภาษาเบสิคใน Libre/Open Office มีแค่สองอย่างคือ Value ที่เป็นตัวเลขกับ String ที่เป็นตัวอักษร บางทีได้ค่ามาเป็นตัวอักษรต้องการแปลงเป็นตัวเลขทำได้ง่ายๆ ดังนี้</p>
<p>A = &#8220;123.456&#8243;<br />
myValue = Val(A)</p>
<p>เมื่อได้ค่ามาเป็นตัวเลขแล้วจะทำการเปลี่ยนเป็นชนิดตัวเลขเป็นอย่างอื่นภายหลังได้</p>
<p>หรือสามารถใช้ฟังก์ชั่นในการเปลี่ยนได้เลยจากค่าในตารางได้ดังนี้<br />
CStr(Var)<br />
converts any data type into a string.<br />
CInt(Var)<br />
converts any data types into an integer value.<br />
CLng(Var)<br />
converts any data types into a long value.<br />
CSng(Var)<br />
converts any data types into a single value.<br />
CDbl(Var)<br />
converts any data types into a double value.<br />
CBool(Var)<br />
converts any data types into a Boolean value.<br />
CDate(Var)<br />
converts any data types into a date value.</p>
<p>อ้างอิง http://wiki.services.openoffice.org/wiki/Documentation/BASIC_Guide/Conversion_Functions_(Runtime_Library)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/425/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/425/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/425/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=425&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/10/22/libre-officeopen-office-macro-convert-text-to-string-string-to-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>
	</item>
		<item>
		<title>English: R.I.P.</title>
		<link>http://enumap.wordpress.com/2011/10/13/english-r-i-p/</link>
		<comments>http://enumap.wordpress.com/2011/10/13/english-r-i-p/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 16:59:12 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=422</guid>
		<description><![CDATA[20111013 มีข่าวว่า Dennis Ritchie ผู้สร้างภาษา C ปูชนียบุคคลอีกหนึ่งคนในวงการคอมพิวเตอร์ ได้เสียชีวิตลงแล้วเมื่อสุดสัปดาห์ที่ผ่านมา จากนั้นเข้าไปอ่านก็มีหลายคนให้คอมเมนท์ที่มีคำว่า R.I.P. ก็เลยอยากรู้ว่าหมายความว่าอย่างไหร R.I.P.  ย่อมาจาก Rest In Peace หมายถึงหลับให้สบาย ใช้กับคนตายเท่านั้น R.I.P. ครับ Dennis Ritchie ผมอาจจะไม่เคยใช้ภาษา C แต่ก็ใช้ภาษาที่อาศัยโครงสร้างภาษา C เช่น JavaScripts, Python ครับ อ้างอิง Andrew Biggs Academy<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=422&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20111013</p>
<p>มีข่าวว่า Dennis Ritchie ผู้สร้างภาษา C ปูชนียบุคคลอีกหนึ่งคนในวงการคอมพิวเตอร์ ได้เสียชีวิตลงแล้วเมื่อสุดสัปดาห์ที่ผ่านมา<br />
จากนั้นเข้าไปอ่านก็มีหลายคนให้คอมเมนท์ที่มีคำว่า R.I.P. ก็เลยอยากรู้ว่าหมายความว่าอย่างไหร</p>
<p>R.I.P.  ย่อมาจาก Rest In Peace หมายถึงหลับให้สบาย ใช้กับคนตายเท่านั้น</p>
<p>R.I.P. ครับ Dennis Ritchie</p>
<p>ผมอาจจะไม่เคยใช้ภาษา C แต่ก็ใช้ภาษาที่อาศัยโครงสร้างภาษา C เช่น JavaScripts, Python ครับ</p>
<p>อ้างอิง <a href="http://www.andrewbiggs.com/columns/column-256.htm">Andrew Biggs Academy</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/422/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/422/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/422/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=422&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/10/13/english-r-i-p/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>
	</item>
		<item>
		<title>Python: THEOS full scene Pan-Sharpening</title>
		<link>http://enumap.wordpress.com/2011/10/03/python-theos-full-scene-pan-sharpening/</link>
		<comments>http://enumap.wordpress.com/2011/10/03/python-theos-full-scene-pan-sharpening/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 13:58:33 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=420</guid>
		<description><![CDATA[20111003 &#160; ในโครงการ THEOS2Go ส่วนผลิตภัณฑ์เพิ่มค่า Pan-Sharpening หรือ Image Fusion ภาษาไทยเรียกการหลอมภาพ เป็นความสามารถที่ใช้โปรแกรมภาษา Python ในการหลอมภาพโดยอาศัยไลบรารี่ของ Gdal ซึ่งทำได้นานแล้วในโครงการนี้ใช้อัลกอริธึมในการหลอมชื่อ Brovy transform ถ้าถามผมก็เป็นการเทียบบัญยัติไตรยางค์แบบง่ายๆ newR = (3 * P * R) / (R + G + B + 1.0) newG = (3 * P * G) / (R + G + B + 1.0) newB = (3 * P * B) / [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=420&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20111003</p>
<p>&nbsp;</p>
<p>ในโครงการ THEOS2Go ส่วนผลิตภัณฑ์เพิ่มค่า Pan-Sharpening หรือ Image Fusion ภาษาไทยเรียกการหลอมภาพ เป็นความสามารถที่ใช้โปรแกรมภาษา Python ในการหลอมภาพโดยอาศัยไลบรารี่ของ Gdal ซึ่งทำได้นานแล้วในโครงการนี้ใช้อัลกอริธึมในการหลอมชื่อ Brovy transform ถ้าถามผมก็เป็นการเทียบบัญยัติไตรยางค์แบบง่ายๆ</p>
<p>newR = (3 * P * R) / (R + G + B + 1.0)<br />
newG = (3 * P * G) / (R + G + B + 1.0)<br />
newB = (3 * P * B) / (R + G + B + 1.0)</p>
<p>where :<br />
newR, newG and newB is new pixel value in Red, Green and Blue band<br />
P =  Panchromatic band<br />
R, G and B = Red, Green and Blue band</p>
<p>เมื่อทำการทดสอบกับภาพเต็มซีนของภาพข้อมูลดาวเทียมธีออส ปรากฎว่าเกิดอาการทำนองตัวแปรของอะเรย์ที่ไช้ในการระบุตำแหน่งของพิกเซลมันล้นเกินความสามารถของอินเด็กซ์ คล้ายๆ กับมันล้นแสดงเออเรอ แล้วก็หยุดทำ แต่ผลของการหลอมก็ยังแสดงเป็นภาพได้แต่ได้ประมาณ 60% ของภาพและเป็นผลที่ไม่ผิดอะไรซูมเข้าไปดูภาพก็หลอมได้ถูกต้อง พยายามแก้โดยการลองดูวิธีการใช้ตัวแปรสำหรับเป็นอินเด็กซ์ในการระบุตำแหน่งพิกเซลของภาพ ด้วยภูมิไม่ถึงจึงไม่สามารถแก้ไขได้<br />
ปรึกษากับคุณ PK ได้คำแนะนำว่าวิธีการเขียนค่าลงไปของผมนั้นใช้วิธีเขียนทีละพิกเซลซึ่งเสียเวลาในการเขียนค่อนข้างมากและอาจเป็นสาเหตุที่ทำให้ตัวแปรของอินเด็กซ์ล้น<br />
อาศัยเอกสารประกอบการสอนของคุณ Chris Garrard จากหน่วยงาน  RS/GS Laboratory ของมหาวิทยาลัย Utah university  ก็ได้รู้ ได้ศึกษาวิธีการอ่านเขียนข้อมูลแบบบล็อค ทำให้ความเร็วของการเขียนมากกว่าเดิมกว่าสองเท่า เยี่ยมเลยแต่ปัญหาหลักก็ยังไม่ถูกแก้ไข ยังคงทำได้ไม่เต็มซีนภาพหลังจากการทำสอบพบว่าสามารถทำได้ประมาณ 7000 x 7000 พิกเซลภาพจึงได้ทำการแบ่งทำทีละ 1/4 ภาพจึงทำให้สามารถเขียนภาพเต็มซีนได้สำเร็จ</p>
<p><img class="alignnone" title="Full-Scene THEOS pan-sharpening by THEOS2Go" src="http://a1.sphotos.ak.fbcdn.net/hphotos-ak-snc6/250381_177987852267033_100001674595296_410991_5235922_n.jpg" alt="" width="628" height="714" /></p>
<p>ผลการหลอมภาพเต็มซีนของข้อมูลภาพธีออส</p>
<p><img class="alignnone" title="spot imagery" src="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc6/285331_178002502265568_100001674595296_411011_613197_n.jpg" alt="" width="628" height="714" /></p>
<p>ทดสอบกับภาพข้อมูลดาวเทียม SPOT แบบไม่เต็มซีน<br />
ทดสอบหลายครั้งจึงมั่นใจนำไปรวมกับชุดโปรแกรม THEOS2Go ก็สามารถใช้งานได้เขียนลงบน USB drive ก็ได้จึงได้นำไปประกอบการอบรมพอนำไปติดตั้งกับ QGIS 1.7 เครื่องอบรม แล้วทดสอบปรากฎว่า่ python.exe error ซะงั้น เชคแล้วเชคอีกพบว่า ระบบ import gdal ไม่ได้ มึนไปคืนนึงก็จับ gdal ไปยัดใน python ที่คาดว่ามันเรียกใช้ผลปรากฎว่าไช้งานได้ นำไปทดสอบกับคอมพิวเตอร์กรมที่ดินที่ไม่ได้ลง pypthon ไว้สามารถหลอมภาพได้ ทดสอบกับเครื่องของโปรแกรมเมอร์ของ สทอภ. ก็สามารถทำงานได้ก็น่าจะผ่านการทดสอบการใช้งานในเรื่องการทำงานแล้วนะ ส่วนความสวยงามเรื่องนี้คงต้องคุยกันยาว</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/420/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=420&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/10/03/python-theos-full-scene-pan-sharpening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>

		<media:content url="http://a1.sphotos.ak.fbcdn.net/hphotos-ak-snc6/250381_177987852267033_100001674595296_410991_5235922_n.jpg" medium="image">
			<media:title type="html">Full-Scene THEOS pan-sharpening by THEOS2Go</media:title>
		</media:content>

		<media:content url="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc6/285331_178002502265568_100001674595296_411011_613197_n.jpg" medium="image">
			<media:title type="html">spot imagery</media:title>
		</media:content>
	</item>
		<item>
		<title>Libre/Open Office; Macro: Check Sheet Name is Exist?</title>
		<link>http://enumap.wordpress.com/2011/07/07/libreopen-office-macro-check-sheet-name-is-exist/</link>
		<comments>http://enumap.wordpress.com/2011/07/07/libreopen-office-macro-check-sheet-name-is-exist/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 02:23:57 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Libre/Open Office]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=415</guid>
		<description><![CDATA[20110707 &#8220;วันนี้คณะวิศวฯ จุฬาฯ รับปริญญา&#8221; การเขียนมาโครใน Libre Office หรือ Open Office มีหลายภาษาในที่นี้ใช้ VBA เพราะเคยทำมาบ้างใน Excel คำสั่งทั่วไปเหมือนกันจะได้ไม่ต้องเรียนรู้ใหม่มาก ที่ต่างกันคือการเรียกฟังก์ชั่นภายใน หรือเรียกคอมโพเนนท์ของ  Libre/Open Office ที่สำคัญตามหายากหน่อยว่าเรียกว่าอะไร พอทำไว้ได้ก็ต้องเอามาแปะไว้ต้องการเมื่อไหร่จะได้มาหา และเป็นการแบ่งปันผู้ที่ยังไม่รู้ ให้เข้าถึงความรู้ได้เร็วขึ้น Check Sheet Name is Exist? this script for CALC ใช้สำหรับโปรแกรม CALS เป็นการตรวจสอบว่า ชีทในชื่อที่กำหนดนี้มีหรือยัง ฟังดูเหมือนง่ายนะครับแค่ดูก็เห็นแล้วว่ามีหรือไม่ แต่ทำยังไงให้เครื่องรู้ลองหลายวิธี หาโค้ทเก่าที่ทำบน Excel มาปรับปรุงสุดท้ายก็ใช้ได้ มาดูกันเลย อ้างอิงตัวอย่างจากกระทู้นี้ (referent:http://www.ozgrid.com/forum/showthread.php?t=40992&#38;page=1) Function bWorksheetExists(WSName As String) As Boolean On Error Resume Next bWorksheetExists [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=415&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20110707</p>
<p>&#8220;วันนี้คณะวิศวฯ จุฬาฯ รับปริญญา&#8221;</p>
<p>การเขียนมาโครใน Libre Office หรือ Open Office มีหลายภาษาในที่นี้ใช้ VBA เพราะเคยทำมาบ้างใน Excel คำสั่งทั่วไปเหมือนกันจะได้ไม่ต้องเรียนรู้ใหม่มาก ที่ต่างกันคือการเรียกฟังก์ชั่นภายใน หรือเรียกคอมโพเนนท์ของ  Libre/Open Office ที่สำคัญตามหายากหน่อยว่าเรียกว่าอะไร พอทำไว้ได้ก็ต้องเอามาแปะไว้ต้องการเมื่อไหร่จะได้มาหา และเป็นการแบ่งปันผู้ที่ยังไม่รู้ ให้เข้าถึงความรู้ได้เร็วขึ้น</p>
<p>Check Sheet Name is Exist?</p>
<p>this script for CALC<br />
ใช้สำหรับโปรแกรม CALS เป็นการตรวจสอบว่า ชีทในชื่อที่กำหนดนี้มีหรือยัง ฟังดูเหมือนง่ายนะครับแค่ดูก็เห็นแล้วว่ามีหรือไม่ แต่ทำยังไงให้เครื่องรู้ลองหลายวิธี หาโค้ทเก่าที่ทำบน Excel มาปรับปรุงสุดท้ายก็ใช้ได้ มาดูกันเลย</p>
<p>อ้างอิงตัวอย่างจากกระทู้นี้ (referent:<a href="http://www.ozgrid.com/forum/showthread.php?t=40992&amp;page=1">http://www.ozgrid.com/forum/showthread.php?t=40992&amp;page=1</a>)</p>
<pre>Function bWorksheetExists(WSName As String) As Boolean
    On Error Resume Next
    bWorksheetExists = (ThisComponent.Sheets.getByName(WSName).getname = WSName)
End Function

Sub ChectTab()
	inputTab = "Sheet2"'
	If Not bWorksheetExists(inputTab) Then
         'Sheet does not exist
         'do something
         Msgbox(inputTab &amp; " does no exist")
    Else
         'Sheet exists
         Msgbox(inputTab &amp; " exist")
    End If

End Sub

จะนำไปใช้เพิ่มเติมยังไงก็แล้วแต่จะพัฒนาต่อนะครับ ^_^</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/415/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/415/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/415/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=415&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/07/07/libreopen-office-macro-check-sheet-name-is-exist/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>
	</item>
		<item>
		<title>Python: Least Square Adjustment; Example 5</title>
		<link>http://enumap.wordpress.com/2011/04/19/python-ls-example5/</link>
		<comments>http://enumap.wordpress.com/2011/04/19/python-ls-example5/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 06:47:17 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=410</guid>
		<description><![CDATA[20110419 find parameter of function y; f(y) f(y) = a[0] + a[1]*x + a[2]*x*x + a[3]*x*x*x data is x = 1, 2, 3, 4, 5  and x is constance y = 1.74, 2.79, 4.33, 6.16, 8.51 n=5, n[0]=4, r=1 condition equation y[i] + v[i] = a[0] + a[1]*x[i] + a[2]*x[i]*x[i] + a[3]*x[i]*x[i]*x[i] then v[i] = a[0] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=410&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20110419</p>
<p>find parameter of function y; f(y)</p>
<p>f(y) = a[0] + a[1]*x + a[2]*x*x + a[3]*x*x*x</p>
<p>data is<br />
x = 1, 2, 3, 4, 5  and x is constance<br />
y = 1.74, 2.79, 4.33, 6.16, 8.51</p>
<p>n=5, n[0]=4, r=1</p>
<p>condition equation</p>
<p>y[i] + v[i] = a[0] + a[1]*x[i] + a[2]*x[i]*x[i] + a[3]*x[i]*x[i]*x[i]</p>
<p>then</p>
<p>v[i] = a[0] + a[1]*x[i] + a[2]*x[i]*x[i] + a[3]*x[i]*x[i]*x[i] &#8211; y[i]</p>
<p>Solve by Python</p>
<pre><span style="color:#808080;">## Least Square Adjustment</span>
<span style="color:#808080;">## Example: 5</span>
<span style="color:#808080;">## Adjustment by Parameter</span>
<span style="color:#808080;">## Leveling</span>

<span style="color:#808080;">''' data x,y fix x</span>
<span style="color:#808080;">x = 1., 2., 3., 4., 5.</span>
<span style="color:#808080;">y = 1.74, 2.79, 4.33, 6.16, 8.51</span>

<span style="color:#808080;">f(y) = a_0 + a_1*x + a_2*x^2 + a_3*x^3</span>
<span style="color:#808080;">'''</span>

<span style="color:#808080;">## n= 5, n_0=4, r = n-n_0 = 1</span>
<span style="color:#808080;">''' condition equation</span>
<span style="color:#808080;">v_1 = a_0 + a_1*x_1 + a_2*x_1^2 + a_3*x_1^3 - y_1</span>
<span style="color:#808080;">v_2 = a_0 + a_1*x_2 + a_2*x_2^2 + a_3*x_2^3 - y_2</span>
<span style="color:#808080;">v_3 = a_0 + a_1*x_3 + a_2*x_3^2 + a_3*x_3^3 - y_3</span>
<span style="color:#808080;">v_4 = a_0 + a_1*x_4 + a_2*x_4^2 + a_3*x_4^3 - y_4</span>
<span style="color:#808080;">v_5 = a_0 + a_1*x_5 + a_2*x_5^2 + a_3*x_5^3 - y_5'''</span>

<span style="color:#808080;">import numpy as np</span>

<span style="color:#808080;">##set data</span>
<span style="color:#808080;">x = (1.,2.,3.,4.,5.)</span>
<span style="color:#808080;">y = (1.74, 2.79, 4.33, 6.16, 8.51)</span>

<span style="color:#808080;">##general equation for v</span>
<span style="color:#808080;">##v[i] = a_0 + a_1*x[i] + a_2*x[i]^2 + a_3*x[i]^3 - y[i]</span>
<span style="color:#808080;">## set data to v + B * Delta = f</span>
<span style="color:#808080;">## set all a = 1 for find index of a</span>
<span style="color:#808080;">a = (1.,1.,1.,1.)</span>

<span style="color:#808080;">B = []</span>
<span style="color:#808080;">for i in range(5):</span>
<span style="color:#808080;"> B.append([-a[0],-a[1]*x[i],-a[2]*x[i]*x[i],-a[3]*x[i]*x[i]*x[i]])</span>

<span style="color:#808080;">''' from v + B * Delta = f</span>
<span style="color:#808080;">y[i] + v[i] - a[0] - a[1]*x[i] - a[2]*x[i]*x[i] - a[3]*x[i]*x[i]*x[i] = 0</span>
<span style="color:#808080;">v[i] - a[0] - a[1]*x[i] - a[2]*x[i]*x[i] - a[3]*x[i]*x[i]*x[i] = -y[i]</span>
<span style="color:#808080;">v[i] + [-a[0] - a[1]*x[i] - a[2]*x[i]*x[i] - a[3]*x[i]*x[i]*x[i]] = -y[i]</span>
<span style="color:#808080;">'''</span>
<span style="color:#808080;">f = np.asmatrix(np.dot(y,-1)).reshape(len(y),1)</span>

<span style="color:#808080;">## weight matrix</span>
<span style="color:#808080;">W = np.matrix([[1./np.square(0.02),0.,0.,0.,0.],[0,1./np.square(0.02),0,0,0],[0,0,1./np.square(0.02),0,0],[0,0,0,1./np.square(0.04),0],[0,0,0,0,1./np.square(0.04)]])</span>

<span style="color:#808080;">B = np.asmatrix(B)</span>
<span style="color:#808080;">## N = B^T * W * B</span>
<span style="color:#808080;">N = B.T * W * B</span>

<span style="color:#808080;">## t = B^T * W * f</span>
<span style="color:#808080;">t = B.T * W * f</span>

<span style="color:#808080;">## delta = N^(-1) * t</span>
<span style="color:#808080;">invN = np.linalg.inv(N)</span>
<span style="color:#808080;">delta = invN * t</span>

<span style="color:#808080;">print "parameter"</span>
<span style="color:#808080;">print delta</span>

result is
<span style="color:#3366ff;">parameter</span>
<span style="color:#3366ff;">[[ 1.13834711]</span>
<span style="color:#3366ff;"> [ 0.35227273]</span>
<span style="color:#3366ff;"> [ 0.25132231]</span>
<span style="color:#3366ff;"> [-0.00549587]]</span></pre>
<p>parameter is a[0], a[1], a[2] and a[3]</p>
<pre>parameter
a[0] = 1.13834711
a[1] = 0.35227273
a[2] = 0.25132231
a[3] = -0.00549587
<span style="text-decoration:underline;">Ans</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/410/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/410/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=410&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/04/19/python-ls-example5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>
	</item>
		<item>
		<title>Python: Least Square Adjustment using parameter</title>
		<link>http://enumap.wordpress.com/2011/04/18/python-least-square-adjustment-using-parameter/</link>
		<comments>http://enumap.wordpress.com/2011/04/18/python-least-square-adjustment-using-parameter/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 15:05:56 +0000</pubDate>
		<dc:creator>enumap</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://enumap.wordpress.com/?p=391</guid>
		<description><![CDATA[20110418 Least square adjustment Example 4 : Adjustment by parameter Leveling problem as show in image the different of height show in table below &#8211;from&#8211; &#8212;&#8211; &#8212; to &#8212; &#8212; Δh (m.) &#8211; ======&#124;=======&#124;========== E                     A              42.107 B   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=391&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>20110418</p>
<p>Least square adjustment</p>
<p>Example 4 : Adjustment by parameter</p>
<p>Leveling problem as show in image</p>
<div id="attachment_393" class="wp-caption alignnone" style="width: 310px"><a href="http://enumap.files.wordpress.com/2011/04/example41.jpg"><img class="size-medium wp-image-393" title="example4" src="http://enumap.files.wordpress.com/2011/04/example41.jpg?w=300&#038;h=196" alt="" width="300" height="196" /></a><p class="wp-caption-text">example4: Least square adjustment</p></div>
<p>the different of height show in table below</p>
<p>&#8211;from&#8211; &#8212;&#8211; &#8212; to &#8212; &#8212; Δh (m.) &#8211;<br />
======|=======|==========<br />
E                     A              42.107<br />
B                     A              12.424<br />
C                     B               42.251<br />
C                     D                 8.464<br />
D                     E                 4.138<br />
D                     A              46.269<br />
D                     B               33.802<br />
======|=======|==========</p>
<p>Elevation of point E is 500.000 m. and weight of observation data is invert distance of each point. find all point elevation</p>
<p>solve:<br />
n = 7, n_0 = 4, r = 7-4=3, u = n_0 = 4</p>
<p>set data to equation<br />
v + BΔ = Wf</p>
<p>from least square let<br />
N = B(T) * W * B<br />
t = B(T) * W * f<br />
and<br />
Δ =inv(N) * t</p>
<p>calculate in Python</p>
<pre><span style="color:#ff6600;">## Least Square Adjustment</span>
<span style="color:#ff6600;">## Example: 4</span>
<span style="color:#ff6600;">## Adjustment by Parameter</span>
<span style="color:#ff6600;">## Leveling</span>

<span style="color:#ff6600;">## Point E has elevation is 500.00 m. MSL</span>
<span style="color:#ff6600;">## n = 7, n0 = 4, r = 3</span>

<span style="color:#ff6600;">import numpy as np</span>
<span style="color:#ff6600;">## V + B * Delta = d - l * W</span>

<span style="color:#ff6600;">##Delta</span>

<span style="color:#ff6600;">Delta = np.array([["A"],["B"],["C"],["D"]])</span>

<span style="color:#ff6600;">##Matrix B</span>

<span style="color:#ff6600;">B = np.matrix([[-1.,0,0,0],[-1,1,0,0],[0,-1,1,0],[0,0,1.,-1],[0,0,0,1],[-1,0,0,1],[0,-1,0,1]])</span>

<span style="color:#ff6600;">print B</span>

<span style="color:#ff6600;">##Matrix of Weight</span>

<span style="color:#ff6600;">W = np.matrix([[1./8,0.,0.,0.,0.,0.,0.],[0,1./6,0.,0.,0.,0.,0.],[0.,0.,1./3,0.,0.,0.,0.],[0,0,0,1./6,0,0,0],[0,0,0,0,1./7,0,0],[0,0,0,0,0,1./3,0],[0,0,0,0,0,0,1./5]])</span>

<span style="color:#ff6600;">print W</span>

<span style="color:#ff6600;">##Matrix f</span>

<span style="color:#ff6600;">f = np.matrix([[-542.107],[-12.424],[-42.251],[-8.464],[495.862],[-46.269],[-33.802]])</span>

<span style="color:#ff6600;">print f</span>

<span style="color:#ff6600;">## N = B^T * W * B</span>

<span style="color:#ff6600;">N = B.T * W * B</span>

<span style="color:#ff6600;">## t = B^T * W * f</span>

<span style="color:#ff6600;">t = B.T * W * f</span>

<span style="color:#ff6600;">## delta = N^(-1) * t</span>
<span style="color:#ff6600;">invN = np.linalg.inv(N)</span>
<span style="color:#ff6600;">delta = invN * t</span>

<span style="color:#ff6600;">print "Leveling"</span>
<span style="color:#ff6600;">print delta</span>

and output show this
<span style="color:#3366ff;">Leveling</span>
<span style="color:#3366ff;">[[ 542.11261789]</span>
<span style="color:#3366ff;"> [ 529.66589837]</span>
<span style="color:#3366ff;"> [ 487.40762703]</span>
<span style="color:#3366ff;"> [ 495.85708435]]</span>

เริ่มจากง่ายๆ ไปก่อนนะครับจะได้เรียนรู้การใช้ array ต่างๆ ของไพธอนและการทำงานของแมทริกซ์ใน numpy
คำตอบที่ได้คือค่าระดับของจุด A,B,C และ D ตามลำดับ</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/enumap.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/enumap.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/enumap.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/enumap.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/enumap.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/enumap.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/enumap.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/enumap.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=enumap.wordpress.com&amp;blog=4561120&amp;post=391&amp;subd=enumap&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://enumap.wordpress.com/2011/04/18/python-least-square-adjustment-using-parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ddfccb8139e3984fe7b5fe78670a94d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">enumap</media:title>
		</media:content>

		<media:content url="http://enumap.files.wordpress.com/2011/04/example41.jpg?w=300" medium="image">
			<media:title type="html">example4</media:title>
		</media:content>
	</item>
	</channel>
</rss>
