t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
556 stars 69 forks source link

Extra Lines (grid) are present for generated tiles #258

Closed dmitrykinakh closed 2 years ago

dmitrykinakh commented 3 years ago

The first screenshot is from the QGIS / Maputnik image image

Config from toml file

[[tileset]]
name = "property_records_county"
extent = [-198.808594,-16.499992,-61.699219,70.958956]
[[tileset.layer]]
datasource = "shared"
name = "property_records_county"
table_name = "property_records_county"
geometry_field = "geom"
geometry_type = "MULTIPOLYGON"
srid = 3857
#fid_field = "id"
#tile_size = "4096"
buffer_size = 1
simplify = false
minzoom = 14
maxzoom = 18
#query_limit = 1000
#[[tileset.layer.query]]
#sql = """SELECT ST_Transform(geom,3857) AS geom,"id","title","bedrooms","year_built","sqft","category","vacant_type" FROM property_records WHERE geom && !bbox!"""

Layer specification (you can remove place filter)

{
  "id": "property_records",
  "type": "line",
  "source": "property_records_county",
  "source-layer": "property_records_county",
  "minzoom": 0,
  "filter": [
    "any",
    [
      "has",
      "place.fl-state-place-1224000"
    ]
  ],
  "layout": {
    "visibility": "visible"
  },
  "paint": {
    "line-color": "rgba(154, 154, 154, 0.5)"
  }
},

Dataset - Fort Lauderdale.zip

Trex - v.0.14.0

pka commented 3 years ago

Polygons are clipped at the tile borders with a buffer size according to buffer_size. When the styling results in a thicker polygon outline line than buffer_size, these lines get visible.

dmitrykinakh commented 3 years ago

@pka - should I increase buffer size value?

pka commented 3 years ago

Yes, set buffer_size to a maximum outline line width.

dmitrykinakh commented 2 years ago

@pka - you can close this issue. Increasing buffer_size helped me.