[postgis-users] GML ver 3 id duplicated error
Paul Ramsey
pramsey at cleverelephant.ca
Tue May 16 08:54:41 PDT 2023
Bug or shortcoming, I don’t think we ever had this behaviour, and probably never encountered a validator that checked it. If you can nail down the specific GML version it applies to, that would be helpful in applying a fix. For deeply nested multi-geometries, I can see this being quite… enjoyable to repair.
P
> On May 16, 2023, at 8:52 AM, Michal Seidl <michal.seidl at gmail.com> wrote:
>
> Hello,
> we use POSTGIS="3.3.1 3786b21" and have problem with validation of GML geometry. The validator complains about duplicated "id" values in generated XML in MultiSuface and Polygon.
>
> <gml:MultiSurface srsName="EPSG:4326" gml:id="1">
> <gml:surfaceMember>
> <gml:Polygon gml:id="1">
> <gml:exterior>
> <gml:LinearRing>
> <gml:posList srsDimension="2">0 0 0 1 1 1 1 0 0 0</gml:posList>
> </gml:LinearRing>
> </gml:exterior>
> </gml:Polygon>
> </gml:surfaceMember>
> </gml:MultiSurface>
>
> We have not found definition for GML ver 3.1.1 but for 3.2.1 by this link https://docs.geoserver.org/2.23.x/en/user/data/app-schema/supported-gml-versions.html says:
>
> If a multigeometry (such as a MultiPoint or MultiSurface) is assigned a gml:id of (for example) parentid, to permit GML 3.2.1 schema-validity, each geometry that the multigeometry contains will be automatically assigned a gml:id of the form parentid.1, parentid.2, … in order.
>
> Is it Postgis bug or difference between GML ver 3.1.1 and 3.2.1?
>
> Thanks for help Michal S.
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list