tegola | Tegola is a Mapbox Vector Tile server written in Go | Map library
kandi X-RAY | tegola Summary
kandi X-RAY | tegola Summary
Tegola is a vector tile server delivering Mapbox Vector Tiles with support for PostGIS and GeoPackage data providers. User documentation can be found at tegola.io.
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 tegola
tegola Key Features
tegola Examples and Code Snippets
Community Discussions
Trending Discussions on tegola
QUESTION
I am trying to understand some of the vector tile logic and implementation on openlayers (6.3.1). I have 2 layers that simply don't overlay, resulting on the screenshoot below. I have looked into multiple example but they just increase my technical doubts, and confusion here is the system:
- Vector tile server
Tegola server (gospatial/tegola:v0.10.4
) , using default options (tiles at 256
pixel? size source data srid=4326
and SQL SQL:FROM XXX.XXX WHERE geom && !BBOX!
)
Server layer description is here: http://tiles.isric.org/capabilities/wosis.json
- WMS service
WMS service: http://maps.isric.org/mapserv?map=/map/soc.map
- Running example
Full code example in jsfiddle: https://jsfiddle.net/jorgejesus/vt6qndrw/1/
- Code parts:
So for the tegola server I have something like this:
...ANSWER
Answered 2020-Jun-04 at 14:08Your vector tile source is EPSG:3857 and vector tiles cannot be reprojected. You will need to display both layers in EPSG:3857 (or find an alternative EPSG:4326 source for the vector tile data)
QUESTION
I am querying raw vector tiles from zoom level 8 from tiles created to zoom level 11. I then convert the point features in these tiles to geojson. The converted feature geometries do not match the tile geometry at zoom level 11, or tiles from zoom level 11 converted to geojson. I have created the tiles with two different programs (tegola and geojson-vt). I am converting the tiles with vt2geojson. I am trying to determine at what stage in the conversion process the geometry is being manipulated - tile creation, tile conversion back to geojson, or in mapbox gl js. As far as I can tell the coordinates are not being trimmed in the creation or conversion process, but am not 100% positive on that. I get the reason for the simplification of lines and polygons at lower zoom levels, but I do not see any reason to manipulate point geometry.
As can be seen in the image, the points start to drift apart after the max zoom level of the original tiles. One workaround is to simply filter the vector tiles to only show the features in the resulting geojson features as the properties are still intact or store the coordinates in the properties, but this is not ideal.
Bottom line - if I want to view points as close to the original data as possible, what max tile zoom level should I use (i.e., 11, 12, 13, 14), and at what stage does the geometry get manipulated?
...ANSWER
Answered 2020-Apr-27 at 10:17It's a bit hard to tell what your exact question is, but if I'm understanding correctly it is essentially: "Why do I lose spatial accuracy when I overzoom my vector tiles" and the answer is "because you're overzooming them". It's inherent in the way they work.
Your original data probably had 10 significant figures of precision. Each offset for a point in a vector tile is usually encoded as an integer between 1 and 4096.
Your options are basically:
- increase the spatial accuracy of the generated tiles (eg, tippecanoe's
-d
flag) - generate tiles to a higher zoom level
- don't overzoom them so much
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tegola
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