oce icon indicating copy to clipboard operation
oce copied to clipboard

mapPlot() error with proj=ortho

Open dankelley opened this issue 7 years ago • 2 comments

The code

library(oce)
data(coastlineWorld)
mapPlot(coastlineWorld, proj="+proj=ortho", col="gray")

yields as shown below; note the error over Russia. (NOTE: I am getting this in an as-yet not committed version of the "mapping" branch, but have not checked it with "develop" because I am focused on the problem of rgdal map projection on i386/windows platforms.)

rplot

dankelley avatar Feb 27 '19 17:02 dankelley

This may be a problem of coastlineCut, actually, since

library(oce)
data(coastlineWorld)
mapPlot(coastlineCut(coastlineWorld, -135),
 longitudelim=c(-130, 50), latitudelim=c(70, 110),
 proj="+proj=stere +lat_0=90 +lon_0=-135", col='gray')

produces as shown below (notice the weird icicle-like shape pointing from the top edge of the plot towards the pole).

rplot

dankelley avatar Feb 28 '19 14:02 dankelley

This issue has been automatically marked as stale because 8 weeks have passed with no activity. (Adding the 'pinned' label will prevent this issue from ever going stale.)

stale[bot] avatar Apr 25 '19 14:04 stale[bot]