Skip to content

Instantly share code, notes, and snippets.

View MarkCupitt's full-sized avatar

Mark Cupitt MarkCupitt

View GitHub Profile
#!/usr/bin/env python
# Update: A newer version can be found in the OSM SVN:
# http://trac.openstreetmap.org/browser/applications/utils/osm-extract/polygons/ogr2poly.py
# This converts OGR supported files (Shapefile, GPX, etc.) to the polygon
# filter file format [1] supported by Osmosis and other tools. It also
# includes buffering and simplifying. This allows point or line features
# to be used when creating POLY files, but in this case buffering must
# be used.