Comments (7)
buffer_size
is the additional pixel border around a tile. When clipping a polygon this buffer hides the clipped polygon outline.
Maybe you've filled the cache with the other configuration?
from t-rex.
I remember seeing these tile borders before, but actually never investigated their cause. Can you give more information about your configuration? I think, I saw them with custom projections only.
from t-rex.
Hi @pka thanks for your fast feedback. I am basically evaluating multiple vector tile solutions, after tegola I tried t-rex (first couldn't get t-rex it to work, then was impressed by the webbased gui, and understood more). For tegola I created some materialized views with 3857 as projection. Which I resused in t-rex. My problems with tegola were basically rendering artifacts when zooming in Mapbox GL, which the Mapbox GL people referred as 'buffer-size' issues. My current problem with t-rex (next to the tiling borders) is that the generation is relatively slow, but when the browser is not in developer mode, the client doesn't fetch / or is extremely slow in fetching the pbf files.
Part of the configuration is:
[service.mvt]
viewer = true
[datasource]
type = "postgis"
url = "postgresql://openov:s k i p p e d@localhost/openov"
[grid]
# Predefined grids: web_mercator, wgs84
predefined = "web_mercator"
[[tileset]]
name = "zoning"
#extent = [-180.0,-90.0,180.0,90.0]
[[tileset.layer]]
name = "zones"
table_name = "zones"
geometry_field = "wkb_geometry"
geometry_type = "POLYGON"
srid = 3857
fid_field = "zone_id"
simplify = true
buffer_size = 10
query_limit = 100000
[[tileset.layer.query]]
sql = """SELECT "wkb_geometry","zonenr","zone_id","zonenaam","nulzones" FROM ovzones_3857 WHERE wkb_geometry && !bbox!"""
The data is open, so if you want to have a pg_dump and the complete config to reproduce, I am happy to provide it.
from t-rex.
Sorry, I needed a break, but now back working on t-rex.
I've imported test data from http://data.openov.nl/zones/ like this:
ogr2ogr -t_srs EPSG:3857 -unsetFieldWidth -nln ovzones_3857 -f PostgreSQL PG:dbname=natural_earth_vectors ovzones/ovzones01022016.shp
I also get some artifacts, but my result is quite different. Can you describe your import or send me a dump (pg_dump -Fc) and the full config?
from t-rex.
http://stefan.konink.de/trex.toml
http://stefan.konink.de/everything.sql.gz
from t-rex.
Looks better here:
Are you sure, that there isn't a polygon layer with buffer_size = 0
in your configuration? Because this would explain a border caused by polygon clipping.
from t-rex.
I do have an other configuration which has buffer_size = 0, what should that be?
from t-rex.
Related Issues (20)
- Unable to serve correct tiles with reprojection HOT 3
- genconfig doesn't quote column/table names HOT 3
- startup take too long time with many postgis tables HOT 1
- Pixel size for sampling tolerance in WGS84 HOT 1
- gpkg / gdal parallel performance less than sequential HOT 6
- How to configure t-rex to use a database function with PostGIS ST_AsMVT HOT 2
- corrupted polygons with clipping tile borders
- jammy packaging for 0.14x HOT 9
- --cache command line option ignored HOT 2
- Unable to generate tiles, tile extents appear to be wrong ... HOT 1
- t-rex vs other MVT servers? HOT 1
- gdal 3.5 support HOT 1
- Error in loading vector tiles with standalone mapbox gl js viewer HOT 1
- What default tile size is used by Trex? 256 or 512? HOT 1
- Polygon Shift: Custom Projection HOT 2
- cargo build error for GDAL HOT 6
- Parallel calls performance with geopackage as datasource HOT 1
- t-rex doesn't recognize the CRS/SRS HOT 1
- Debian packages for bookworm HOT 3
- Invalid MBTiles metadata.json HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t-rex.