Discover Packages
github.com/twpayne/osm-extract
command
module
Version:
v0.0.0-...-44bdcc3
Opens a new window with list of versions in this module.
Published: Dec 27, 2024
License: MIT
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
osm-extract extracts features from
OpenStreetMap PBF
files as
GeoJSON .
Features
Reads .osm.pbf files from local disk, no need to run an Overpass API
server .
Preserves OpenStreetMap tags as GeoJSON properties.
Extremely fast, thanks to
github.com/paulmach/osm .
Optionally polygonizes ways and relations, thanks to GEOS .
Optionally unions all features into a single feature.
Install
$ go install github.com/twpayne/osm-extract@latest
Example
Extract the administrative boundaries of the Isle of Man as a polygon:
$ osm-extract -i testdata/isle-of-man-latest.osm.pbf -type=relation -tags=ISO3166-1=IM,admin_level=2 -polygonize
$ osm-extract -i testdata/isle-of-man-latest.osm.pbf -type=relation -tags=admin_level=6 -polygonize -union
License
MIT
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.