Skip to content

basemaps layers water, rio-pmtiles docs #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion basemaps/layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ This layer is currently empty.

<MaplibreMap highlightLayer="water" :zoom=6 :showZoom="true" :lat="-1.3" :lng="-49"/>

Polygons from the Natural Earth 50m `lakes` and `ocean` themes for z0-z4, 10m for z5, preprocessed land polygons from [OSMCoastline](https://osmdata.openstreetmap.de) for z6+.
* Polygons, lines and point labels from OpenStreetMap.

* Polygons from the Natural Earth 50m `lakes` and `ocean` themes for z0-z4, 10m for z5, preprocessed land polygons from [OSMCoastline](https://osmdata.openstreetmap.de) for z6+.

| Key | Values | Description |
| -------------- | :---------------------------------------------------------------------------------------------: | ----------: |
Expand Down
13 changes: 11 additions & 2 deletions pmtiles/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,19 @@ gdal_translate -expand rgb input.tif input_rgb.tif

pip install rio-pmtiles

# in this example create 512x512 PNG tiles from zooms 0 to 16.
rio pmtiles input_rgb.tif output.pmtiles --format PNG --zoom-levels 0..16 --tile-size 512 --resampling bilinear
rio pmtiles input_rgb.tif output.pmtiles --format PNG --resampling bilinear
```

Options:

* `--format`: One of `PNG` (lossless), `JPEG`, `WEBP`. `JPEG` is fastest to generate. Default `WEBP`.
* `--tile-size`: the dimensions in pixels. 512 is recommended for displaying in MapLibre GL. default `512`.
* `--resampling`: Choose `nearest` for discrete data. Default `bilinear`.
* `--silent`: Don't show a progress bar.
* `--zoom-levels`: Specify a range `10..12` to only generate those zoom levels. By default, generates all levels between 0 and the level to capture the full detail of the input.
* `--help`: Show other advanced options and GDAL flags.


## GDAL

GDAL has native support for PMTiles starting with version 3.8.0 (2023-11-13), see [gdal.org/drivers/vector/pmtiles](https://gdal.org/drivers/vector/pmtiles.html) for details.
Expand Down