wkt_tree: Internal WKT handling

fm_wkt_as_wkt_treeR 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 wkt_tree list structure

...

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, duplicate indicates the index number of the desired version. Default: 1

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))


fmesher documentation built on July 1, 2024, 5:07 p.m.