When projecting to the Azimuthal Equidistant projection in R's rgdal
the results seem strange. Take this example:
require(rgdal)
require(maptools)
data(wrld_simpl)
azim_polar = '+proj=aeqd +lat_0=90 +lon_0=0'
azim_orign = '+proj=aeqd +lat_0=0 +lon_0=0'
w_polar = spTransform(wrld_simpl, CRS(azim_polar))
w_orign = spTransform(wrld_simpl, CRS(azim_orign))
par(mai=c(0,0,.2,0), mfrow=c(1, 2))
plot(w_polar, col = 'grey80'); title(azim_polar)
plot(w_orign, col = 'grey80'); title(azim_orign)
Antarctica's polygon should fill outwards to the projection edge, not plot inwards. Similarly for the WGS84 origin plot, shouldn't the outer polygons continue outwards instead of wrapping round? Compare this to the d3.js implementation).
Am I missing something in the process, or is this an rgdal
or proj4
issue?
Edit: plotting meridians and parallels to clarify what's going on here
Note that the polar plot is actually correct, but the other is fully wrapped around. I've made lines semi-transparent to show overplotting, and the only lines not overplotting in the second map are the 90° E and W meridians. May be wrong but that suggests to me a problem in the math rather than plotting function..