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

Jeremy Palmer JPalmer at linz.govt.nz
Tue Feb 26 13:49:27 PST 2013


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/711631da/attachment.html>


More information about the gdal-dev mailing list