Mapping lakes with islands to INSPIRE HY Standing Water

Added by Helen Eriksson almost 2 years ago

Hi,
I am trying to map a shape-file with lakes that contains islands to INSPIRE HY Standing Water using Hale 2.9.4. The resulting GML-file validates correctly in an XML editor, but the GML geometry is still not correct as it cannot be viewed in QGIS. If I manually fix the GML-file (replacing <gml:posList> with <gml:coordinates>) it both validates correctly and can be viewed in QGIS, e.g.:

<hy-p:geometry>
<gml:Polygon gml:id="_20ea6c27-b254-462f-aeba-5f6df33f6827" srsName="http://www.opengis.net/def/crs/EPSG/0/3006" srsDimension="3">
<gml:exterior>
<gml:LinearRing>
<gml:posList>6331771.795 586622.652… </gml:posList>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:posList>6332712.649 590480.891… </gml:posList>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
</hy-p:geometry>

is changed to:
<hy-p:geometry>
<gml:Polygon gml:id="_20ea6c27-b254-462f-aeba-5f6df33f6827" srsName="http://www.opengis.net/def/crs/EPSG/0/3006" srsDimension="3">
<gml:exterior>
<gml:LinearRing>
<gml:coordinates>6331771.795 586622.652… </gml:coordinates>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:coordinates>6332712.649 590480.891… </gml:coordinates>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
</hy-p:geometry>

I encountered a similar problem when mapping multiple geometries to INSPIRE AU about a year ago. This was fixed in version 2.9.2, but now I think I am using the latest version of Hale i.e. 2.9.4. Would it be possible for you to look into this problem?

Many thanks and Kind Regards,
Helen Eriksson


Replies (2)

RE: Mapping lakes with islands to INSPIRE HY Standing Water - Added by Simon Templer almost 2 years ago

Hi Helen,

is the data you are dealing with 2D or 3D data?
The srsDimension suggests the later.

The posList element is a double list where all ordinates are separated by space.
The coordinates element is represented differently. By default ordinates are separated by space and points by comma.
So the representation is not compatible. But with the coordinates element the dimension can be deduced from there, while with posList only the srsDimension can be used to interpret it.

Best,
Simon

RE: Mapping lakes with islands to INSPIRE HY Standing Water - Added by Helen Eriksson almost 2 years ago

Hi Simon,
Many thanks for your help and quick response. Our source data is 2D, but for some reason the shapefile had the format “Polygon ZM”. When this was changed to “Polygon” and remapped in Hale it all came out correct in GML and can also be viewed in QGIS.
Kind regards,
Helen

(1-2/2)