BROprogramma / CPT_GEF_CONVERTER

Other
0 stars 2 forks source link

BRO Conepenetrationtest Converter

License

Contributing

This project will not be released and neither be pushed (as Maven artefact) to a SonaType (Nexus) repository (unless there's a specific demand for this). It will remain in a version < 1.0.

However, if you do want to contribute, this project follows the Fork & Pull development approach. To get started just fork this repository to your GitHub account and create a new topic branch for each change. Please start commits with the GitHub issue number #<nr>. Once you are done with your change, submit a pull request against the CPT_GEF_CONVERTER repo.

Documentation

Mapping documentation comes in 2 documents on this site:

Requirements

Code explanation

Building the source code

The source code can be built by the maven clean install command on a Linux / Unix shell or in a Windows command window.

Generation of the XML parser

The gef-jaxb sub module contains the XSD files locally (good practice). A catalog file is (src/main/resources/META-INF/catalog.xml) used to 'connect' the (public) URL of the schema locations to the local files. The binding file (src/main/resources/META-INF/binding.xjb) determines how the xsd (src/main/resources/schema) is mapped to the generated java classes. 2 classes are put into place manually to cope with observations OGC observation and measurements. Finally, the maven-jaxb2-plugin takes care of generating the java classes.

Implementation of the mapper

The implementation consists of several packages:

Stand alone version

The stand-alone version of the GEF reader just builds a small wrapper around the gef_impl classes. It creates a so called 'fat' jar file that contains all the dependencies. Apache's commons-cli is used to implement a self explaining command line interface.

Just run the stand-alone with: java -jar convertgef.jar -h from the commandline.

Links