{"payload":{"allShortcutsEnabled":false,"path":"applications/utils/osm-extract/polygons","repo":{"id":511498073,"defaultBranch":"main","name":"svn-archive","ownerLogin":"openstreetmap","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-07-07T11:20:59.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/261431?v=4","public":true,"private":false,"isOrgOwned":true},"currentUser":null,"refInfo":{"name":"main","listCacheKey":"v0:1657837147.4115899","canEdit":false,"refType":"branch","currentOid":"dfa2acd1f6f48cdc4c12f366c0833e35a7e27bdc"},"tree":{"items":[{"name":"at","path":"applications/utils/osm-extract/polygons/at","contentType":"directory"},{"name":"germany","path":"applications/utils/osm-extract/polygons/germany","contentType":"directory"},{"name":"README","path":"applications/utils/osm-extract/polygons/README","contentType":"file"},{"name":"andorra.poly","path":"applications/utils/osm-extract/polygons/andorra.poly","contentType":"file"},{"name":"at.poly","path":"applications/utils/osm-extract/polygons/at.poly","contentType":"file"},{"name":"denmark.poly","path":"applications/utils/osm-extract/polygons/denmark.poly","contentType":"file"},{"name":"extract-polygon.pl","path":"applications/utils/osm-extract/polygons/extract-polygon.pl","contentType":"file"},{"name":"extract-polygon_0.4.pl","path":"applications/utils/osm-extract/polygons/extract-polygon_0.4.pl","contentType":"file"},{"name":"extract-polygon_0.5.pl","path":"applications/utils/osm-extract/polygons/extract-polygon_0.5.pl","contentType":"file"},{"name":"fast_complete_poly_filter.pl","path":"applications/utils/osm-extract/polygons/fast_complete_poly_filter.pl","contentType":"file"},{"name":"gb-irl.poly","path":"applications/utils/osm-extract/polygons/gb-irl.poly","contentType":"file"},{"name":"germany.poly","path":"applications/utils/osm-extract/polygons/germany.poly","contentType":"file"},{"name":"gpx2poly.pl","path":"applications/utils/osm-extract/polygons/gpx2poly.pl","contentType":"file"},{"name":"great_britain.poly","path":"applications/utils/osm-extract/polygons/great_britain.poly","contentType":"file"},{"name":"intersectpoly.cc","path":"applications/utils/osm-extract/polygons/intersectpoly.cc","contentType":"file"},{"name":"ireland.poly","path":"applications/utils/osm-extract/polygons/ireland.poly","contentType":"file"},{"name":"ogr2poly.py","path":"applications/utils/osm-extract/polygons/ogr2poly.py","contentType":"file"},{"name":"osm2poly.pl","path":"applications/utils/osm-extract/polygons/osm2poly.pl","contentType":"file"},{"name":"poly2bb.pl","path":"applications/utils/osm-extract/polygons/poly2bb.pl","contentType":"file"},{"name":"poly2osm.pl","path":"applications/utils/osm-extract/polygons/poly2osm.pl","contentType":"file"},{"name":"poly2wkt.pl","path":"applications/utils/osm-extract/polygons/poly2wkt.pl","contentType":"file"},{"name":"polybuffer.py","path":"applications/utils/osm-extract/polygons/polybuffer.py","contentType":"file"},{"name":"polyconvert.pl","path":"applications/utils/osm-extract/polygons/polyconvert.pl","contentType":"file"},{"name":"rel2poly.pl","path":"applications/utils/osm-extract/polygons/rel2poly.pl","contentType":"file"},{"name":"simplify-poly.pl","path":"applications/utils/osm-extract/polygons/simplify-poly.pl","contentType":"file"},{"name":"spain.poly","path":"applications/utils/osm-extract/polygons/spain.poly","contentType":"file"},{"name":"united_states_inc_ak_and_hi.poly","path":"applications/utils/osm-extract/polygons/united_states_inc_ak_and_hi.poly","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README","richText":"
Extracting subsets from planet.osm\n----------------------------------\n\nIn this directory you will find a Perl script that allows you to extract\na subset of the data from within the weekly planet.osm file. Running the\nscript is as simple as:\n\n\textract-polygon.pl [-v] -i planet.osm -o gb.osm -p gb.poly\n\nThe options used in this example are -i to specify the input file (or you\ncan use STDIN), -o to specify the ouput file (or you can use STDOUT), and\n-p to specify the polygon file. The polygon file is the only required \noption.\n\nIf you run the script with the -h option it will print a full list of the\navailable options. The -v makes the script verbose and prints out a progress\nmeter.\n\n\nPolygon files\n-------------\n\nPolygon files are ASCII text files containing a list of longitudes and \nlatitudes. A file can contain more than one polygon so you can extract a\nnumber of different areas with a single command. An example of a polygon \ndefining Great Britain and Ireland (and some of the smaller islands) is:\n\n1\n -0.6450E+01 0.4980E+02\n -0.2000E+01 0.4890E+02\n -0.1850E+01 0.4925E+02\n -0.2080E+01 0.4973E+02\n 0.1350E+01 0.5090E+02\n 0.2250E+01 0.5258E+02\n -0.0500E+01 0.6130E+02\n -0.8920E+01 0.5785E+02\n -0.1140E+02 0.5130E+02\n -0.6450E+01 0.4980E+02\nEND\n\nYou can also exclude areas by polygon. You do this by prefixing the number\nthat starts a polygon with a \"!\". Otherwise it is the same.\n\nContributed polygon files\n-------------------------\n\nIn this directory, along with the extract-polygon.pl script and this README\nfile you will find polygon files contributed by the OSM community. If you \nwant to contribute a polygon either add it to this directory and update the\nlist below, or email it to Keith Sharp <kms@passback.co.uk>.\n\nAvailable polygon files:\n\ngb-irl.poly : Great Britain, Ireland, and the Islands.\nat.poly : Austria, <christof@dallermassl.at>\nspain.poly : Spain and Canary and Balearic islands\n\n