Git Product home page Git Product logo

Comments (7)

mourner avatar mourner commented on May 29, 2024

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.

jfirebaugh avatar jfirebaugh commented on May 29, 2024

There's a script here that will autoreduce a test case given a vector tile URL and layer name.

from earcut.hpp.

flippmoke avatar flippmoke commented on May 29, 2024

@mourner GeoJSON as vector tile coordinates or as floating point WGS84?

from earcut.hpp.

mourner avatar mourner commented on May 29, 2024

@flippmoke screen coords as encoded. I'm investigating the issue.

from earcut.hpp.

flippmoke avatar flippmoke commented on May 29, 2024

@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.

mourner avatar mourner commented on May 29, 2024

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.

mourner avatar mourner commented on May 29, 2024

It turned out to be a bug in ring classification code. Fixed by mapbox/mapbox-gl-js@9369d51

from earcut.hpp.

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.