kasc2spixdf {adehabitatMA}R Documentation

Conversion of old classes (adehabitat) to new classes (sp,adehabitatMA)

Description

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.

Usage

kasc2spixdf(ka)
asc2spixdf(a)
area2spol(ar)
spol2area(sr)
attpol2area(srdf)

Arguments

ka

an object of class kasc.

a

an object of class asc.

ar

an object of class area.

sr

an object of class SpatialPolygons or SpatialPolygonsDataFrame.

srdf

an object of class SpatialPolygonsDataFrame.

Details

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).

Author(s)

Clement Calenge clement.calenge@ofb.gouv.fr


[Package adehabitatMA version 0.3.16 Index]