tilebelt | simple tile utilities | Map library
kandi X-RAY | tilebelt Summary
kandi X-RAY | tilebelt Summary
simple tile utilities
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tilebelt
tilebelt Key Features
tilebelt Examples and Code Snippets
Community Discussions
Trending Discussions on tilebelt
QUESTION
We are trying to incorporate vector tile endpoints into a back-end framework using mapbox-vector-tile-java to encode geographic features into Vector Tiles. We have it all mostly working except for some odd behavior where the rendered features are placed at latitudes way higher than they should be. When zooming in the features will jump to lower latitudes until finally getting to pretty good accuracy at really low zoom levels. For example, my data is of New Mexico counties. On initial page load the counties all render in Canada. When I zoom in to zoom level 2 they will jump down to Southern Canada. The more I zoom in the more close they get to where New Mexico actually is. Does anyone know why I'm seeing this behavior?
Some high level details:- Geographic features from the database are in EPSG:4326.
- JTS is used in conjunction with mapbox-vector-tile-java to handle encoding of data.
- Converting URL based xyz tile positions to tile bounds uses the exact equation that Mapbox uses for such conversions as referenced in MapBox's TileBelt.
https://localhost:8443/app/location/data?x=0&y=0&z=0&config={some:json}
Back-end Java code building the Vector Tiles ...ANSWER
Answered 2017-Feb-14 at 05:25Of course this turned out to be an obvious solution that somehow we didn't catch earlier. We just needed to project the JTS features to EPSG 3857 before encoding the Vector Tiles.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tilebelt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page