Skip to content

Plotting data at dateline issue malforms polygons. #517

@MOB-Habitat

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?

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