Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossing line problem with geojson while using Equidistant Cylindrical (eqc) projection #182

Open
hunter3789 opened this issue Feb 8, 2022 · 3 comments

Comments

@hunter3789
Copy link

hunter3789 commented Feb 8, 2022

I am having a problem with drawing geojson while using Equidistant Cylindrical (eqc) projection.
"+proj=eqc +lat_0=0 +lat_ts=0 +lon_0=126 +x_0=0 +y_0=0 +ellps=WGS84 +units=m +no_defs"

When I draw world maps, there are unexpected lines acrossing left and right side of map.

This is the example of eqc projection case and source code.
example
https://github.com/hunter3789/geojson/blob/main/leaflet_imgoverlay_world.html

Is there any ideas to deal with it? Thank you.

@hunter3789
Copy link
Author

I split the polygons into 2 pieces, which make the acrossing lines.
I don't know this is the proper way to deal with, but it looks not bad.

those are the result and source code.
example2
https://github.com/hunter3789/geojson/blob/main/leaflet_imgoverlay_world_modified.html

If there is better way, please share me. Thank you.

@jidengke
Copy link

I encountered the same problem, thank you for your solution

@hunter3789
Copy link
Author

hunter3789 commented Dec 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants