I'm using gdal_grid for the first time and get this issue:
gdal_grid -zfield field_3 -l layer0 OLEX-LAT-190952014.vrt OLEX-LAT-190952014.tiff ERROR 1: Failed to find layer 'layer0' on datasource 'OLEX-LAT-190952014.short.csv'. Failed to find field field_3 on layer layer0, skipping.
Here is what my vrt file looks like:
<OGRVRTDataSource> <OGRVRTLayer name="layer0"> <SrcDataSource>OLEX-LAT-190952014.short.csv</SrcDataSource> <GeometryType>wkbPoint</GeometryType> <LayerSRS>EPSG:25832</LayerSRS> <GeometryField separator=" " encoding="PointFromColumns" x="field_1" y="field_2" z="field_3"/> </OGRVRTLayer> </OGRVRTDataSource>
And my data file:
field_1,field_2,field_3 6932193.2570,377160.7010,-33.1300 6932194.6430,377162.4380,-32.6600
- The first error mesage indicates that gdal_grid looks for a layer in the csv file - but how can a csv file contain a layer?
- The next error message indicates that gdal_grid has read the csv file and can't find field_3 although it is clearly there?
Any ideas what I'm doing wrong?
GDAL version 1.10.1