Skip to content

Plotting data at dateline issue malforms polygons. #517

Description

@MOB-Habitat

I've been trying to use the data found here : https://ouvert.canada.ca/data/fr/dataset/fec926ca-25ad-5c92-a9a7-6009c21d17b3 with mapview.

library(sf)
# Linking to GEOS 3.14.1, GDAL 3.12.1,
# PROJ 9.7.1; sf_use_s2() is TRUE
library(mapview) # 2.11.2

lim_can <- st_read("~/Downloads/AC_1M_BoundaryPolygons/AC_1M_LimitesPolygones.gdb")
mapview(lim_can)

And I get this :

Image

When using plot(lim_can |> st_geometry()) it works just fine. I suspect that this has something to do with dateline, but not sure how to fix this.

How to correct for this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions