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

2013-02-27 Thread Even Rouault
Le mercredi 27 février 2013 18:39:23, Jeremy Palmer a écrit : > No problem at all. > > I'm sure it has something do with the new streaming option in GDAL/OGR > 1.10. If I run the query with the OGR_WFS_USE_STREAMING config set to NO > it works: > > ogrinfo --config OGR_WFS_USE_STREAMING NO -diale

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

2013-02-27 Thread Jeremy Palmer
No problem at all. I'm sure it has something do with the new streaming option in GDAL/OGR 1.10. If I run the query with the OGR_WFS_USE_STREAMING config set to NO it works: ogrinfo --config OGR_WFS_USE_STREAMING NO -dialect sqlite -sql "select id, shape from \"v:x1571\" WHERE id = 3241251" WFS

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

2013-02-27 Thread Jukka Rahkonen
Jeremy Palmer linz.govt.nz> writes: > > Hi Jukka, > > But that's legal XML and GML is it not? > > Jeremy Sorry, I have no idea about that. I am not a developer but just a somewhat experienced user and if something works it is legal enough for me. I have a feeling that this GML is OK because i

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

2013-02-27 Thread Jeremy Palmer
l-dev@lists.osgeo.org Subject: Re: [gdal-dev] ogr WFS GML parse error with WFS 1.1.0 Jeremy Palmer linz.govt.nz> writes: > > So could it be a http streaming issue? Actually the error that is reported in your debug log file has happened also in the same location: "mismatched tag at line 2, co

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

2013-02-26 Thread Jukka Rahkonen
Jeremy Palmer linz.govt.nz> writes: > > So could it be a http streaming issue? Actually the error that is reported in your debug log file has happened also in the same location: "mismatched tag at line 2, column 3621905" That character in that column seems to be "/" in the beginning of the las

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

2013-02-26 Thread Jeremy Palmer
> should be fixed by r25691 Thanks. That works when using SimplifyPreserveTopology :) 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. I

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

2013-02-26 Thread Jeremy Palmer
So could it be a http streaming issue? -Original Message- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Jukka Rahkonen Sent: Wednesday, 27 February 2013 11:24 a.m. To: gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] ogr WFS GML parse error

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

2013-02-26 Thread Jukka Rahkonen
Jeremy Palmer linz.govt.nz> writes: > > > 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

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

2013-02-26 Thread Even Rouault
Le mardi 26 février 2013 22:57:40, Jeremy Palmer a écrit : > As a follow up why can't I run: > > -sql "select id, ST_SimplifyPreserveTopology(shape, 0.005) from \"v:x1571\" > : > > for my SQLITE SQL? should be fixed by r25691 I haven't looked at your original issue with the GML parsing error. T

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

2013-02-26 Thread Jeremy Palmer
-lxml2 I'm running GDAL trunk from about mid last week. From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Jeremy Palmer Sent: Wednesday, 27 February 2013 10:49 a.m. To: gdal-dev@lists.osgeo.org Subject: [gdal-dev

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

2013-02-26 Thread Jeremy Palmer
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 362182