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

The GeoJson structure breaks if the ring start label occurs several times #1086

Closed
IKupriyanov-HORIS opened this issue Apr 25, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@IKupriyanov-HORIS
Copy link
Collaborator

Note that [0, 0] appears twice in a row. Without this duplication, the geometry would be parsed correctly:

from lets_plot import *
import geopandas as gp

LetsPlot.setup_html()

d = gp.read_file("""
{"type":"MultiPolygon","coordinates":
    [
      [
        [
          [0,0], [0,0], [0, 5], [5, 5], [5, 0], [0, 0]
        ]
      ],
      [
        [
          [10, 10],[10, 20],[20, 20],[20, 10],[10, 10]
        ]
      ]
    ]
}""")

ggplot() + geom_polygon(map=d) + coord_fixed()

Actual:
image

Expected result:

d.plot()

image

@IKupriyanov-HORIS IKupriyanov-HORIS added the bug Something isn't working label Apr 25, 2024
@alshan alshan added this to the 2024Q2 milestone Apr 26, 2024
@RYangazov RYangazov self-assigned this Apr 26, 2024
@RYangazov
Copy link
Contributor

Fixed via d5c2cf3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants