Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvexel/osmpoly
Polygons for OSM extracts
https://github.com/mvexel/osmpoly
Last synced: 24 days ago
JSON representation
Polygons for OSM extracts
- Host: GitHub
- URL: https://github.com/mvexel/osmpoly
- Owner: mvexel
- Created: 2013-07-25T22:37:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-07-25T22:41:37.000Z (over 11 years ago)
- Last Synced: 2024-10-21T23:08:27.654Z (2 months ago)
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
osmpoly
=======Polygons for OSM extracts
Based on the TIGER 2012 State Boundary shapefile.
Load shapefile into a PostGIS database:
shp2pgsql -s 4326 -I -W LATIN1 tl_2012_us_state.shp states12 > tl_2012_us_state.sql
psql -U osm -d tiger -f tl_2012_us_state.sqlExtract the buffered dissolved polygon:
pgsql2shp -f /osm/us_buf01.poly -u osm -P osm tiger "SELECT sum(aland), ST_Simplify(ST_Buffer(ST_Union(geom),0.1),0.1) from states12;"
Load into JOSM and save as POLY
That's the POLY file in this repo.