Comments (10)
Looks strange indeed! Are these maps rendered with a built-in viewer? Which version?
from t-rex.
I'm trying with the latest version 0.33.1. However, happens on the built in as well. Also noticed that no issues with built in OpenLayers and XRay
from t-rex.
Then I'm supecting degerated geometries caused by clipping or simplification (see #5). Can you turn off simplification and play with the clipping parameters? I'm very interested in a dataset working with OL, but not with MB GL js. Is your datasource public or can you make it available for testing?
from t-rex.
Thank's for the reply. I will test without simplification later today. I also can share this dataset. It's a query on our postgis server. However, I can export as shape file or geojson.
from t-rex.
Tried to remove clipping and simplification = false, and the result is the same. Some polygons have holes. Maybe that's the issue. However, on OL they are correctly drawn. I can send you the dataset. What's the best format?
from t-rex.
Best option would be a PG dump (pg_dump --file=out.dump --format=c --table=...
). A file export would maybe do it as well.
from t-rex.
Find attached the dump file. Let me know if you able to test it. Thank you very much!.
from t-rex.
Thanks for the data. I couldn't reproduce your output, but also saw some glitches when displaying it with Maputnik. A first look at the data shows some invalid geometries:
gid | st_npoints | st_nrings | st_isvaliddetail |
---|---|---|---|
162620 | 16348 | 11 | (t,,) |
162621 | 17451 | 9 | (t,,) |
162622 | 16006 | 6 | (t,,) |
162623 | 11674 | 8 | (t,,) |
162624 | 809 | 1 | (t,,) |
162625 | 12193 | 1 | (t,,) |
162626 | 22191 | 14 | (f,"Too few points in geometry component",0101000000FBA45F828DCA53C1BED636691E7644C1) |
162627 | 14718 | 2 | (t,,) |
162628 | 8661 | 2 | (t,,) |
162629 | 11419 | 9 | (f,"Too few points in geometry component",01010000002E4D0730DEDB53C10198F0D8160045C1) |
162630 | 8195 | 5 | (f,"Too few points in geometry component",0101000000417405DD7AE553C132B7F7E9B3DC44C1) |
162631 | 8441 | 9 | (t,,) |
162632 | 12311 | 4 | (t,,) |
162633 | 5055 | 1 | (t,,) |
162634 | 27981 | 10 | (t,,) |
162635 | 10026 | 2 | (t,,) |
162636 | 6761 | 2 | (t,,) |
162637 | 5083 | 1 | (t,,) |
162638 | 2663 | 1 | (t,,) |
162639 | 3961 | 1 | (t,,) |
162640 | 2929 | 1 | (t,,) |
162641 | 5122 | 1 | (t,,) |
162642 | 2513 | 1 | (t,,) |
162643 | 20223 | 10 | (f,"Too few points in geometry component",010100000046B04456ECE453C1926402CE9EA644C1) |
162644 | 6420 | 3 | (t,,) |
162645 | 3559 | 1 | (t,,) |
162646 | 2835 | 1 | (t,,) |
from t-rex.
Thank you @pka. I've published the layer and removed the invalid geometries, however, mabox still is drawing the lines. OpenLayers still fine.
from t-rex.
These artifacts are caused by unclipped polygons or lines. Clipping has been fixed for reprojected layers in 7801bb8 and in a6889b7 for config files written with version 0.7.2.
Always use buffer_size
in your configuration!
from t-rex.
Related Issues (20)
- 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
- Buffer region not served as part of the vector tile HOT 2
- T-Rex doesn't handle invalid geometry results correctly when transforming between coordinate systems HOT 9
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.