Skip to content

Commit e54244f

Browse files
committed
v0.4.9 (with support for extracting polygons from OSM)
1 parent 7692de5 commit e54244f

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

README.md

+12-15
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
# Interline PlanetUtils
66

7-
<!-- the following is generated by:
8-
1. npm install --save markdown-toc -g
9-
2. markdown-toc -i README.md
10-
-->
7+
<!-- the following is generated by: npx markdown-toc -i README.md -->
118

129
<!-- toc -->
1310

@@ -25,9 +22,9 @@
2522
* [elevation_tile_merge](#elevation_tile_merge)
2623
* [valhalla_tilepack_list](#valhalla_tilepack_list)
2724
* [valhalla_tilepack_download](#valhalla_tilepack_download)
28-
- [Specifying bounding boxes](#specifying-bounding-boxes)
25+
- [Specifying extract extents](#specifying-extract-extents)
2926
* [Bounding box file: CSV format](#bounding-box-file-csv-format)
30-
* [Bounding box file: GeoJSON format](#bounding-box-file-geojson-format)
27+
* [Bounding box/polygon file: GeoJSON format](#bounding-boxpolygon-file-geojson-format)
3128
- [Switching toolchains](#switching-toolchains)
3229
- [Support](#support)
3330

@@ -59,15 +56,15 @@ PlanetUtils is a "high level" library that makes use of [Osmosis](https://wiki.o
5956
Make sure you have [Docker](https://www.docker.com/community-edition) installed. Then:
6057

6158
```sh
62-
docker pull interline/planetutils:release-v0.4.8
59+
docker pull interline/planetutils:release-v0.4.9
6360
```
6461

6562
Any of the example commands below can be executed with `docker run`. It may be helpful to mount a local directory inside the container for persistence and to access output files.
6663

6764
- Example of using `docker run` with the `data` directory mounted as `/data`:
6865

6966
```sh
70-
docker run --rm -v ${PWD}/data:/data -t interline/planetutils:release-v0.4.8 <command>
67+
docker run --rm -v ${PWD}/data:/data -t interline/planetutils:release-v0.4.9 <command>
7168
```
7269

7370
### Using Homebrew on Mac OS
@@ -124,15 +121,15 @@ osm_planet_update -h
124121

125122
### osm_planet_extract
126123

127-
Cut up an OSM planet file into one or more extracts, defined by bounding boxes. Each bounding box is assigned a name. (This is like a mini version of Mapzen Metro Extracts!)
124+
Cut up an OSM planet file into one or more extracts, defined by bounding boxes or polygons. Each extract is assigned a name. (This is like a mini version of Mapzen Metro Extracts!)
128125

129126
To create a single extract:
130127

131128
```sh
132129
osm_planet_extract --outpath=data/osm_extracts --bbox=-122.737,37.449,-122.011,37.955 --name=san-francisco planet-latest.osm.pbf
133130
```
134131

135-
To specify more than one bounding box of tiles to download, list the bounding boxes in a [CSV file or GeoJSON file](#bounding-box). For example:
132+
To specify more than one bounding box of tiles to download, list the extents in a [CSV file or GeoJSON file](#bounding-box). For example:
136133

137134
```sh
138135
osm_planet_extract --outpath=data/osm_extracts --csv=data/bboxes.csv planet-latest.osm.pbf
@@ -268,10 +265,10 @@ For complete help on command-line arguments:
268265
valhalla_tilepack_download -h
269266
```
270267

271-
## Specifying bounding boxes
268+
## Specifying extract extents
272269
<a name="bounding-box"></a>
273270

274-
When extracting multiple bounding boxes from an OSM planet, or when downloading multiple bounding boxes of elevation tiles, you can specify your bounding boxes in a single file, either CSV or GeoJSON format.
271+
When extracting multiple bounding boxes or polygons from an OSM planet, or when downloading multiple bounding boxes of elevation tiles, you can specify your extents in a single file, either CSV or GeoJSON format.
275272

276273
### Bounding box file: CSV format
277274

@@ -289,15 +286,15 @@ dar-es-salaam,38.894,-7.120,39.661,-6.502
289286

290287
To determine a bounding box, try the tool at http://bboxfinder.com/
291288

292-
### Bounding box file: GeoJSON format
289+
### Bounding box/polygon file: GeoJSON format
293290

294-
Alternatively, you can specify the bounding boxes as features in a GeoJSON file, using the `--geojson` argument.
291+
Alternatively, you can specify the bounding boxes or polygons as features in a GeoJSON file, using the `--geojson` argument.
295292

296293
```sh
297294
osm_planet_extract --geojson=examples/test.geojson examples/san-francisco-downtown.osm.pbf
298295
```
299296

300-
To draw bounding box polygons in GeoJSON, try the tool at http://geojson.io/. Currently, the bounding box for each feature is used. Future releases may support polygon clipping.
297+
To draw extents in GeoJSON, try the tool at http://geojson.io/
301298

302299
## Switching toolchains
303300

0 commit comments

Comments
 (0)