Skip to content

Instantly share code, notes, and snippets.

@do-me
Created April 10, 2024 14:15
Show Gist options
  • Select an option

  • Save do-me/650ab7983e62ff84f94392f7b6459bf7 to your computer and use it in GitHub Desktop.

Select an option

Save do-me/650ab7983e62ff84f94392f7b6459bf7 to your computer and use it in GitHub Desktop.
tippecanoe convert geojson to pbf vector tiles
  • gdf.to_json("temp.json")
  • tippecanoe --no-feature-limit --no-tile-size-limit --no-tile-compression -s EPSG:4326 --output-to-directory tilesDirectory --force temp.json as tippecanoe unfortunately does not support geoparquet yet
  • then host the tiles with npx http-server --cors (note that --cors is not needed for QGIS but for static sites like Leaflet or similar running on localhost)
  •  use http://localhost:8080/tilesDirectory/{z}/{x}/{y}.pbf in a map framework of your choice

Works like a charm for me. (From: geopandas/geopandas#2295 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment