[gdal-dev] ogr WFS GML parse error with WFS 1.1.0

Jeremy Palmer JPalmer at linz.govt.nz
Tue Feb 26 13:57:40 PST 2013


As a follow up why can't I run:

-sql "select id, ST_SimplifyPreserveTopology(shape, 0.005) from \"v:x1571\" :

for my SQLITE SQL?

I get a message back saying:

ERROR 1: Undefined function 'ST_SimplifyPreserveTopology' used

I also tired just SimplifyPreserveTopology. Same result.

When I put debug on and I don't use the spatialite function it says:

SQLITE: SpatiaLite DB found !
OGR: Unloading VirtualOGR module

Which makes me think I have spatialite support.

Here my gdal-config --dep-libs:

-L/usr/lib -lgeos_c -lodbc -lodbcinst -lexpat -lxerces-c -lpthread -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lspatialite -L/usr/lib/x86_64-linux-gnu -lcurl -Wl,-Bsymbolic-functions -Wl,-z,relro -L/usr/lib -lNCSEcw -lNCSEcwC -lNCSCnet -lNCSUtil -L/opt/FileGDB_API/lib -lFileGDBAPI -L/usr/lib -lxml2

I'm running GDAL trunk from about mid last week.

________________________________
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Jeremy Palmer
Sent: Wednesday, 27 February 2013 10:49 a.m.
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] ogr WFS GML parse error with WFS 1.1.0

When use WFS to pull a large GML object it fails:

ogrinfo -dialect sqlite -sql "select id, shape from \"v:x1571\" WHERE id = 3241251" WFS:'http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1571/wfs'
ERROR 1: XML parsing of GML file failed : mismatched tag at line 2, column 3621825

data parses fine in chrome:

http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1571/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=v:x1571&FILTER=%3CFilter%20xmlns%3D%22http:%2F%2Fwww.opengis.net%2Fogc%22%20xmlns:v%3D%22http:%2F%2Fdata.linz.govt.nz%2Fns%2Fv%22%20xmlns:gml%3D%22http:%2F%2Fwww.opengis.net%2Fgml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid%3C%2FPropertyName%3E%3CLiteral%3E3241251%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E


However if I force WFS 1.0.0 it works:

ogrinfo -dialect sqlite -sql "select id, shape from \"v:x1571\" WHERE id = 3241251" WFS:'http://wfs.data.linz.govt.nz/84f646e35be34843abd9cee6085b50d6/v/x1571/wfs?VERSION=1.0.0'
Any ideas? Maybe axis order issue?

Here's my command run with debug on:

https://gist.github.com/palmerj/958f64ea6601c906235e


________________________________
This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this message. If you have received this message in error, please notify us immediately (Phone 0800 665 463 or info at linz.govt.nz) and destroy the original message. LINZ accepts no responsibility for changes to this email, or for any attachments, after its transmission from LINZ. Thank You.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130227/f9b47857/attachment.html>


More information about the gdal-dev mailing list