You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-18Lines changed: 41 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,20 @@ This repository hosts [PMTiles](https://docs.protomaps.com/pmtilesbr/) files for
13
13
14
14
[PMTiles](https://docs.protomaps.com/pmtilesbr/) is a format for storing and serving tiled geospatial data. It is designed to be efficient, scalable, and easy to use, making it ideal for web applications and data visualization.
15
15
16
-
We plan to move these files to a more permanent hosting solution in the future, but for now, they are available here for public use.
16
+
We plan to move these files to a more permanent hosting solution in the future.
17
+
18
+
## Why Use PMTiles?
19
+
20
+
When working with complex geometries in web mapping applications like [Mapbox](https://www.mapbox.com/), [MapLibre](https://maplibre.org/), and [Leaflet](https://leafletjs.com/), performance can become a real problem. Shapes with many vertices make rendering slow, bloat file sizes, and generally make life harder. PMTiles addresses this by letting you serve precompiled tiles directly from the web, rather than bundling them into your application.
17
21
18
22
## Usage
19
23
20
-
Tiles are available in the [`pmtiles`](pmtiles) directory and are hosted at [cem-usp.github.io/pmtilesbr](https://cem-usp.github.io/pmtilesbr/). For descriptions and metadata for each file, visit the project site: <https://cem-usp.github.io/pmtilesbr>
24
+
Tiles are available in the [`pmtiles`](pmtiles) directory and are hosted at [cem-usp.github.io/pmtilesbr](https://cem-usp.github.io/pmtilesbr/). For descriptions and metadata for each file, visit the project site.
21
25
22
26
To load a file, pass its URL to your application. For example, using [R](https://www.r-project.org/):
> Use [pmtilesbr.io](https://pmtilesbr.io/#url=https%3A%2F%2Fcem-usp.github.io%2Fpmtiles%2Fpmtiles%2Fgeobr-2020-brazil-min-zoom-2-max-zoom-10-simplified.pmtilesbr&map=3.42/-16.49/-48.41) to easily see and inspect each PMTiles file before using.
121
+
> Use [pmtilesbr.io](https://pmtiles.io/#url=https%3A%2F%2Fcem-usp.github.io%2Fpmtilesbr%2Fpmtiles%2Fgeobr-2024-read_municipality-simplified-min-zoom-2-max-zoom-10.pmtiles&map=3.87/-15.13/-51.42) to easily inspect each PMTiles file before using.
99
122
100
123
## Rendering
101
124
@@ -104,7 +127,7 @@ The files were processed using the [Quarto](https://quarto.org/) publishing syst
104
127
After installing the dependencies mentioned above, follow these steps to render the tiles:
105
128
106
129
1.**Clone** this repository to your local machine.
107
-
2.**Open** the project in your preferred IDE.
130
+
2.**Open** the project in your preferred [IDE](https://en.wikipedia.org/wiki/Integrated_development_environment).
108
131
3.**Install package dependencies** by running [`renv::restore()`](https://rstudio.github.io/renv/reference/restore.html) in the R console. This will install all required software dependencies.
109
132
4.**Open** the Quarto notebooks in the [`qmd`](qmd) directory and run the code as described .
Copy file name to clipboardExpand all lines: docs/search.json
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,28 @@
4
4
"href": "index.html",
5
5
"title": "PMTilesBR",
6
6
"section": "",
7
-
"text": "This website hosts PMTiles files for spatial visualization and analysis in Brazil.\nPMTiles is a format for storing and serving tiled geospatial data. It is designed to be efficient, scalable, and easy to use, making it ideal for web applications and data visualization.\nWe plan to move these files to a more permanent hosting solution in the future, but for now, they are available here for public use."
7
+
"text": "This website hosts PMTiles files for spatial visualization and analysis in Brazil.\nPMTiles is a format for storing and serving tiled geospatial data. It is designed to be efficient, scalable, and easy to use, making it ideal for web applications and data visualization.\nWe plan to move these files to a more permanent hosting solution in the future.\n\n\n\n\n\n\n\n\n\n\n\nThe map below shows Brazil municipality boundaries as PMTiles, sourced from the geobr R package (Pereira & Goncalves, n.d.).\n\n\n\n\n\n\n\n\n\nClick and drag to pan. Right-click and drag to rotate. Hover over a shape to see the municipality name. Use the controls to zoom, take a screenshot, or view in fullscreen."
8
+
},
9
+
{
10
+
"objectID": "index.html#overview",
11
+
"href": "index.html#overview",
12
+
"title": "PMTilesBR",
13
+
"section": "",
14
+
"text": "This website hosts PMTiles files for spatial visualization and analysis in Brazil.\nPMTiles is a format for storing and serving tiled geospatial data. It is designed to be efficient, scalable, and easy to use, making it ideal for web applications and data visualization.\nWe plan to move these files to a more permanent hosting solution in the future.\n\n\n\n\n\n\n\n\n\n\n\nThe map below shows Brazil municipality boundaries as PMTiles, sourced from the geobr R package (Pereira & Goncalves, n.d.).\n\n\n\n\n\n\n\n\n\nClick and drag to pan. Right-click and drag to rotate. Hover over a shape to see the municipality name. Use the controls to zoom, take a screenshot, or view in fullscreen."
15
+
},
16
+
{
17
+
"objectID": "index.html#why-use-pmtiles",
18
+
"href": "index.html#why-use-pmtiles",
19
+
"title": "PMTilesBR",
20
+
"section": "Why Use PMTiles?",
21
+
"text": "Why Use PMTiles?\nWhen working with complex geometries in web mapping applications like Mapbox, MapLibre, and Leaflet, performance can become a real problem. Shapes with many vertices make rendering slow, bloat file sizes, and generally make life harder. PMTiles addresses this by letting you serve precompiled tiles directly from the web, rather than bundling them into your application."
8
22
},
9
23
{
10
24
"objectID": "index.html#files",
11
25
"href": "index.html#files",
12
26
"title": "PMTilesBR",
13
27
"section": "Files",
14
-
"text": "Files\n\n\n\n\n\n\nSee the code repository README to learn more about how the files were created.\n\n\n\n\n\n\n\n\n\nUnless you really need to, use the simplified versions of the files, which are smaller and faster to load. The non-simplified versions are available for those who need the highest level of detail, but they may not be necessary for most applications.\n\n\n\n\n\ngeobr::read_country()\ngeobr::read_region()\ngeobr::read_state()\ngeobr::read_municipality()\ngeodata::world()\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2020\nLayer: \"read_country\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2020-read_country-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2020-read_country-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2020\nLayer: \"read_region\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2020-read_region-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2020-read_region-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2020\nLayer: \"read_state\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2020-read_state-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2020-read_state-simplified-min-zoom-2-max-zoom-10.pmtiles\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2024\nLayer: \"read_municipality\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2024-read_municipality-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2024-read_municipality-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\nSourced from the geodata R package (Hijmans, n.d.).\nParameters\n\nLayer: \"world\"\n\nResolution: 5\nVersion: \"latest\" (created in 2026)\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngadm-world-resolution-5-version-latest-2026-min-zoom-2-max-zoom-10.pmtiles\nView"
28
+
"text": "Files\n\n\n\n\n\n\nSee the code repository README to learn more about how the files were created.\n\n\n\n\n\n\n\n\n\nUnless you really need to, use the simplified versions of the files, which are smaller and faster to load. The non-simplified versions are available for those who need the highest level of detail, but they may not be necessary for most applications.\n\n\n\n\n\ngeobr::read_country()\ngeobr::read_region()\ngeobr::read_state()\ngeobr::read_municipality()\ngeodata::world()\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2020\nLayer: \"read_country\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2020-read_country-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2020-read_country-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\n\n\n\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2020\nLayer: \"read_region\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2020-read_region-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2020-read_region-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\n\n\n\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2020\nLayer: \"read_state\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2020-read_state-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2020-read_state-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\n\n\n\n\n\n\nSourced from the geobr R package (Pereira & Goncalves, n.d.).\nParameters\n\nYear: 2024\nLayer: \"read_municipality\"\n\nSimplified: TRUE/FALSE\n\nMinimum Zoom: 2\nMaximum Zoom: 10\nFiles\n\ngeobr-2024-read_municipality-min-zoom-2-max-zoom-10.pmtiles\ngeobr-2024-read_municipality-simplified-min-zoom-2-max-zoom-10.pmtiles\nView\n\n\n\n\n\n\n\n\n\nSourced from the geodata R package (Hijmans, n.d.).\nParameters\n\nLayer: \"world\"\n\nResolution: 5\nVersion: \"latest\" (created in 2026)\nMinimum Zoom: 0\nMaximum Zoom: 6/10\nFiles\n\ngadm-world-resolution-5-version-latest-2026-min-zoom-0-max-zoom-6.pmtiles\ngadm-world-resolution-5-version-latest-2026-min-zoom-0-max-zoom-10.pmtiles\nView"
0 commit comments