Skip to content

vizrt/OSMSplitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

OSMSplitter

Splits OSM PBF files into smaller files, using subregions. The user can provide max-filesize of output files, then the script will try to output folders containg files of the given size for the input pbf file. It's also possible to create shapefiles using this script, where the user can provide a list of desired output shapefile names, along with the sqlite queries necessary to extract the content from the PBFs.

Recommended requirements:
-Python 3.6+
-Docker (not necessary, but makes dependency management more convenient)

Download planet-latest.osm.pbf from https://planet.openstreetmap.org/ and place it in a new folder.
Navigate to the newly created folder and run
"docker run -it --mount src="$(pwd)",dst=/app/planet,type=bind -i -t vizrt/osmsplitter"
The output files should appear in the newly created folder.

for options run python .\countrymaker.py -h

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •