halestudio / hale-cli

hale command line interface
GNU Lesser General Public License v3.0
1 stars 6 forks source link

Error during transformation of shapefile to XPlanGML #72

Closed julianzz98 closed 3 years ago

julianzz98 commented 3 years ago

Dear all, for my bachelor thesis I am trying to automate the transformation of geodata from zoning plans (i.e. shapefile) to XPlanGML. The transformation with the CLI generets an empty XPlanGML an the error given out is this one:

ERROR e.e.h.c.c.r.i.DefaultReporter(1263) - Configured container element not found
java.lang.IllegalStateException: Configured container element not found
        at eu.esdihumboldt.hale.io.gml.writer.internal.StreamGmlWriter.write(StreamGmlWriter.java:1105) [eu.esdihumboldt.hale.io.gml-4.0.0.jar:na]
        at eu.esdihumboldt.hale.io.gml.writer.internal.StreamGmlWriter.write(StreamGmlWriter.java:1054) [eu.esdihumboldt.hale.io.gml-4.0.0.jar:na]
        at eu.esdihumboldt.hale.io.gml.writer.internal.StreamGmlWriter.execute(StreamGmlWriter.java:365) [eu.esdihumboldt.hale.io.gml-4.0.0.jar:na]
        at eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider.execute(AbstractIOProvider.java:107) [eu.esdihumboldt.hale.common.core-4.0.0.jar:na]
        at eu.esdihumboldt.hale.common.headless.transform.ExportJob.run(ExportJob.java:87) [eu.esdihumboldt.hale.common.headless-4.0.0.jar:na]
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) [org.eclipse.core.jobs-3.10.700.v20200106-1020.jar:na]

If anyone can help me at this point, feel free to comment.

Greetings, Julian Zilz

florianesser commented 3 years ago

Hi @julianzz98,

Thanks for reaching out! From that error message alone I unfortunately can't tell what the exact problem is. Can you also share the complete command line call (e.g. /opt/hale/bin/hale -project example.halex -source [...]) that leads to this error?

julianzz98 commented 3 years ago

Thanks for the quick answer @florianesser,

the complete command line call is:

-project C:\Users\Julian\Documents\BA_Hale\AutoBA.halez -source D:\Dateien-Arbeit-Dokumente\lk_emsland_beispieldaten_xplan_bplan\Neuer_Grund\Neuer_Grund.shp -target xplan.gml -providerId eu.esdihumboldt.hale.io.gml.xplan.writer -Sxml.rootElement.name XPlanAuszug -Sxml.rootElement.namespace http://www.xplanung.de/xplangml/5/3 -Sxml.pretty true -reportsOut report.txt

Added the generated report as well, maybe you can find a lead in here. report.txt

florianesser commented 3 years ago

Thanks for the additional info! From the report file it appears that the project is loading the schema file XPlanGML_BPlan.xsd as the target schema. Consider using XPlanung-Operationen.xsd as the target schema instead, as XPlanGML_BPlan.xsd does not define the element XPlanAuszug you're trying to write.

I'd also like to point you to our forum which is our preferred channel for questions regarding hale studio usability, INSPIRE and XPlanung.

julianzz98 commented 3 years ago

Thank you a lot for the answer! I will change the target schema to XPlanung-Operationen.xsd or use the XPlanungGML.xsd, which is referencing all schemas to be sure. Going to take a lot into the forum and ask further questions there, thanks again :)