Learn R Programming

gdalraster (version 1.11.1)

srs_is_projected: Check if WKT definition is a projected coordinate system

Description

srs_is_projected() will attempt to import the given WKT string as a spatial reference system (SRS), and returns TRUE if the SRS contains a PROJCS node indicating a it is a projected coordinate system. This is a wrapper for OSRIsProjected() in the GDAL Spatial Reference System C API.

Usage

srs_is_projected(srs)

Value

Logical. TRUE if srs is projected, otherwise FALSE

Arguments

srs

Character OGC WKT string for a spatial reference system

See Also

srs_is_geographic(), srs_is_same()

Examples

Run this code
srs_is_projected(epsg_to_wkt(5070))
srs_is_projected(srs_to_wkt("WGS84"))

Run the code above in your browser using DataLab