ReadPoly: Read shape files

Description Usage Arguments Value Author(s) Examples

View source: R/ReadPoly.R

Description

Generates a SpatialPolygonsDataFrame from a shape file

Usage

1
ReadPoly(shapefile, proj = GPS, fix.holes = TRUE, ID=NULL)

Arguments

shapefile

Path to a shape file

proj

The projection used in the file, default to GPS

fix.holes

By default, tries to fix holes in the polygon frame

ID

A character vector to be passed to readShapePoly. It specifies the name of a column in the .dbf file containing the ID values of the shapes - the values will be converted to a character vector. If NULL (default), the ID of the polygons is taken.

Value

A SpatialPolygonsDataFrame

Author(s)

Mathieu Cossuta, Davide Morselli

Examples

1
2
3
4
5
## Not run: 
data(GPS)
yu.reg <- ReadPoly("path/to/my/shapefile.shp", proj=GPS)

## End(Not run)

geospacom documentation built on May 2, 2019, 7:23 a.m.