[gdal-dev] OGR Virtual Format: ERROR 1: Line 6: Didn't find element token after open angle bracket.
Helmut Kudrnovsky
hellik at web.de
Wed Jul 1 12:57:06 PDT 2015
Hi,
working with gdalinfo --version GDAL 1.11.2, released 2015/02/10 (OSGeo4W).
given a csv-file and a vrt dataset based upon the csv file:
<OGRVRTDataSource>
<OGRVRTLayer name="gbif_gisinput">
<SrcDataSource>gbif_gisinput.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="decimallongitude"
y="decimallatitude"/>
</OGRVRTLayer>
</OGRVRTDataSource>
this vrt vector dataset works:
ogrinfo gbif_to_gis.vrt
INFO: Open of `gbif_to_gis.vrt'
using driver `VRT' successful.
1: gbif_gisinput (Point)
I can do e.g.:
ogr2ogr test2.shp gbif_to_gis_working.vrt
translate it to a working shapefile.
if I do some selecting by <SrcSQL>SELECT:
<OGRVRTDataSource>
<OGRVRTLayer name="gbif_gisinput">
<SrcDataSource>gbif_gisinput.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<LayerSRS>WGS84</LayerSRS>
<GeometryField encoding="PointFromColumns" x="decimallongitude"
y="decimallatitude"/>
<SrcSQL>SELECT * FROM gbif_gisinput WHERE (decimallongitude >= 0) AND
(decimallongitude <= 360)</SrcSQL>
</OGRVRTLayer>
</OGRVRTDataSource>
I get following error message:
ogrinfo gbif_to_gis_not_working.vrt
ERROR 1: Line 6: Didn't find element token after open angle bracket.
ERROR 1: Line 6: Didn't find element token after open angle bracket.
FAILURE:
Unable to open datasource `gbif_to_gis_not_working.vrt' with the following
drivers.
any idea what's missing/wrong?
-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OGR-Virtual-Format-ERROR-1-Line-6-Didn-t-find-element-token-after-open-angle-bracket-tp5213859.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list