Git Product home page Git Product logo

Comments (7)

pka avatar pka commented on May 12, 2024 1

buffer_size is the additional pixel border around a tile. When clipping a polygon this buffer hides the clipped polygon outline.

tileschema

Maybe you've filled the cache with the other configuration?

from t-rex.

pka avatar pka commented on May 12, 2024

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.

skinkie avatar skinkie commented on May 12, 2024

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.

pka avatar pka commented on May 12, 2024

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?

grafik

from t-rex.

skinkie avatar skinkie commented on May 12, 2024

http://stefan.konink.de/trex.toml
http://stefan.konink.de/everything.sql.gz

from t-rex.

pka avatar pka commented on May 12, 2024

Looks better here:

grafik

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.

skinkie avatar skinkie commented on May 12, 2024

I do have an other configuration which has buffer_size = 0, what should that be?

from t-rex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.