poly parser
Poly file parser function.
¶
Parse poly file from URL to geometry.
PARAMETER | DESCRIPTION |
---|---|
polygon_url |
URL to load a poly file.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Optional[MultiPolygon]
|
Optional[MultiPolygon]: Parsed polygon. Empty if request returns 404 not found. |
Source code in quackosm/osm_extracts/_poly_parser.py
¶
Parse an Osmosis polygon filter file.
Accept a sequence of lines from a polygon file, return a shapely.geometry.MultiPolygon object. Based on: https://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Python_Parsing
http://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format