powered by
Extract meta information
wkb_meta(wkb, recursive = FALSE)wkt_meta(wkt, recursive = FALSE)wkt_streamer_meta(wkt, recursive = FALSE)wksxp_meta(wksxp, recursive = FALSE)wk_geometry_type(type_id)wk_geometry_type_id(type)
wkt_meta(wkt, recursive = FALSE)
wkt_streamer_meta(wkt, recursive = FALSE)
wksxp_meta(wksxp, recursive = FALSE)
wk_geometry_type(type_id)
wk_geometry_type_id(type)
A list() of raw() vectors, such as that returned by sf::st_as_binary().
list()
raw()
sf::st_as_binary()
Pass TRUE to recurse into multi-geometries and collections to extract meta of sub-geometries
TRUE
A character vector containing well-known text.
A list() of classed objects
An integer version of the geometry type
A string version of the geometry type (e.g., point, linestring, polygon, multipoint, multilinestring, multipolygon, geometrycollection)
A data.frame with columns:
feature_id: The index of the top-level feature
feature_id
nest_id: The recursion level (if feature is a geometry collection)
nest_id
part_id: The part index (if nested within a multi-geometry or collection)
part_id
type_id: The type identifier (see wk_geometry_type())
type_id
wk_geometry_type()
size: For points and linestrings the number of points, for polygons the number of rings, and for mutlti-geometries and collection types, the number of child geometries.
size
srid: The spatial reference identifier as an integer
srid
# NOT RUN { wkt_meta("POINT (30 10)") wkt_meta("GEOMETRYCOLLECTION (POINT (30 10))", recursive = FALSE) wkt_meta("GEOMETRYCOLLECTION (POINT (30 10))", recursive = TRUE) # }
Run the code above in your browser using DataLab