<?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/"
	>

<channel>
	<title>Sarawut Ninsawat &#187; gdal</title>
	<atom:link href="https://www.ninsawat.com/?cat=17&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.ninsawat.com</link>
	<description>A Personal Blog but not private</description>
	<lastBuildDate>Sat, 02 Aug 2025 08:02:05 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.2</generator>
	<item>
		<title>gdalbuildvrt กับ Virtual Mosaic Overlaped image</title>
		<link>https://www.ninsawat.com/?p=83&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gdalbuildvrt-%25e0%25b8%2581%25e0%25b8%25b1%25e0%25b8%259a-virtual-mosaic-overlaped-image</link>
		<comments>https://www.ninsawat.com/?p=83#comments</comments>
		<pubDate>Wed, 04 Aug 2010 06:35:40 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[gdal]]></category>
		<category><![CDATA[wcs]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=83</guid>
		<description><![CDATA[ครั้งนี้เจอปัญหา ที่จะทำให้ผู้ใช้ทำการ Request data จาก WCS โดยที่ data นั้นมี pixel ที่ overlap กันอยู่ได้ (ในกรณี คือข้อมูล MOD11A1 ที่ในส่วน overlap นั้นมี scene หนึ่งมีค่าเป็น nodata และอีก scene มีค่าข้อมูลอยู่) โดยปกติถ้าทำการใช้เทคนิค Tiling ธรรมดา ใน Mapserver เมื่อทำ request พื้นที่ overlap ก็จะอาจจะได้ค่าข้อมูลในส่วนนั้นเป็น nodata ขี้นอยู่กับ order ของชั้นข้อมูลว่าอะไรอยู่บน หรือ ล่าง เมื่อทำการหาข้อมูลเพิ่มเติม ก็มีผู้แนะนำให้ใช้ gdalbuildvrt ทำการสร้าง VRT file ขึ้นมาให้เหมือนเป็นการ Virtual Mosaic ซึ่งในการสร้างก็จะมี option -srcnodata ทำให้สามารถข้ามค่าข้อมูลนั้น ไปได้&#8230;]]></description>
				<content:encoded><![CDATA[<p>ครั้งนี้เจอปัญหา ที่จะทำให้ผู้ใช้ทำการ Request data จาก WCS โดยที่ data นั้นมี pixel ที่ overlap กันอยู่ได้ (ในกรณี คือข้อมูล MOD11A1 ที่ในส่วน overlap นั้นมี scene หนึ่งมีค่าเป็น nodata และอีก scene มีค่าข้อมูลอยู่)</p>
<p>โดยปกติถ้าทำการใช้เทคนิค Tiling ธรรมดา ใน Mapserver เมื่อทำ request พื้นที่ overlap ก็จะอาจจะได้ค่าข้อมูลในส่วนนั้นเป็น nodata ขี้นอยู่กับ order ของชั้นข้อมูลว่าอะไรอยู่บน หรือ ล่าง</p>
<p>เมื่อทำการหาข้อมูลเพิ่มเติม ก็มีผู้แนะนำให้ใช้ gdalbuildvrt ทำการสร้าง VRT file ขึ้นมาให้เหมือนเป็นการ Virtual Mosaic ซึ่งในการสร้างก็จะมี option -srcnodata ทำให้สามารถข้ามค่าข้อมูลนั้น ไปได้ แต่มันรองรับหลังจาก version 1.7.0 เท่านั้น</p>
<p>มีข้อพึงระวัง อยู่ 3 อย่างในการทำ vrt</p>
<p>- ต้องมี Projection / Coordinate เดียวกัน</p>
<p>- Spaitial resolution เท่ากัน</p>
<p>- Band order เหมือนกัน</p>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=83</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>กลเม็ดต่างๆของ GDAL</title>
		<link>https://www.ninsawat.com/?p=26&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e0%25b8%2581%25e0%25b8%25a5%25e0%25b9%2580%25e0%25b8%25a1%25e0%25b9%2587%25e0%25b8%2594%25e0%25b8%2595%25e0%25b9%2588%25e0%25b8%25b2%25e0%25b8%2587%25e0%25b9%2586%25e0%25b8%2582%25e0%25b8%25ad%25e0%25b8%2587-gdal</link>
		<comments>https://www.ninsawat.com/?p=26#comments</comments>
		<pubDate>Thu, 15 Mar 2007 10:39:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[gdal]]></category>
		<category><![CDATA[projection]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=26</guid>
		<description><![CDATA[หลายครั้งที่ท่านต้องการเปิดไฟล์ แปลงไฟล์ อ่านข้อมูลของไฟล์ Raster วันนี้เรามาเสนอ วิธีง่าย ๆ ที่ทำได้ด้วย command ของ gdal นะครับ 1. ดู metadata ของ Raster file gdalinfo 20041117/20041117B1.tif 2. ทำการแปลงไฟล์จากชนิดหนึ่งไปเป็นอีกชนิดหนึ่ง ในแบบ simple โดยใช้ parameter เพิ่มเติมได้มากกว่านี้ gdal_translate -of GTiff 20030919/20030919B1 output.tif 3. ทำการแปลงไฟล์ด้วยคำสั่ง gdal_wrap (ตย. เป็นการแตกไฟล์ของ HDF4) gdalwarp -of ENVI -ot Byte HDF4_EOS:EOS_SWATH:&#8221;prdat014.dat&#8221;:VNIR_Swath:ImageData3N /home/art/aster/2004111702/2004111702B3N 4. ทำการสร้าง composite ไฟล์ โดยการรวมหลาย ๆ Band gdal_merge.py -o stack.tif&#8230;]]></description>
				<content:encoded><![CDATA[<p>หลายครั้งที่ท่านต้องการเปิดไฟล์ แปลงไฟล์ อ่านข้อมูลของไฟล์ Raster วันนี้เรามาเสนอ วิธีง่าย ๆ ที่ทำได้ด้วย command ของ gdal นะครับ</p>
<p>1. ดู metadata ของ Raster file</p>
<p>gdalinfo 20041117/20041117B1.tif</p>
<p>2. ทำการแปลงไฟล์จากชนิดหนึ่งไปเป็นอีกชนิดหนึ่ง ในแบบ simple โดยใช้ parameter เพิ่มเติมได้มากกว่านี้</p>
<p>gdal_translate -of GTiff 20030919/20030919B1 output.tif</p>
<p>3. ทำการแปลงไฟล์ด้วยคำสั่ง gdal_wrap (ตย. เป็นการแตกไฟล์ของ HDF4)</p>
<p>gdalwarp -of ENVI -ot Byte HDF4_EOS:EOS_SWATH:&#8221;prdat014.dat&#8221;:VNIR_Swath:ImageData3N /home/art/aster/2004111702/2004111702B3N</p>
<p>4. ทำการสร้าง composite ไฟล์ โดยการรวมหลาย ๆ Band</p>
<p>gdal_merge.py -o stack.tif -separate a.tif b.tif c.tif</p>
<p>หลายละเอียดของ option ดูได้จากที่นี่ <a href="http://www.gdal.org/gdal_utilities.html#gdalwarp">gdal</a></p>
<p>เพิ่มเติมจาก blog ของ Markus <a href="http://gfoss.blogspot.com/2008/06/gdal-raster-data-tips-and-tricks.html">http://gfoss.blogspot.com/2008/06/gdal-raster-data-tips-and-tricks.html</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.ninsawat.com/?feed=rss2&#038;p=26</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
