Comments (7)
Do you intend to use the CLI of the Importer/Exporter and call it as external process from your Spring app? Or do you want to directly use the classes of the Importer/Exporter in your code?
from importer-exporter.
I want to use it in a Java class. But if it is not possible, the CLI is fine. I want to change the data after loading Citygml and insert it into 3dcityDB.
from importer-exporter.
I am trying to use citygml4j 2.6.1. I added the dependency to pom.xml and then executed the SimpleReader.java code. However, an error occurs when creating CityGMLBuilder. Error message is javax.xml.bind.JAXBException: "net.opengis.citygml._2" does not contain ObjectFactory.class or jaxb.index. What's the problem?
from importer-exporter.
Maybe this helps: citygml4j/citygml4j#13
I have not forgotten your original question, and will get back soon
from importer-exporter.
Thank you. I will wait for your answer.
from importer-exporter.
Apologies for leaving this unanswered for such a long time. Were you able to solve the javax.xml.bind.JAXBException
from citygml4j using another ClassLoader
?
Well, if you want to directly use the classes of the Importer/Exporter in your Spring project (instead of starting the Importer/Exporter from you program as external process using its command-line interface), then for version 3.x of the software my recommendation is to install the Importer/Exporter locally and afterwards to put all JARs from the lib
folder within the installation directory onto your classpath.
We just released version 4.0 of the Importer/Exporter. With this release, we split the source code into modules which are now available as Maven artifacts from Bintray. So now you can include the modules you need using your pom.xml
.
For example, for importing and exporting CityGML datasets, you need the impexp-core
module:
<dependency>
<groupId>org.citydb</groupId>
<artifactId>impexp-core</artifactId>
<version>4.0.0</version>
<type>pom</type>
</dependency>
This will also import all dependent JARs. The only exceptions are the Oracle JARs due to Oracle license restrictions - so you still have to copy them manually if you need them (or use the Oracle Maven repo instead).
So the JARs part is quite easy now. But we currently do not have a documentation on how to use the Importer/Exporter classes (you would have to inspect the source code for this). The software was originally not designed to be used as a library (intended uses are via its GUI or CLI).
But this is something we want to change. Publishing the code as Maven artifact was just the first step. We now start working on simplifying the use of the classes, so that you could import/export a CityGML dataset with a few lines of code. But well, this work just starts now.
Hope this helps anyway...
from importer-exporter.
Closing this issue. Feel free to re-open.
from importer-exporter.
Related Issues (20)
- URL and cityobjectsJsonUrl for the JSON files HOT 5
- Date error when exporting HOT 2
- importer for surfaces with inner rings creates invalid POLYHEDRALSURFACE HOT 2
- Installation issue on mac HOT 2
- NoClassDefFoundError: org/citydb/gui/plugin/view/ViewExtension when running the Importer/Exporter CLI HOT 4
- 3DCityDB-Importer-Exporter-4.3.0-Setup.jar does not install core, only plugins HOT 6
- Problem with citygml file validation HOT 3
- When using the CLI import options, can I specify that it should update? HOT 1
- Properly calculate the area/volume of a building/city object HOT 2
- Can't export to tiled CityGML files HOT 8
- 3d CityDatabase HOT 12
- Thank you! @clausnagel
- Bug in About link
- Importer/Exporter 5.4.2: ADE manager tab gone? HOT 3
- ERROR: geometry requires more points HOT 2
- GLTF Export -> All Buldings in one gltf file? HOT 1
- CityJSON 2.0 support HOT 2
- 3DCityDB Import Fails: A fatal error occurred during import. HOT 2
- Problems with ADE Manager and ADE with association class
- Suggestions to improve ADE manager log messages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from importer-exporter.