Add mitigation for huge pmtiles files
This commit is contained in:
parent
5a954df12a
commit
fa12c0933b
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -42,4 +42,20 @@ to be displayed on the map can be deposited in any format understood
|
|||
by [ogrmerge](https://gdal.org/programs/ogrmerge.html), for instance,
|
||||
GeoJSON or gpx.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### My pmtiles file is huge (hundreds of megabytes)
|
||||
|
||||
This may be caused due to metadata from the input geojson files being
|
||||
carried over into the tiles, leading to that metadata getting copied
|
||||
into every tile that has that feature, brouter is known to sometimes
|
||||
add unreasonable amounts of metadata to its exports. The metadata can
|
||||
be stripped by running
|
||||
|
||||
```
|
||||
jq 'del( .features[] .properties )'
|
||||
```
|
||||
|
||||
on the input file with excessive metadata.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue