<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<BR>I'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 'no-data' values.<BR> <BR>The command I am using is:<BR> <BR><FONT size=2 face=Arial>gdal_grid -txe -51.428009 -43.153992 -tye 46.112598 51.347198 -outsize 1024 796 \</FONT> <BR><FONT size=2 face=Arial> -a nearest:radius1=10.0:radius2=10.0:angle=0.0:nodata=0.0 \</FONT> <BR><FONT size=2 face=Arial> -l rs2_file_1 -l rs2_file_2 -l rs2_file_3 \</FONT> <BR><FONT size=2 face=Arial> -of GTiff -ot Byte rs2_file.vrt test.tiff</FONT> <BR> <BR>I have also tried the following interpolation parameters:<BR> <BR><FONT size=2 face=Arial># Results in all black</FONT> <BR><FONT size=2 face=Arial># -a nearest:radius1=1.0:radius2=1.0:angle=0.0:nodata=0.0 \</FONT> <BR><FONT size=2 face=Arial># -a average:radius1=1.0:radius2=1.0:angle=0.0:min_points=1:nodata=0.0 \</FONT> <BR><FONT size=2 face=Arial># -a invdist:radius1=1.0:radius2=1.0:angle=0.0:max_points=1:min_points=1:nodata=0.0 \</FONT> <BR><FONT size=2 face=Arial></FONT> <BR><FONT size=2 face=Arial># Results in all one shade of grey</FONT> (average of entire image)<BR><FONT size=2 face=Arial># -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 size=2 face=Arial>rs2_file.vrt</FONT> <BR><FONT size=2 face=Arial>::::::::::::::</FONT> <BR><FONT size=2 face=Arial><OGRVRTDataSource></FONT> <BR><FONT size=2 face=Arial><OGRVRTLayer name="rs2_file_1"></FONT> <BR><FONT size=2 face=Arial><SrcDataSource>rs2_file_1.csv</SrcDataSource></FONT> <BR><FONT size=2 face=Arial><GeometryType>wkbPoint25D</GeometryType></FONT> <BR><FONT size=2 face=Arial><GeometryField encoding="PointFromColumns" x="lon" y="lat" z="red"/></FONT> <BR><FONT size=2 face=Arial></OGRVRTLayer></FONT> <BR><FONT size=2 face=Arial><OGRVRTLayer name="rs2_file_2"></FONT> <BR><FONT size=2 face=Arial><SrcDataSource>rs2_file_2.csv</SrcDataSource></FONT> <BR><FONT size=2 face=Arial><GeometryType>wkbPoint25D</GeometryType></FONT> <BR><FONT size=2 face=Arial><GeometryField encoding="PointFromColumns" x="lon" y="lat" z="green"/></FONT> <BR><FONT size=2 face=Arial></OGRVRTLayer></FONT> <BR><FONT size=2 face=Arial><OGRVRTLayer name="rs2_file_3"></FONT> <BR><FONT size=2 face=Arial><SrcDataSource>rs2_file_3.csv</SrcDataSource></FONT> <BR><FONT size=2 face=Arial><GeometryType>wkbPoint25D</GeometryType></FONT> <BR><FONT size=2 face=Arial><GeometryField encoding="PointFromColumns" x="lon" y="lat" z="blue"/></FONT> <BR><FONT size=2 face=Arial></OGRVRTLayer></FONT> <BR><FONT size=2 face=Arial></OGRVRTDataSource></FONT> <BR><FONT size=2 face=Arial>rs2_file.vrt (partial)</FONT> <BR><FONT size=2 face=Arial>::::::::::::::</FONT> <BR><FONT size=2 face=Arial>lat,lon,red,green,blue</FONT> <BR><FONT size=2 face=Arial>-51.428009,50.522499,0,0,143</FONT> <BR><FONT size=2 face=Arial>-50.049011,50.720699,0,0,143</FONT> <BR><FONT size=2 face=Arial>-48.660004,50.902401,0,159,255</FONT> <BR><FONT size=2 face=Arial>-47.260010,51.067501,0,239,255</FONT> <BR><FONT size=2 face=Arial>-45.851013,51.215900,255,255,15</FONT> <BR><FONT size=2 face=Arial>-44.433014,51.347198,255,191,0</FONT> <BR><FONT size=2 face=Arial>-50.433014,50.657600,255,255,0</FONT> <BR><FONT size=2 face=Arial>-49.046997,50.844200,255,223,0</FONT> <BR><FONT size=2 face=Arial>-47.649994,51.014301,255,159,0</FONT> <BR><FONT size=2 face=Arial>-46.243988,51.167599,255,191,0</FONT> <BR><FONT size=2 face=Arial>-44.829010,51.303799,255,255,15</FONT> <BR><FONT size=2 face=Arial>-50.816010,50.593800,255,255,0</FONT> <BR><FONT size=2 face=Arial>-49.433014,50.784698,255,175,0</FONT> <BR><FONT size=2 face=Arial>-48.040009,50.959202,255,239,0</FONT> <BR><FONT size=2 face=Arial>-46.635986,51.117100,255,191,0</FONT> <BR><FONT size=2 face=Arial>-45.222992,51.257999,255,223,0</FONT> <BR><FONT size=2 face=Arial>-51.197998,50.528301,255,175,0</FONT> <BR><FONT size=2 face=Arial>-49.819000,50.724098,255,191,0</FONT> <BR><FONT size=2 face=Arial>-48.428009,50.903500,255,223,0</FONT> <BR><FONT size=2 face=Arial>-47.028015,51.066299,255,207,0</FONT> <BR><FONT size=2 face=Arial>-45.618011,51.211800,255,255,0</FONT> <BR><FONT size=2 face=Arial>-44.199005,51.340199,255,255,0</FONT> <BR><FONT size=2 face=Arial>-50.203003,50.661999,223,255,47</FONT> <BR><FONT size=2 face=Arial>-48.816010,50.845798,255,223,0</FONT> <BR><FONT size=2 face=Arial>-47.417999,51.013000,255,191,0</FONT> <BR><FONT size=2 face=Arial>-46.010986,51.163502,255,207,0</FONT> <BR><FONT size=2 face=Arial>-44.595001,51.297001,255,255,15</FONT> <BR><FONT size=2 face=Arial>-50.585999,50.598900,255,191,0</FONT> <BR><FONT size=2 face=Arial>-49.201996,50.787601,255,255,0</FONT> <BR><BR>                                            </body>
</html>