GithubHelp home page GithubHelp logo

Comments (10)

ocefpaf avatar ocefpaf commented on July 30, 2024 1

If anyone finds this issue take a look at:

Leaflet/Leaflet#1293

from folium.

wrobstory avatar wrobstory commented on July 30, 2024

I'm honestly not sure how to address this- seems like a GeoJSON or TopoJSON polygon issue?

from folium.

scardine avatar scardine commented on July 30, 2024

@wckoeppen: this artifact is a common projection issue, but a cartographer would be able to explain it better than me (I'm just a programmer). Post this as a question at http://gis.stackexchange.com/ and you will get a good explanation and a few solutions.

from folium.

wckoeppen avatar wckoeppen commented on July 30, 2024

Thanks @scardine, I know I can change those lons manually (with code), but it seems overkill for the simple display that I'm using this for. I'll probably just live with it.

from folium.

birdage avatar birdage commented on July 30, 2024

that sucks.....

from folium.

scardine avatar scardine commented on July 30, 2024

I'm thinking about alternatives for solving this:

  • automatically split polygons that cross the international date line
  • have an alternative projection where the international date line is placed somewhere else

from folium.

birdage avatar birdage commented on July 30, 2024

@wckoeppen do you have a branch that contains an example we can look at, that also includes the geojson you are using? might take a look over the weekend

from folium.

wckoeppen avatar wckoeppen commented on July 30, 2024

@birdage whoops! sorry, somehow I missed seeing this. Here's the ipython notebook:
https://github.com/wckoeppen/bering-seabird-vulnerability/blob/master/bin/Bering%20Seabirds.ipynb

The geojson is in the second cell.

(But don't judge me on my terrible loops and other bad coding practices, I'm new.)

from folium.

birdage avatar birdage commented on July 30, 2024

@wckoeppen ALL THE JUDGEMENT! (kidding, ill take a look)

from folium.

ocefpaf avatar ocefpaf commented on July 30, 2024

I'm honestly not sure how to address this- seems like a GeoJSON or TopoJSON polygon issue?

After reading a lot about the GeoJSON format specs I found out that the recommend way around this issue is to break the -180, 180. Here is an example:

http://nbviewer.ipython.org/gist/ocefpaf/f03e2cb878c891716518

I am closing since we don't have any plans to try to be smart about this issue and do that automatically.

from folium.

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.