Comments (5)
Can you provide the data and tile number for the province, so I can debug? Possible issues are polygon not closed (endpoints not the same), or the wrong winding order. But hard to know without the actual data.
from orb.
thanks.
it may happen when zoom>9
z: 10,x: 817,y: 422
z: 10,x: 816,y: 421
z: 10,x: 816,y: 420
the ring function in orb lead to the problem when the clip bound is in the polygon and whitout intersect with the polygon outline.
from orb.
I am not able to duplicate.
One thing to consider is that Clip modifies the input data. If you need to reuse it then you need to Clone()
it before passing it in.
from orb.
thanks. Maybe it recurrence only when we render the whole map.
mapbox mapbox/tippecanoe project use Vatti algorithm called "wagyu",your clip algorithm is Sutherland-Hodgeman clip algorithm.
Sutherland-Hodgeman clip algorithm can not deal with polyon with hole and Concave polygon.
from orb.
Sutherland-Hodgeman clip algorithm can not deal with polyon with hole and Concave polygon.
Is that true? the wikipedia page has an example of a concave polygon. From the Vatti clipping algorithm wikipedia page it says it support "Even complex (self-intersecting) polygons" which I bet Sutherland-Hodgeman doesn't support.
You could try https://github.com/paulmach/orb/tree/master/clip/smartclip I don't remember how it handles all the edge cases, but it is smarter.
from orb.
Related Issues (20)
- Can we use wkb.Scanner with orb.Geometry type ? HOT 2
- Units of orb.Bound.Pad() HOT 2
- Reverse Geocoding HOT 2
- panic in wkt.Unmarshal
- Polygon and line intersection coordinates
- quadtree KNearest search is fickle
- Subdivide polygon HOT 1
- How to process the result of encoding/mvt HOT 3
- Mongo/BSON: no decoder found for orb.Geometry HOT 6
- How to update DefaultRoundingFactor for Lat/Lon? HOT 6
- get geometry center HOT 1
- Failed to parse wkt MultiPolygon HOT 2
- Invalid MULTIPOLYGON no longer gives an error HOT 2
- Degraded performance wkt.Unmarshal since v.0.9.1 HOT 2
- Support for (storing) altitude HOT 6
- encoding/mvt fails on nil features HOT 5
- PointAtBearingAndDistance return points with large vertical distance HOT 1
- Tilecover returns adjacent / touching tiles HOT 2
- JSON Unmarshalling panics if the geojson object is null HOT 1
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 orb.