Skip to content
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

climbingTiles: custom geojson tiles from DB 🎉 #906

Merged
merged 47 commits into from
Feb 3, 2025
Merged

Conversation

zbycz
Copy link
Owner

@zbycz zbycz commented Jan 28, 2025

// .env:
NEXT_PUBLIC_ENABLE_CLIMBING_TILES=true

// for local development of tiling
NEXT_PUBLIC_CLIMBING_TILES_LOCAL=true
XATA_PASSWORD=...

In exploration 3 we learned, that for our usecase (point)s gzipped GeoJSON is more effective than MVT tiles. Also with MVT we would have to generate tiles for every zoom level, because it encodes coordinates precision by the zoom level by-design. (MVT stores coordinates in meters relative the current tile bounds, trimmed by zoom level)

This exploration implements custom tile fetching of GeoJSON tiles. With maximum tile of zoom 12. We know that there is some treshold below which the size of tile is small enough.

All explorations here:

29.1.2025:
Fetching data from Overpass...
Overpass elements: 172826
Records: 23396
SQL Query length: 8243397 chars
Done.
Duration: 71964 ms
image image image

https://app.xata.io/workspaces/osmapp-tvgiad/dbs/osmapp_db:us-east-1/branches/main/tables/climbing_features

Copy link

vercel bot commented Jan 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Feb 3, 2025 2:14pm

@zbycz zbycz changed the title climbingTiles: custom geojson tiles from postgres climbingTiles: custom geojson tiles from DB 🎉 Feb 3, 2025
@zbycz zbycz enabled auto-merge (squash) February 3, 2025 14:14
@zbycz zbycz merged commit 148e8ea into master Feb 3, 2025
2 checks passed
@zbycz zbycz deleted the climbing-tiles-4 branch February 3, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant