citygml4j / citygml-tools

Collection of tools for processing CityGML files
Apache License 2.0
115 stars 18 forks source link

export to-cityjson -> write / keep reference system? #38

Closed pcace closed 1 year ago

pcace commented 1 year ago

Hi there again, is there a way to keep the reference system from a gml file in the exported cityjson file as described in the specification for example:

"metadata": {
  "referenceSystem": "https://www.opengis.net/def/crs/EPSG/0/7415"
}

from this gml line: <gml:Envelope srsName="urn:adv:crs:ETRS89_UTM33*DE_DHHN2016_NH"> for example files see example4 here.

i tried running it with --epsg like so:./citygml-tools-2.1.0/citygml-tools to-cityjson --epsg=25833 tmp/lod2_33332-5835_geb.gml without success. there is no system reference in the json :(

Cheers and thanks!

pcace commented 1 year ago

oh no - never mind. i just looked at the wrong output file- it works as expected!