Re: [gdal-dev] GML element/attribute discovery inconsistency

2018-11-27 Thread Even Rouault
On mardi 27 novembre 2018 14:16:19 CET Björn Harrtell wrote: > Thanks for the clarifications Even, > > I've tried GMLAS but been unsuccessful in getting it to produce useful > output. I assume you had a schema to point to. The GMLAS driver has been tested on a number of fairly complicated models

Re: [gdal-dev] GML element/attribute discovery inconsistency

2018-11-27 Thread Björn Harrtell
Thanks for the clarifications Even, I've tried GMLAS but been unsuccessful in getting it to produce useful output. I'm actually quite happy with the standard GML driver, except that it ignores other attributes when element has xsi:nil. Would it be a welcome change to remove that behavior, treatin

Re: [gdal-dev] GML element/attribute discovery inconsistency

2018-11-27 Thread jratike80
Hi, I would mention also an open option EMPTY_AS_NULL=NO that seems to adds some fields into ogrinfo result: gml_id: String (0.0) NOT NULL a1: StringList (0.0) a2: String (0.0) a2_uom: String (1.0) a3_title: String (5.0) a3: String (0.0) a3_href: String (22.0) a4: String (0.0) a4_href: String (40

Re: [gdal-dev] GML element/attribute discovery inconsistency

2018-11-27 Thread Even Rouault
> Are my observations correct? Björn, It would be difficult to deny the results of tests :-) The GML driver has a lot of particular handling tailored for particular datasets, which makes understanding its behaviour non-obvious From the code (which confirms your observations), - if an element h

[gdal-dev] GML element/attribute discovery inconsistency

2018-11-27 Thread Björn Harrtell
I think I've found some inconsistencies in GML parsing. Given the following example GML: http://www.opengis.net/gml/3.2"; xmlns:ex="http://example.com"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:xml="http://www.w3.org/XML/1998/namespace"; xmlns:xsi="http://www.w3.org/2001/XMLSche