| determine_esri_geo_type {arcgisutils} | R Documentation |
Determine Esri Geometry type
Description
Takes an sf or sfc object and returns the appropriate Esri geometry type.
Usage
determine_esri_geo_type(x, call = rlang::caller_env())
Arguments
x |
an object of class |
call |
The execution environment of a currently running
function, e.g. You only need to supply Can also be For more information about error calls, see Including function calls in error messages. |
Details
Geometry type mapping
-
POINT:esriGeometryPoint -
MULTIPOINT:esriGeometryMultipoint -
LINESTRING:esriGeometryPolyline -
MULTILINESTRING:esriGeometryPolyline -
POLYGON:esriGeometryPolygon -
MULTIPOLYGON:esriGeometryPolygon
Value
returns a character scalar of the corresponding Esri geometry type
Examples
determine_esri_geo_type(sf::st_point(c(0, 0)))