I would like to convert a vrt
file into a raster dataset using gdal_translate
. I am doing the following:
gdal_translate in.vrt out.tif
However I get the following error:
`ERROR 4: 'in_vrt' not recognized as a supported file format.
I have checked and rechecked my file name and path and I can't figure out what I'm doing wrong. I tried opening in Arcmap and got this error message:
Invalid raster dataset. Failed to create raster layer
and in QGIS I got:
Invalid Layer: GDAL provider Cannot open GDAL dataset in.vrt: `in.vrt' not recognized as a supported file format. Raster layer Provider is not valid (provider: gdal, URI: in.vrt
Does anyone know what I am doing wrong? How can I open this vrt file with no errors?
EDIT Here are a few lines from a typical vrt I am using
<OGRVRTDataSource>
<OGRVRTLayer name="gouda_rws_env_dsc_v3_ds_qh">
<SrcDataSource>gouda_rws_env_dsc_v3_ds_qh.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="pnt_lon" y="pnt_lat"/>
<Field name="pnt_id" src="pnt_id" type="String" />
<Field name="pnt_lat" src="pnt_lat" type="Real" />
<Field name="pnt_lon" src="pnt_lon" type="Real" />
<Field name="pnt_rdx" src="pnt_rdx" type="Real" />
<Field name="pnt_rdy" src="pnt_rdy" type="Real" />
<Field name="pnt_demheight" src="pnt_demheight" type="Real" />
<Field name="pnt_height" src="pnt_height" type="Real" />
gdal_translate
command?Some raster map.vrt
might fail while the same VRT file namedSome raster map.tif.vrt
would work. I could be well be mis-remembering though.