raster (version 1.0.4)

isLonLat: Is this longitude/latitude data?

Description

Test whether a Raster* object has the a longitude / latitude coordinate reference system.

Usage

isLonLat(x)

Arguments

x
Raster* object

Value

  • Logical

Examples

Run this code
r <- raster()
isLonLat(r)
projection(r) <- "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +ellps=WGS84"
isLonLat(r)

Run the code above in your browser using DataCamp Workspace