public class Roads
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
highways
Highways types extracted from the osm file.
|
static org.apache.logging.log4j.Logger |
logger |
| Constructor and Description |
|---|
Roads() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Parses the input osm file, and write results as json nodes and ways
files.
|
public static org.apache.logging.log4j.Logger logger
public static final java.lang.String[] highways
public static void main(java.lang.String[] args)
throws javax.xml.bind.JAXBException,
java.io.IOException,
org.apache.commons.cli.ParseException
highways road types and associated nodes.args - osm_input_file nodes_output_file ways_output_file
The osm input file must be in the OSM XML format.
javax.xml.bind.JAXBException - if a case of a problem parsing the input osm filejava.io.IOException - is case of a problem reading or writing an input / output fileorg.apache.commons.cli.ParseException - in case of bad command line options