osmosis-nls-dem is an @Osmosis plugin for adding height information to OSM nodes based on open digital elevation model (DEM) data from National Land Survey (NLS) of Finland.
The plugin requires The Java Advanced Imaging API (JAI) and Image I/O to work with .tiff
-files. The installation instructions can be seen here or [here](JAI install guide).
To build osmosis-nls-dem
from source, run:
git clone https://github.com/jsimomaa/osmosis-nls-dem.git
cd osmosis-nls-dem
mvn install
You can find the built JAR from osmosis-nls-dem/target/osmosis-nls-dem-${version}.jar
To install the plugin into Osmosis just copy the JAR in ~/.openstreetmap/osmosis/plugins/
and you are ready to go.
You can reference the plugin in your workflow with the nls-dem
alias.
osmosis --read-pbf finland-latest.osm.pbf --nls-dem apiKey=<api_key> --write-xml output.xml
Option | Description | Valid values | Default value |
---|---|---|---|
apiKey | NLS API key for file service. Get from here. | ||
prjFile | Path to a .prj -file with WKT containing EPSG:3067. |
Path to existing file | EPSG3067.prj |
tiffStorage | Path for storing the tiff -files downloaded from NLS API |
Path to existing file | java.io.tmpdir |
heightTags | Tags to interpret as existing height tags for OSM nodes | Tags separate by comma (, ) |
"" |
override | Should existing height tags be overriden with the data collected from corresponding tiff -file. |
true, false | true |
See LICENSE