Skip to content

Commit

Permalink
Merge pull request #730 from andrewharvey/patch-4
Browse files Browse the repository at this point in the history
Update README.md to include ndjson-cli suggestion
  • Loading branch information
e-n-f authored Apr 8, 2019
2 parents 18b6473 + 0704ec9 commit 9d06af9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@ the filename or name specified using `--layer`, like this:
}
```

If your source GeoJSON only has `minzoom`, `maxzoom` and/or `layer` within `properties` you can use [ndjson-cli](https://github.com/mbostock/ndjson-cli/blob/master/README.md) to move them into the required `tippecanoe` object by piping the GeoJSON like this:

```sh
ndjson-map 'd.tippecanoe = { minzoom: d.properties.minzoom, maxzoom: d.properties.maxzoom, layer: d.properties.layer }, delete d.properties.minzoom, delete d.properties.maxzoom, delete d.properties.layer, d'
```

Geometric simplifications
-------------------------

Expand Down

0 comments on commit 9d06af9

Please sign in to comment.