geoLocation: Set or get the geoLocation slot.

Description Usage Arguments Value See Also Examples

Description

Set or get the SpatialPoints that represent the shot location for the photograph represented by a CanopyPhoto.

Usage

1
2
3
4
5
6
7
geoLocation(x)

## S4 method for signature 'CanopyPhoto'
geoLocation(x)

## S4 replacement method for signature 'CanopyPhoto,SpatialPoints'
geoLocation(x) <- value

Arguments

x

CanopyPhoto.

value

SpatialPoints that represents the location of x.

Value

SpatialPoints.

See Also

loadPhoto.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
x <- loadPhoto()
geoLocation(x)
xy <- matrix(c(-57.95, -34.93), ncol = 2)
newPt <- SpatialPoints(xy, proj4string = CRS("+init=epsg:4326"))
geoLocation(x) <- newPt
geoLocation(x)

## Not run: 
  xy <- matrix(c(-57.95, -34.93, -57, -34), ncol = 2)
  newPt <- SpatialPoints(xy, proj4string = CRS("+init=epsg:4326"))
  geoLocation(x) <- newPt

## End(Not run)

GastonMauroDiaz/caiman documentation built on Jan. 22, 2022, 4:43 a.m.