Hi list,

When parsing a gml file, I came upon a problem. When the geometry part of the gml file has a surfaceMember, the GML parser returns an empty MultiPolygon. When removing the surfaceMember (and preceding Surface) element, it returns a correct MultiPolygon.
I've created a simplified version of the gml snippet:

<?xml version="1.0"?>_*
*__*<gml:Surface>*__*
*__*    <gml:surfaceMember>*_
        <gml:Surface gml:id="ID2">
            <gml:patches>
                <gml:PolygonPatch>
                    <gml:exterior>
                        <gml:LinearRing>
                            <gml:posList>0 0 0 1 1 1 1 0 0 0</gml:posList>
                        </gml:LinearRing>
                    </gml:exterior>
                </gml:PolygonPatch>
            </gml:patches>_*
*__*        </gml:Surface>*__*
*__*    </gml:surfaceMember>*_
</gml:Surface>

I've marked the offending elements. When removing the underlined+bold elements, parsing works. I've created a gist:
https://gist.github.com/mtoonen/dc33661215bffcfb37820afe6fe97a20

The GML is valid and well-formed.

Any thoughts?

Regards,

--


Meine Toonen
B3Partners BV
Tel: 030 214 2083

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to