I have some Dutch Infrastructure GML files that I'm trying to display in GeoServer. Step 1 is to import the GML into PostGIS and while I can make it work using the OGR GML driver, I end up with a nasty mismash of tables that have to be stitched back together with views (and guess work). So I thought I could use the GMLAS driver (it should be able to handle this sort of INSPIRE data) and it seems to except it doesn't import the geometries of the links.
These are stored in pairs of features like this, 1st there is a imkl:Rioolleiding
(a storm water drain) which links via it's <net:link xlink:href="nl.imkl-GM1641.236013_ulink"></net:link>
to the following feature us-net-common:UtilityLink
which holds some more information and the actual geometry.
Running ogrinfo -oo REMOVE_UNUSED_LAYERS=yes -oo REMOVE_UNUSED_FIELDS=yes -ro GMLAS:GI_gebiedsinformatielevering_19C000111_1.xml
gives 66 layers but only one in us_net_common
which is us_net_common_inspireid
, and 3 rioolleiding
layers none of which has any geometry.
23: rioolleiding (None)
24: rioolleiding_innetwork (None)
25: rioolleiding_link (None)
Please tell me I'm missing something obvious.
<imkl:Rioolleiding
xmlns:us-govserv="http://inspire.ec.europa.eu/schemas/us-govserv/4.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0"
xmlns:gts="http://www.isotc211.org/2005/gts"
xmlns:sc="http://www.interactive-instruments.de/ShapeChange/AppInfo"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:act-core="http://inspire.ec.europa.eu/schemas/act-core/4.0"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gmlexr="http://www.opengis.net/gml/3.3/exr"
xmlns:gsr="http://www.isotc211.org/2005/gsr"
xmlns:gss="http://www.isotc211.org/2005/gss"
gml:id="nl.imkl-GM1641.236013">
<net:beginLifespanVersion>1900-01-01T00:00:00.000Z</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>GM1641.236013</base:localId>
<base:namespace>nl.imkl</base:namespace>
</base:Identifier>
</net:inspireId>
<net:inNetwork xlink:href="nl.imkl-GM1641.Maasgouw_RVV"></net:inNetwork>
<net:link xlink:href="nl.imkl-GM1641.236013_ulink"></net:link>
<us-net-common:currentStatus xlink:href="http://inspire.ec.europa.eu/codelist/ConditionOfFacilityValue/functional"></us-net-common:currentStatus>
<us-net-common:validFrom>1900-01-01T00:00:00.000Z</us-net-common:validFrom>
<us-net-common:verticalPosition>underground</us-net-common:verticalPosition>
<us-net-common:utilityFacilityReference></us-net-common:utilityFacilityReference>
<us-net-common:governmentalServiceReference></us-net-common:governmentalServiceReference>
<us-net-common:warningType xsi:nil="true" nilReason="unknown"></us-net-common:warningType>
<us-net-common:pipeDiameter uom="urn:ogc:def:uom:OGC::mm">125.0</us-net-common:pipeDiameter>
<us-net-sw:sewerWaterType xlink:href="http://inspire.ec.europa.eu/codelist/SewerWaterTypeValue/combined"></us-net-sw:sewerWaterType>
<imkl:geoNauwkeurigheidXY xlink:href="http://definities.geostandaarden.nl/imkl2015/id/waarde/NauwkeurigheidXYvalue/onbekend"></imkl:geoNauwkeurigheidXY>
<imkl:buismateriaalType xlink:href="http://definities.geostandaarden.nl/imkl2015/id/waarde/PipeMaterialTypeIMKLValue/PVC"></imkl:buismateriaalType>
</imkl:Rioolleiding>
</gml:featureMember>
<gml:featureMember>
<us-net-common:UtilityLink
xmlns:us-govserv="http://inspire.ec.europa.eu/schemas/us-govserv/4.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0"
xmlns:gts="http://www.isotc211.org/2005/gts"
xmlns:sc="http://www.interactive-instruments.de/ShapeChange/AppInfo"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:act-core="http://inspire.ec.europa.eu/schemas/act-core/4.0"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gmlexr="http://www.opengis.net/gml/3.3/exr"
xmlns:gsr="http://www.isotc211.org/2005/gsr"
xmlns:gss="http://www.isotc211.org/2005/gss"
gml:id="nl.imkl-GM1641.236013_ulink">
<net:beginLifespanVersion>1900-01-01T00:00:00.000Z</net:beginLifespanVersion>
<net:inspireId>
<base:Identifier>
<base:localId>GM1641.236013_ulink</base:localId>
<base:namespace>nl.imkl</base:namespace>
</base:Identifier>
</net:inspireId>
<net:inNetwork xlink:href="nl.imkl-GM1641.Maasgouw_RVV"></net:inNetwork>
<net:centrelineGeometry>
<gml:LineString gml:id="nl.imkl-GM1641.236013_ulink-0" srsDimension="2" srsName="EPSG:28992">
<gml:posList>190008.375849 351407.866177 190008.475669 351408.328408</gml:posList>
</gml:LineString>
</net:centrelineGeometry>
<net:fictitious>false</net:fictitious>
<us-net-common:currentStatus xlink:href="http://inspire.ec.europa.eu/codelist/ConditionOfFacilityValue/functional"></us-net-common:currentStatus>
<us-net-common:validFrom>2018-07-10T00:00:00.000Z</us-net-common:validFrom>
<us-net-common:verticalPosition>underground</us-net-common:verticalPosition>
<us-net-common:utilityFacilityReference></us-net-common:utilityFacilityReference>
<us-net-common:governmentalServiceReference></us-net-common:governmentalServiceReference>
</us-net-common:UtilityLink>
</gml:featureMember>