opts_sfg: Constructive options for class 'sfg'

View source: R/s3-sfg.R

opts_sfgR Documentation

Constructive options for class 'sfg'

Description

These options will be used on objects of class 'sfg', simple feature geometries from the 'sf' package.

Usage

opts_sfg(constructor = c("st_sfg", "next"), ...)

Arguments

constructor

String. Name of the function used to construct the object, see Details section.

...

Additional options used by user defined constructors through the opts object

Details

Depending on constructor, we construct the object as follows:

  • "st_sfg" (default): We build the object using the sf constructor matching the geometry type, i.e. sf::st_point(), sf::st_multipoint(), sf::st_linestring(), sf::st_multilinestring(), sf::st_polygon(), sf::st_multipolygon() or sf::st_geometrycollection(), with a dim argument when the dimension can't be inferred from the coordinates.

  • "next" : Use the constructor for the next supported class. Call .class2() on the object to see in which order the methods will be tried.

Other geometry types, such as "CIRCULARSTRING", don't have a dedicated constructor and are built with the next constructor.

Value

An object of class <constructive_options/constructive_options_sfg>


constructive documentation built on Oct. 22, 2026, 5:07 p.m.