sp2coords: sp2coords function Function to extract the coordinates matrix...

View source: R/sp2coords.R

sp2coordsR Documentation

sp2coords function Function to extract the coordinates matrix from a class Polygon, Polygons, SpatialPolygons, or SpatialPolygonsDataFrame object that containins a single polygon. Warning: Do not use this function if the inout spatial object contains more than coordinates matrix.

Description

sp2coords function

Function to extract the coordinates matrix from a class Polygon, Polygons, SpatialPolygons, or SpatialPolygonsDataFrame object that containins a single polygon. Warning: Do not use this function if the inout spatial object contains more than coordinates matrix.

Usage

sp2coords(x)

Arguments

x

sp::Spatial* class object ultimately determined by a single coordinates matrix.

Value

Numerical matrix of coordinates with longitude and latitude columns, respectively; coordinates must be in decimal degrees format.


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.