[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 13:46:14 PDT 2015


Hi Even,


Even Rouault-2 wrote
>> 	
> <SrcSQL>
> SELECT * FROM gbif_gisinput WHERE (decimallongitude >= 0) AND
>> (decimallongitude <= 360)
> </SrcSQL>
> Helmut,
> 
> This is invalid XML. > and < characters as text must be escaped. So should
> be:
> <SrcSQL>
> SELECT * FROM gbif_gisinput WHERE (decimallongitude >= 0) AND 
> (decimallongitude <= 360)
> </SrcSQL>
> Even

thanks for the hint.

when using an updated vrt (attached file:  gbif_to_gis_not_working_test.vrt
<http://osgeo-org.1560.x6.nabble.com/file/n5213867/gbif_to_gis_not_working_test.vrt> 
)

I get now:

ogr2ogr filtered9.shp gbif_to_gis_not_working_test.vrt
ERROR 1: Type mismatch or improper type of arguments to >= operator.
ERROR 1: SQL statement failed, or returned no layer result:
SELECT * FROM gbif_gisinput WHERE (decimallongitude >= 0) AND
(decimallongitude
<= 360)

thanks.




-----
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-tp5213859p5213867.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list