-
Notifications
You must be signed in to change notification settings - Fork 3
O2I
Thomas Schwotzer edited this page Oct 5, 2020
·
5 revisions
java -classpath <your-jdbc-driver.jar> -jar OHDMConverter.jar -o yourFile.osm -i intermediate_parameter
This is the first step to integrate and process data with OHDM. This process is performed by the OHDMConverter using parameters -o und -i.
The process is straightforward:
- An XML-SAX parser parses the osm file
- A node table row is created for each node entry in osm file.
- A way table row is created for each way entry in osm file. Additional waynode rows are added accordingly.
- A relation table entry is created for each relation entry in osm file. Additional relationmember rows are added accordingly.
This first step is mostly a conversion from XML to SQL tables. The only calculation is required to find the classid from OHDM classification table based on the described map features in the osm entry tags.
A little movie shows the process with example data.