citygml4j / citygml-tools

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

How to load EnergyADE extensions #41

Closed PieterBlomme closed 1 year ago

PieterBlomme commented 1 year ago

I'm trying to convert a CityGML file that uses the EnergyADE extension.
I'm getting a warning that 'Non-CityGML content is skipped unless a matching ADE extension has been loaded'. How would I load the EnergyADE extension? I can't find any documentation on it.

(base) ubuntu@P220024:/mnt/c/Users/BLOMMEP/Downloads/citygml-tools-2.0.0$ ./citygml-tools --extensions=extensions --log-level=debug to-cityjson ../Mandel_20220701.gml [13:17:36 INFO] Starting citygml-tools. [13:17:37 INFO] Loading extensions from /mnt/c/Users/BLOMMEP/Downloads/citygml-tools-2.0.0/extensions. [13:17:37 INFO] Executing 'to-cityjson' command. [13:17:37 DEBUG] Searching for CityGML input files. [13:17:37 INFO] Found 1 file(s) at ../Mandel_20220701.gml. [13:17:37 DEBUG] Using CityJSON 1.1 for the output file(s). [13:17:37 INFO] [1|1] Processing file /mnt/c/Users/BLOMMEP/Downloads/citygml-tools-2.0.0/../Mandel_20220701.gml. [13:17:37 DEBUG] Reading global appearances, groups and implicit geometries from input file. [13:17:41 WARN] The input file uses unsupported non-CityGML namespace(s): http://www.sig3d.org/citygml/2.0/energy/1.0. [13:17:41 INFO] Non-CityGML content is skipped unless a matching ADE extension has been loaded. [13:17:41 INFO] Writing output to file /mnt/c/Users/BLOMMEP/Downloads/citygml-tools-2.0.0/../Mandel_20220701.json. [13:17:41 DEBUG] Reading city objects and converting them into CityJSON 1.1. [13:17:44 INFO] Total execution time: 07 s. [13:17:44 INFO] citygml-tools finished with 1 warning(s).

clausnagel commented 1 year ago

citygml-tools does not handle CityGML ADEs in a generic way. It needs a Java software module that adds support for reading and writing the ADE data. Since citygml-tools is built on top of citygml4j, this module must be implemented against the ADE API of citygml4j. Currently, there is no such module for the EnergyADE freely available for the latest version of citygml4j.

Independent of this, it seems you want to map the EnergyADE content to a CityJSON representation?! As far as I know there is no CityJSON extension defined for the EnergyADE. So, even if there was an EnergyADE module for citygml-tools, how should the tool know how to map EnergyADE content to CityJSON?

PieterBlomme commented 1 year ago

Thanks for the info, in that case the warning is just about unclear I guess.

clausnagel commented 1 year ago

I'm happy to improve it if you have a good suggestion.