reformat_geometry: Reformat the Geometry of a single iDAI.field / Field Desktop...

View source: R/reformat_geometry.R

reformat_geometryR Documentation

Reformat the Geometry of a single iDAI.field / Field Desktop resource

Description

Reformat the Geometry of a single iDAI.field / Field Desktop resource

Usage

reformat_geometry(geometry)

Arguments

geometry

The list in resource$geometry of an idaifield_docs- or idaifield_resources-list.

Value

The geometry of the resource in a more usable format that can be processed with tools like sp's SpatialPoints() etc. to work with spatial data. The geometry is returned as a a matrix in a list.

See Also

  • This function is used in: simplify_idaifield()

Examples

## Not run: 
test_2 <- list(type = "Polygon",
    coordinates = list(list(list(1), list(1)),
                       list(list(1), list(2)),
                       list(list(2), list(2)),
                       list(list(1), list(1))
                       )
)

reformat_geometry(test_2)


## End(Not run)

lsteinmann/idaifieldR documentation built on April 3, 2025, 2:06 p.m.