elide-methods

0th

Percentile

Methods for Function elide in Package `maptools'

Methods for function elide to translate and disguise coordinate placing in the real world.

Keywords
methods, spatial
Usage
elide(obj, ...)
Arguments
obj
object to be elided
...
other arguments: [object Object],[object Object],[object Object],[object Object],[object Object]
Value

  • The methods return objects of the input class object with elided coordinates; the coordinate reference system is not set. Note that if the input coordinates or centroids are in the data slot data.frame of the input object, they should be removed before the use of these methods, otherwise they will betray the input positions.

Aliases
  • elide-methods
  • elide,SpatialPoints-method
  • elide,SpatialPointsDataFrame-method
  • elide,SpatialLines-method
  • elide,SpatialLinesDataFrame-method
  • elide,SpatialPolygons-method
  • elide,SpatialPolygonsDataFrame-method
  • elide
Examples
data(meuse)
coordinates(meuse) <- c("x", "y")
proj4string(meuse) <- CRS("+init=epsg:28992")
data(meuse.riv)
river_polygon <- Polygons(list(Polygon(meuse.riv)), ID="meuse")
rivers <- SpatialPolygons(list(river_polygon))
proj4string(rivers) <- CRS("+init=epsg:28992")
rivers1 <- elide(rivers, reflect=c(TRUE, TRUE), scale=TRUE)
meuse1 <- elide(meuse, bb=bbox(rivers), reflect=c(TRUE, TRUE), scale=TRUE)
opar <- par(mfrow=c(1,2))
plot(rivers, axes=TRUE)
plot(meuse, add=TRUE)
plot(rivers1, axes=TRUE)
plot(meuse1, add=TRUE)
par(opar)
Documentation reproduced from package maptools, version 0.6-19, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.