Skip to content

Possible bug in reprojection of vector data (Natural Earth coastline to Robinson projection) #1372

@AndrewCunliffe

Description

@AndrewCunliffe

Reprojection of the small scale Natural Earth coastline dataset to a Robinson projection returns an erroneous line feature on the plot. Apologies if this is the wrong place to report, it might be an issue with the projection library?

Medium-scale coastlines reproject okay to a World Robinson projection (EPSG:54030)
coastlines <- ne_coastline(scale = "medium", returnclass = "sf")
ggplot(data = coastlines) + geom_sf(colour = "black") + coord_sf(crs = st_crs(54030)) + theme_bw()

Medium-scale coastlines reproject okay to a World Robinson projection (EPSG:54030)
coastlines <- ne_coastline(scale = "medium", returnclass = "sf")
ggplot(data = coastlines) + geom_sf(colour = "black") + coord_sf(crs = st_crs(54030)) + theme_bw()
79444912-bc2b4200-7fd3-11ea-9080-03ebe186531c

Small-scale coastlines display okay at the default projection
coastlines <- ne_coastline(scale = "small", returnclass = "sf")
ggplot(data = coastlines) + geom_sf(colour = "black") + theme_bw()
79444961-cd744e80-7fd3-11ea-89b7-90550a7e1527

Small-scale coastlines reprojected to the World Robinson projection (EPSG:54030) include the erroneous line feature at ca. 70 degrees north
coastlines <- ne_coastline(scale = "small", returnclass = "sf")
ggplot(data = coastlines) + geom_sf(colour = "black") + coord_sf(crs = st_crs(54030)) + theme_bw()
79444953-c8af9a80-7fd3-11ea-9399-62856dabe2f9

Referral from ggplot2

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