https://github.com/simplexspatial/simplexspatial-loader-osm
Utility to load data from OSM files to Simplexspatial
https://github.com/simplexspatial/simplexspatial-loader-osm
Last synced: about 2 months ago
JSON representation
Utility to load data from OSM files to Simplexspatial
- Host: GitHub
- URL: https://github.com/simplexspatial/simplexspatial-loader-osm
- Owner: simplexspatial
- License: apache-2.0
- Created: 2020-03-13T12:28:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T10:22:41.000Z (about 6 years ago)
- Last Synced: 2025-01-15T23:28:23.568Z (over 1 year ago)
- Language: Scala
- Size: 556 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimplexSpatial OSM loader
Utility to load OSM networks into a [Simplexspatial server](https://github.com/simplexspatial/simplexspatial).
The tool will apply back-pressure to the flow, so the performance depends on the server. Memory usage is minimal.
```
osm file -> keep nodes and ways -> batch generation -> Sink into
```
## Packaging
The following command will generate a distributable packages into `target/universal`
```bash
sbt clean universal:packageZipTarball
```
It will generate a 50M tar `{source_root}/target/universal/simplexspatial-loader-osm-.tgz`
with all the necessary stuff to run the utility.
## Running
### Running thru sbt
To create a package with all necessary inside, execute the follow command:
```bash
sbt "loadOSM/runMain com.simplexportal.spatial.loadosm.Main --block-size=300 /home/angelcerveraclaudio/Downloads/osm/ireland-and-northern-ireland-latest.osm.pbf"
```
### Running thru CLI
Using the previous zip, uncompress it and from the folder where you
uncompressed:
```bash
bin/simplexspatial-loader-osm \
-java-home /usr/lib/jvm/java-8-openjdk-amd64 \
-jvm-debug 9009 \
-J-Xms64m \
-J-Xmx128m \
--block-size=300 \
/home/angelcc/Downloads/osm/ireland-and-northern-ireland-latest.osm.pbf
bin/simplexspatial-loader-osm \
-java-home /usr/lib/jvm/java-8-openjdk-amd64 \
-jvm-debug 9009 \
-J-Xms1G \
-J-Xmx4G \
--block-size=300 \
/home/angelcc/Downloads/osm/ireland-and-northern-ireland-latest.osm.pbf
```