Werner,<br><br>You swapped the X and Y extents in the command.<br><br><div class="gmail_quote">On Thu, Jan 27, 2011 at 11:14 PM, Werner Reiche <span dir="ltr">&lt;<a href="mailto:w.reiche@hotmail.com">w.reiche@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div>
<br>I&#39;m trying to use gdal_grid to generate a .tiff file from a .csv file.<br> <br>The problem I am encountering is that output file always contains &#39;no-data&#39; values.<br> <br>The command I am using is:<br> <br>
<font face="Arial" size="2">gdal_grid -txe -51.428009 -43.153992 -tye 46.112598 51.347198 -outsize 1024 796 \</font> <br><font face="Arial" size="2">          -a nearest:radius1=10.0:radius2=10.0:angle=0.0:nodata=0.0 \</font> <br>
<font face="Arial" size="2">          -l rs2_file_1 -l rs2_file_2 -l rs2_file_3 \</font> <br><font face="Arial" size="2">          -of GTiff -ot Byte rs2_file.vrt test.tiff</font> <br> <br>I have also tried the following interpolation parameters:<br>
 <br><font face="Arial" size="2"># Results in all black</font> <br><font face="Arial" size="2"># -a nearest:radius1=1.0:radius2=1.0:angle=0.0:nodata=0.0 \</font> <br><font face="Arial" size="2"># -a average:radius1=1.0:radius2=1.0:angle=0.0:min_points=1:nodata=0.0 \</font> <br>
<font face="Arial" size="2"># -a invdist:radius1=1.0:radius2=1.0:angle=0.0:max_points=1:min_points=1:nodata=0.0 \</font> <br><font face="Arial" size="2"></font> <br><font face="Arial" size="2"># Results in all one shade of grey</font> (average of entire image)<br>
<font face="Arial" size="2"># -a invdist:radius1=0.0:radius2=0.0:angle=0.0:max_points=10:min_points=1:nodata=0.0 \</font> <br><br>The .vrt and csv file used are shown below.<br> <br><font face="Arial" size="2">rs2_file.vrt</font> <br>
<font face="Arial" size="2">::::::::::::::</font> <br><font face="Arial" size="2">&lt;OGRVRTDataSource&gt;</font> <br><font face="Arial" size="2">&lt;OGRVRTLayer name=&quot;rs2_file_1&quot;&gt;</font> <br><font face="Arial" size="2">&lt;SrcDataSource&gt;rs2_file_1.csv&lt;/SrcDataSource&gt;</font> <br>
<font face="Arial" size="2">&lt;GeometryType&gt;wkbPoint25D&lt;/GeometryType&gt;</font> <br><font face="Arial" size="2">&lt;GeometryField encoding=&quot;PointFromColumns&quot; x=&quot;lon&quot; y=&quot;lat&quot; z=&quot;red&quot;/&gt;</font> <br>
<font face="Arial" size="2">&lt;/OGRVRTLayer&gt;</font> <br><font face="Arial" size="2">&lt;OGRVRTLayer name=&quot;rs2_file_2&quot;&gt;</font> <br><font face="Arial" size="2">&lt;SrcDataSource&gt;rs2_file_2.csv&lt;/SrcDataSource&gt;</font> <br>
<font face="Arial" size="2">&lt;GeometryType&gt;wkbPoint25D&lt;/GeometryType&gt;</font> <br><font face="Arial" size="2">&lt;GeometryField encoding=&quot;PointFromColumns&quot; x=&quot;lon&quot; y=&quot;lat&quot; z=&quot;green&quot;/&gt;</font> <br>
<font face="Arial" size="2">&lt;/OGRVRTLayer&gt;</font> <br><font face="Arial" size="2">&lt;OGRVRTLayer name=&quot;rs2_file_3&quot;&gt;</font> <br><font face="Arial" size="2">&lt;SrcDataSource&gt;rs2_file_3.csv&lt;/SrcDataSource&gt;</font> <br>
<font face="Arial" size="2">&lt;GeometryType&gt;wkbPoint25D&lt;/GeometryType&gt;</font> <br><font face="Arial" size="2">&lt;GeometryField encoding=&quot;PointFromColumns&quot; x=&quot;lon&quot; y=&quot;lat&quot; z=&quot;blue&quot;/&gt;</font> <br>
<font face="Arial" size="2">&lt;/OGRVRTLayer&gt;</font> <br><font face="Arial" size="2">&lt;/OGRVRTDataSource&gt;</font> <br><font face="Arial" size="2">rs2_file.vrt (partial)</font> <br><font face="Arial" size="2">::::::::::::::</font> <br>
<font face="Arial" size="2">lat,lon,red,green,blue</font> <br><font face="Arial" size="2">-51.428009,50.522499,0,0,143</font> <br><font face="Arial" size="2">-50.049011,50.720699,0,0,143</font> <br><font face="Arial" size="2">-48.660004,50.902401,0,159,255</font> <br>
<font face="Arial" size="2">-47.260010,51.067501,0,239,255</font> <br><font face="Arial" size="2">-45.851013,51.215900,255,255,15</font> <br><font face="Arial" size="2">-44.433014,51.347198,255,191,0</font> <br><font face="Arial" size="2">-50.433014,50.657600,255,255,0</font> <br>
<font face="Arial" size="2">-49.046997,50.844200,255,223,0</font> <br><font face="Arial" size="2">-47.649994,51.014301,255,159,0</font> <br><font face="Arial" size="2">-46.243988,51.167599,255,191,0</font> <br><font face="Arial" size="2">-44.829010,51.303799,255,255,15</font> <br>
<font face="Arial" size="2">-50.816010,50.593800,255,255,0</font> <br><font face="Arial" size="2">-49.433014,50.784698,255,175,0</font> <br><font face="Arial" size="2">-48.040009,50.959202,255,239,0</font> <br><font face="Arial" size="2">-46.635986,51.117100,255,191,0</font> <br>
<font face="Arial" size="2">-45.222992,51.257999,255,223,0</font> <br><font face="Arial" size="2">-51.197998,50.528301,255,175,0</font> <br><font face="Arial" size="2">-49.819000,50.724098,255,191,0</font> <br><font face="Arial" size="2">-48.428009,50.903500,255,223,0</font> <br>
<font face="Arial" size="2">-47.028015,51.066299,255,207,0</font> <br><font face="Arial" size="2">-45.618011,51.211800,255,255,0</font> <br><font face="Arial" size="2">-44.199005,51.340199,255,255,0</font> <br><font face="Arial" size="2">-50.203003,50.661999,223,255,47</font> <br>
<font face="Arial" size="2">-48.816010,50.845798,255,223,0</font> <br><font face="Arial" size="2">-47.417999,51.013000,255,191,0</font> <br><font face="Arial" size="2">-46.010986,51.163502,255,207,0</font> <br><font face="Arial" size="2">-44.595001,51.297001,255,255,15</font> <br>
<font face="Arial" size="2">-50.585999,50.598900,255,191,0</font> <br><font face="Arial" size="2">-49.201996,50.787601,255,255,0</font> <br><br>                                               </div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>