citygml4j / citygml-tools

Collection of tools for processing CityGML files
Apache License 2.0
124 stars 19 forks source link

Non-CityGML content is skipped #39

Closed pcace closed 1 year ago

pcace commented 1 year ago

Hi there,

i am struggling when converting citygml files to cityjson, when there are non-CityGML namespacesused. is it basically not possible to convert this file? gml.txt

[15:57:33 INFO] Starting citygml-tools.
[15:57:33 INFO] Executing 'to-cityjson' command.
[15:57:33 INFO] Found 1 file(s) at gml.gml.
[15:57:34 INFO] [1|1] Processing file /mnt/c/Users/Johannes/Desktop/gml.gml.
[15:57:34 WARN] The input file uses unsupported non-CityGML namespace(s): http://repository.gdi-de.org/schemas/adv/produkt/alkis-vereinfacht/2.0, http://www.opengis.net/wfs.
[15:57:34 INFO] Non-CityGML content is skipped unless a matching ADE extension has been loaded.
[15:57:34 INFO] Writing output to file /mnt/c/Users/Johannes/Desktop/gml.json.
[15:57:34 INFO] Total execution time: 01 s.
[15:57:34 INFO] citygml-tools finished with 1 warning(s).

or whats the trick behind it? what is meant with "ADE extension has been loaded"? or: how does such a ADE extension look like or what is that?

Cheers and thanks

this would be an alternative file with the same result: generated from here

<gml:FeatureCollection xmlns="http://repository.gdi-de.org/schemas/adv/produkt/alkis-vereinfacht/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" gml:id="collection.0" xsi:schemaLocation="http://repository.gdi-de.org/schemas/adv/produkt/alkis-vereinfacht/2.0 https://isk.geobasis-bb.de/schema/AAA-vereinfacht/2.0/schema/ALKIS-vereinfacht.xsd http://www.opengis.net/gml/3.2 https://isk.geobasis-bb.de/schema/ogc/gml/3.2.1/gml.xsd http://www.isotc211.org/2005/gco https://isk.geobasis-bb.de/schema/ogc/iso/19139/20070417/gco/gco.xsd http://www.isotc211.org/2005/gmd https://isk.geobasis-bb.de/schema/ogc/iso/19139/20070417/gmd/gmd.xsd">
<gml:boundedBy>
<gml:Envelope srsName="urn:ogc:def:crs:EPSG::25833" srsDimension="2">
<gml:lowerCorner>376901.824 5699652.997</gml:lowerCorner>
<gml:upperCorner>376958.937 5699660.098</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<gml:featureMember>
<Flurstueck gml:id="DEBBAL010007T8VoFL">
<gml:identifier codeSpace="urn:adv:oid:">urn:adv:oid:DEBBAL010007T8VoFL</gml:identifier>
<idflurst>DEBBAL010007T8Vo</idflurst>
<flstkennz>12133200201168______</flstkennz>
<land>Brandenburg</land>
<landschl>12</landschl>
<gemarkung>Mühlberg</gemarkung>
<gemaschl>121332</gemaschl>
<flur>002</flur>
<flurschl>121332002</flurschl>
<flstnrzae>1168</flstnrzae>
<kreis>Elbe-Elster</kreis>
<kreisschl>12062</kreisschl>
<gemeinde>Mühlberg/Elbe</gemeinde>
<gmdschl>12062341</gmdschl>
<oid>DEBBAL010007T8VoFL</oid>
<aktualit>2014-10-08Z</aktualit>
<geometrie>
<gml:MultiSurface gml:id="flurstueck.id.235987315.geometrie.Geom_0" srsName="urn:ogc:def:crs:EPSG::25833" srsDimension="2">
<gml:surfaceMember>
<gml:Polygon gml:id="flurstueck.id.235987315.geometrie.Geom_1">
<gml:exterior>
<gml:LinearRing>
<gml:posList>376901.824 5699660.098 376902.626 5699655.926 376958.937 5699652.997 376957.6 5699658.072 376901.824 5699660.098</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
</geometrie>
<flaeche>257.00</flaeche>
<abwrecht>Kein abweichender Rechtszustand</abwrecht>
<lagebeztxt>Kröbelner Straße 23</lagebeztxt>
</Flurstueck>
</gml:featureMember>
</gml:FeatureCollection>
clausnagel commented 1 year ago

This is an ALKIS dataset, not a CityGML dataset. Thus, you cannot process it with citygml-tools.

ALKIS generally uses 2D geometries. So, instead of converting to CityGML/CityJSON I would rather go with GeoJSON.