These functions convert maps of classes available in adehabitat toward
classes available in the package sp and conversely.
kasc2spixdf converts an object of class kasc into an
object of class SpatialPixelsDataFrame.
asc2spixdf converts an object of class asc into an
object of class SpatialGridDataFrame.
area2spol converts an object of class area into an
object of class SpatialPolygons.
spol2area converts an object of class SpatialPolygons or
SpatialPolygonsDataFrame into an object of class
area.
attpol2area gets the data attribute of an object of class
SpatialPolygonsDataFrame and stores it into a data frame.
kasc2spixdf(ka)
asc2spixdf(a)
area2spol(ar)
spol2area(sr)
attpol2area(srdf)
an object of class kasc.
an object of class asc.
an object of class area.
an object of class SpatialPolygons or
SpatialPolygonsDataFrame.
an object of class SpatialPolygonsDataFrame.
Clement Calenge clement.calenge@ofb.gouv.fr
We describe here more in detail the functions spol2area and
attpol2area. Objects of class area do not deal with
holes in the polygons, whereas the objects of class
SpatialPolygons do. Therefore, when holes are present in the
SpatialPolygons object passed as argument, the function
spol2area ignore them and returns only the external contour of
the polygon (though a warning is returned).