GithubHelp home page GithubHelp logo

Comments (1)

sgillies avatar sgillies commented on June 10, 2024

Backing up: where would antimeridian-crossing features come from? I'm talking myself out of doing anything about this now.

Review a few possible sources.

mapbox.com

If you start at a line at 175 deg W and extend it 10 degrees westward, mapbox.com says 185 deg W. It doesn't cut at the antimeridian. Mapbox.com doesn't produce antimeridian-crossing features as such. Nor can it creat pole-crossers.

Mapbox.com will import lines that extend beyond 180dW and 180dE and does what you expect: draws them with no regard for the antimeridian.

There's definitely a search issue raised: given a bbox like [-190, 5, -185, 10](a 5x5 box W of the antimeridian) should we expect to find the point [187.5, 7.5]? Should carboard normalize input features or
do more splitting of its queries across the antimeridian?

geojson.io

Same.

uploaded data

Carefully prepared global GIS data using lng,lat WGS84 will be split at the antimeridian. NASA's Landsat footprints, for example, are split into multipolygons at 180dW. Their bounding tile should be the z0 tile and they should be searchable, if at an extra cost.

hand editing

There's nothing stopping anyone from typing {"coordinates": [[-175, 10], [175, 10]]} or {"coordinates": [[175, 10], [-175, 10]]} and uploading these. There's also no established way of knowing what the uploader's intent is: do they mean the antimerdian-crossing line or not?

Currently, mapbox.com calls these invalid and throws an error. Good for now, because it doesn't introduce problematic features.

from cardboard.

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.