fm_wkt_as_wkt_tree {fmesher} | R Documentation |
Internal WKT handling
Description
Conversion between WKT and a tree representation
Usage
fm_wkt_as_wkt_tree(x, ...)
fm_wkt_tree_as_wkt(x, pretty = FALSE, ...)
fm_wkt_tree_get_item(x, item, duplicate = 1)
fm_wkt_tree_set_item(x, item_tree, duplicate = 1)
Arguments
x |
A WKT2 string, or a |
... |
Unused |
pretty |
logical; If TRUE, use pretty formatting. Default: FALSE |
item |
character vector with item labels identifying a parameter item entry. |
duplicate |
For items that have more than one match, |
item_tree |
An item tree identifying a parameter item entry |
Value
A hierarchical list, describing WKT information as a tree
fm_wkt_tree_as_wkt
character; the WKT corresponding to the tree.
fm_wkt_tree_get_item
returns the value of an item found in the
tree
fm_wkt_tree_set_item
returns the modified tree
Examples
str(fm_wkt_as_wkt_tree(fm_crs("longlat_norm")$wkt))
[Package fmesher version 0.5.0 Index]