Comments (7)
The best test case is always the offending polygon GeoJSON coordinates, although I can settle for just the vector tile and try to find extract it myself.
from earcut.hpp.
There's a script here that will autoreduce a test case given a vector tile URL and layer name.
from earcut.hpp.
@mourner GeoJSON as vector tile coordinates or as floating point WGS84?
from earcut.hpp.
@flippmoke screen coords as encoded. I'm investigating the issue.
from earcut.hpp.
@mourner how to get the screen coordinates or WGS84 using node-mapnik, if you need the WGS84 coordinates correct make sure you create the tile with the proper z,x,y
"use strict";
var fs = require('fs');
var mapnik = require('mapnik');
var data = fs.readFileSync("./this_tile_name.mvt");
var vtile = new mapnik.VectorTile(0,0,0);
vtile.setData(data);
// output as geojson
fs.writeFileSync('the_tile.geojson', vtile.toGeoJSONSync('__all__'));
// output contains tile coordinates (not geojson format)
fs.writeFileSync('the_tile.json', vtile.toJSON({decode_geometry:true}));
from earcut.hpp.
For the record, the tile is http://mapbox-streets.s3.amazonaws.com/00/vector-terrain-2.4.0/8/16/64.vector.pbf
@flippmoke thanks!
from earcut.hpp.
It turned out to be a bug in ring classification code. Fixed by mapbox/mapbox-gl-js@9369d51
from earcut.hpp.
Related Issues (20)
- 'cut' introduced in complex polygon HOT 1
- New test “issue142” in 2.2.4 fails on aarch64, ppc64le, s390x HOT 1
- Member function of Earcut Assumes that the point type has a size member function HOT 5
- Helper function for earcutting just a std::vector<> of points HOT 1
- Incorrect Triangulation HOT 1
- missing triangle HOT 2
- Builds wrong indices array for concave polygon HOT 2
- The Ear Point judgment HOT 2
- Coverity scan fails HOT 1
- Transfer Appveyor project to Mapbox? HOT 4
- Clang-Tidy static analysis warning: dereference of a null pointer HOT 2
- Issues with triangulating a polygon with 3d coords HOT 1
- How to clip with an outside polygon HOT 1
- Infinite loop in cureLocalIntersections HOT 2
- When I use Clipper to cut polygons, sometimes I get some separated polygons and some holes. How can I use earcut to process these separated polygons? HOT 8
- Endless loop in the filterPoints function HOT 1
- Any way to make this use even-odd rule? HOT 1
- Port infinite loop fix HOT 1
- Please consider adding a version tag on commit 6d18edf0ce046023a7cb55e69c4cd9ba90e2c716 or later HOT 4
- Test “self_touching” fails on aarch64, ppc64le, s390x HOT 5
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 earcut.hpp.