[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:


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:


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