source: subversion/applications/utils/osm-extract/polygons/README

Last change on this file was 4606, checked in by frsantos, 11 years ago

Spain polygon

File size: 2.0 KB
Line 
1Extracting subsets from planet.osm
2----------------------------------
3
4In this directory you will find a Perl script that allows you to extract
5a subset of the data from within the weekly planet.osm file.  Running the
6script is as simple as:
7
8        extract-polygon.pl [-v] -i planet.osm -o gb.osm -p gb.poly
9
10The options used in this example are -i to specify the input file (or you
11can use STDIN), -o to specify the ouput file (or you can use STDOUT), and
12-p to specify the polygon file.  The polygon file is the only required
13option.
14
15If you run the script with the -h option it will print a full list of the
16available options. The -v makes the script verbose and prints out a progress
17meter.
18
19
20Polygon files
21-------------
22
23Polygon files are ASCII text files containing a list of longitudes and
24latitudes.  A file can contain more than one polygon so you can extract a
25number of different areas with a single command.  An example of a polygon
26defining Great Britain and Ireland (and some of the smaller islands) is:
27
281
29        -0.6450E+01     0.4980E+02
30        -0.2000E+01     0.4890E+02
31        -0.1850E+01     0.4925E+02
32        -0.2080E+01     0.4973E+02
33         0.1350E+01     0.5090E+02
34         0.2250E+01     0.5258E+02
35        -0.0500E+01     0.6130E+02
36        -0.8920E+01     0.5785E+02
37        -0.1140E+02     0.5130E+02
38        -0.6450E+01     0.4980E+02
39END
40
41You can also exclude areas by polygon. You do this by prefixing the number
42that starts a polygon with a "!". Otherwise it is the same.
43
44Contributed polygon files
45-------------------------
46
47In this directory, along with the extract-polygon.pl script and this README
48file you will find polygon files contributed by the OSM community.  If you
49want to contribute a polygon either add it to this directory and update the
50list below, or email it to Keith Sharp <kms@passback.co.uk>.
51
52Available polygon files:
53
54gb-irl.poly : Great Britain, Ireland, and the Islands.
55at.poly     : Austria, <christof@dallermassl.at>
56spain.poly  : Spain and Canary and Balearic islands
57
Note: See TracBrowser for help on using the repository browser.