Learn R Programming

gdalraster (version 1.11.1)

g_name: Extract the geometry type name from a WKT geometry

Description

g_name() returns the name for this geometry type in well known text format.

Usage

g_name(wkt)

Value

WKT name for this geometry type.

Arguments

wkt

Character. OGC WKT string for a simple feature geometry.

Examples

Run this code
elev_file <- system.file("extdata/storml_elev.tif", package="gdalraster")
ds <- new(GDALRaster, elev_file)
bbox_to_wkt(ds$bbox()) |> g_name()
ds$close()

Run the code above in your browser using DataLab