Skip to content
Prev 21847 / 29559 Next

Shifting x coordinates by 180

Hello Leigh,

the error message clearly states the problem. A workaround would maybe to
extract the coordinates (Try to use function lapply due to the polygons slot
is a list.). Then change the coordinates as desired and create a new
SpatialPolygons object. In the end create a new SpatialPolygonsDataFrame out
of the new SpatialPolygons and the original data.

It is just an idea and not tested ; ) .

See also
?SpatialPolygonsDataFrame
?SpatialPolygons
etc.

With best regards

Roland


Leigh Kroeger schrieb am 2014-10-15: