GithubHelp home page GithubHelp logo

Comments (4)

bdon avatar bdon commented on June 29, 2024

Can you try generating the file with a minimal PNG image, hardcoded bytes, and inspecting in the viewer?

The verify command is meant for verifying the container organization, and not the tile contents, so it is difficult to distinguish between the read failure being the container or the individual contents...

from go-pmtiles.

dabreegster avatar dabreegster commented on June 29, 2024

The container bit was just fine; the bug was in not getting coordinate transforms right at all in the MVT part. Stuart got a minimal working example in Urban-Analytics-Technology-Platform/od2net#40.

Maybe what could be useful is something to verify MVT contents or better error messages, but I think the Uncaught Error: unknown command 4 is auto-generated protobuffer code anyway.

Thanks!

from go-pmtiles.

bdon avatar bdon commented on June 29, 2024

Here's a related issue of improving error messages in maplibre for malformed PBFs:

maplibre/maplibre-gl-js#2809

My thinking right now is that verifying individual MVTs takes this project too far - a verify on a planet basemap would need to spend a lot more time parsing 100+ million tile contents, unless we make it optional (adding more complexity...)

from go-pmtiles.

dabreegster avatar dabreegster commented on June 29, 2024

For the record, figured this out: Urban-Analytics-Technology-Platform/od2net@f7bfb02
There's a bug in https://crates.io/crates/mvt where asking to encode a LineString with 0 points doesn't fail as it should, but instead writes something invalid. Will be fixing upstream.

And I hope to have a working demo soon of a tippecanoe alternative specialized for a particular LineString case!

from go-pmtiles.

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.