3dcitydb / extension-test-ade

Apache License 2.0
1 stars 0 forks source link

TestADE extension do not export geometry #2

Closed matteomandrile closed 1 month ago

matteomandrile commented 4 years ago

Hello, I am following the ADE Manager Plugin Documentation to extend my 3dcitydb. I was successful in the registration and transformation of the testADEas per image below

inspecting the DB with pgAdmin confirm also that the operation was successful:

I was also able to extend the Import/Export Tool and import the 2 sample datsets

However, when I export the sample dataset and inspect it with both FME data inspector and FZKViewer I don't see any geometry or content

in FME I get the following warning:

Parsing XML document 'C:\Users\MatteoMandrile\Desktop\ade test.gml'

- registered 1 messages of type: XML element 'test:IndustrialBuilding' and its content might be skipped - 'http://www.citygml.org/ade/TestADE/1.0' namespace is not recognized in XML doc 'C:\Users\MatteoMandrile\Desktop\ade test.gml' - registered 580 messages of type: XML element 'test:OtherConstruction' and its content might be skipped - 'http://www.citygml.org/ade/TestADE/1.0' namespace is not recognized in XML doc 'C:\Users\MatteoMandrile\Desktop\ade test.gml'

Can you help me with this?

yaozhihang commented 4 years ago

OK, I can reproduce this problem. The cause is that the schema location of the TestADE is missing in the exported CityGML document. That's why the FME cannot parse and read the CityGML file.

A quick fix is to manually add the ADE schema location information to xsi:schemaLocation in the CityGML file. The ADE XML Schema can be found here https://github.com/3dcitydb/extension-test-ade/tree/master/resources/schema

Here is an example. tesade_examplet.zip

ufalakbar commented 3 years ago

I following 3dcitydb ADE Manager from importer/exporter v.4.2.0. but when I register my ADE there is a warning like this:

The following CityGML ADEs are registered in the database but are not supported: RBI3DADE 1.0

I think the problem is in the jar file in the lib folder. when I use the compiled jar of your ADE extension namely test-ade-citydb-1.2.0.jar and test-ade-citygml4j-1.2.0.jar, it doesn't work. but when I use the jar downloaded from websites 3dcitydb.org, then ADE works. How can I use the jar that I build or compile by myself?