geos_empty | R Documentation |
Create empty geometries
geos_empty(type_id = "geometrycollection", crs = wk::wk_crs_inherit())
as_geos_type_id(type_id)
## Default S3 method:
as_geos_type_id(type_id)
## S3 method for class 'character'
as_geos_type_id(type_id)
## S3 method for class 'numeric'
as_geos_type_id(type_id)
type_id |
The numeric type identifier for which an
empty should be returned, an object from which
one can be extracted using |
crs |
An object that can be interpreted as a CRS. See |
A GEOS geometry vector.
geos_empty(c("point", "linestring", "polygon"))
geos_empty(1:7)
geos_empty(geos_read_wkt(c("POINT (0 1)", "LINESTRING (0 0, 1 1)")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.