Mateusz,<br><br>This is what I did to process evap_OBC.asc ...<br><br>1. Run the command "gdal2xyz.py -csv evap_OBC.asc evap_OBC.csv". I got a csv file.<br>2. Edited the file evap_OBC.csv to add the line "Longitude,Latitude,Value" (without the quotes) at the beginning.<br>
3. Created a file named evap_OBC.vrt with the following content...<br><OGRVRTDataSource><br> <OGRVRTLayer name="evap_OBC"><br> <SrcDataSource>evap_OBC.csv</SrcDataSource><br> <GeometryType>wkbPoint</GeometryType><br>
<GeometryField encoding="PointFromColumns" x="Longitude" y="Latitude"/><br> </OGRVRTLayer><br></OGRVRTDataSource><br>4. Run the command "ogr2ogr -select Value evap_OBC.shp evap_OBC.vrt". I got the file evap_OBC.shp and two other associated files.<br>
<br>In step 3, if I wanted to mention the absolute path instead of the relative path of the file 'evap_OBC.csv', I would have added the attribute 'relativeToVRT=0' to the SrcDataSource element like so.<br>
<SrcDataSource relativeToVRT="0">evap_OBC.csv</SrcDataSource><br><br><div class="gmail_quote">2011/8/13 Mateusz Kędzior <span dir="ltr"><<a href="mailto:matandked@gmail.com" target="_blank">matandked@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Chaitanya,<br><br>I send only raster (without XYZ data).<br><br>=========<br>Best regards,<br>
Mateusz<br><br><div class="gmail_quote">W dniu 12 sierpnia 2011 16:02 użytkownik Chaitanya kumar CH <span dir="ltr"><<a href="mailto:chaitanya.ch@gmail.com" target="_blank">chaitanya.ch@gmail.com</a>></span> napisał:<div>
<div></div><div><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Mateusz,<br><br>Send me a couple of your raster files. I'll process them and create a step-by-step instructions including all the scripts I used.<div>
<div></div><div><br><br><div class="gmail_quote">2011/8/12 Mateusz Kędzior <span dir="ltr"><<a href="mailto:matandked@gmail.com" target="_blank">matandked@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hi Chaitanya,</div>
<div> </div>
<div>but there is no example with CSV file stored in local hard disc.</div>
<div>I see an example with shp file - there is no full path to it...</div>
<div>but as I tell, when I leave only filename of CSV and use ogrinfo tool on such VRT file, I get information about empty file without any geometry or tables on it.</div>
<div> </div>
<div>==========</div>
<div>Best regards,</div>
<div>Mateusz</div><div><div></div><div>
<div><br> </div>
<div class="gmail_quote">
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">Mateusz,<br><br>Refer to OGR's VRT format driver page.<br><a href="http://www.gdal.org/ogr/drv_vrt.html" target="_blank">http://www.gdal.org/ogr/drv_vrt.html</a>
<div>
<div></div>
<div> </div></div></blockquote></div>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div><div></div><div>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>
17.2416N 80.1426E<br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br><br><a href="tel:%2B91-9494447584" value="+919494447584" target="_blank">+91-9494447584</a><br>17.2416N 80.1426E<br>