Closed Adraesh closed 4 years ago
There are 2 different issues:
Hi all,
@rouault
the GML driver doesn't accept currently single geometries, but only FeatureCollection of features. This part isn't addressed
I don't really understand this sentence. You mean that GML driver is waiting for more than one polygon in the GML? Because @Adraesh sample is one feature with N vertices.
Nice fix by the way. Bien joué.
It means that feature(s) must be wrapped inside FeatureCollection
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ogr.maptools.org/ foo.xsd"
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
<gml:Box>
<gml:coord><gml:X>751.339745962156</gml:X><gml:Y>410</gml:Y></gml:coord>
<gml:coord><gml:X>768.660254037844</gml:X><gml:Y>430</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:foo fid="foo.0">
<ogr:geometryProperty><gml:LineString><gml:coordinates>760,430 768.660254037844,425.0 768.660254037844,415.0 760,410 751.339745962156,415.0 751.339745962156,425.0 760,430</gml:coordinates></gml:LineString></ogr:geometryProperty>
<ogr:R_G_B xsi:nil="true"/>
</ogr:foo>
</gml:featureMember>
</ogr:FeatureCollection>
Hi all,
GDAL 2.4.4, released 2020/01/08
I am trying to convert the simple bellow xml into Geojson using the following command:
Xml:
The result is the following:
I am wondering why the geometry is null? I wish to have everything resolved/merged into the geometry field to at the end have 1 final geometry.
Thank you in advance.