Learn R Programming

tmaptools (version 2.0)

is_projected: Is the shape projected?

Description

Checks whether the shape is projected. Applicable to Spatial, Raster and sf objects. In case the projection is missing, it checks whether the coordinates are within -180/180 and -90/90 (if so, it returns FALSE).

Usage

is_projected(x)

Arguments

x

shape (from class Spatial, Raster, or sf), or projection (see get_proj4 for options)

Value

logical: TRUE if the shape is projected and FALSE otherwise.