simplegeom-methods: Create simplegeom object

Description Usage Arguments Value Author(s) Examples

Description

A simple geom is a simple set of geometries specified locally. See webgeom for web features.

Usage

1
2
3
4
5
6
7
simplegeom(.Object, ...)

## S4 method for signature 'missing'
simplegeom(.Object, ...)

## S4 method for signature 'ANY'
simplegeom(.Object, ...)

Arguments

.Object

any object that can be coerced into simplegeom

...

additional arguments passed to SpatialPolygonsDataFrame

Value

the simplegeom object

Author(s)

Jordan S Read

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
simplegeom(c(-88.6, 45.2))
## Not run: 
library(sp)
Sr1 <- Polygon(cbind(c(-89.0001,-89,-88.9999,-89,-89.0001),c(46,46.0001,46,45.9999,46)))
Sr2 <- Polygon(cbind(c(-88.6,-88.5999,-88.5999,-88.6,-88.6),c(45.2,45.2,45.1999,45.1999,45.2)))
Srs1 <- Polygons(list(Sr1), "s1")
Srs2 <- Polygons(list(Sr2), "s2")
SP <- SpatialPolygons(list(Srs1,Srs2), proj4string = CRS("+proj=longlat +datum=WGS84"))
result(geoknife(simplegeom(SP), 'prism', wait=TRUE))

## End(Not run)
simplegeom(data.frame('point1'=c(-89, 46), 'point2'=c(-88.6, 45.2)))

eric-erki/geoknife documentation built on Dec. 31, 2019, 12:54 a.m.