Skip to contents

Returns TRUE if any geometry part (or polygon hole) stores Z values.

Z storage is optional: empty Z means a conventional 2D geometry. When Z is present it is included in geom and crds, preserved by writeVector / vect file I/O (25D geometries), and by coercion to/from sf (see also https://github.com/rspatial/terra/issues/824).

Usage

# S4 method for class 'SpatVector'
has.z(x)

Arguments

x

SpatVector

Value

logical

See also

Examples

v <- vect(cbind(1:3, 1:3))
has.z(v)
#> [1] FALSE