BuildProjectPolygonFromIndex: LidarIndexR - Create polygon(s) representing the area covered...

BuildProjectPolygonFromIndexR Documentation

LidarIndexR – Create polygon(s) representing the area covered by a tile index

Description

Creates a bounding polygon(s) given a set of point tile polygons. This is useful to create project polygons to display the areas covered by a lidar project.

Usage

BuildProjectPolygonFromIndex(
  indexFile,
  projectIdentifier,
  nx = 512,
  ny = 512,
  layer = "",
  outputCRS = NULL,
  appendInfo = NULL,
  outputFile = NULL,
  rebuild = FALSE,
  quiet = TRUE
)

Arguments

indexFile

Full path and filename on the local file system for the tile index file.

projectIdentifier

Character string containing an identifier for the project area. This will be added to each feature in the return sf object.

nx

Integer specifying the number of cells (width) of the raster used to merge polygons.

ny

Integer specifying the number of cells (height) of the raster used to merge polygons.

layer

Layer name in indexFile to use for the polygon creation.

outputCRS

A valid projection string that can be used with the crs parameter in st_transform to reproject the index. If using EPSG codes, do not enclose the EPSG number in quotes.

appendInfo

Data frame (single row) with values to append to each feature in the return sf object. If NULL, no information is appended. If appendInfo is sf object, the geometry will be removed before appending to each feature.

outputFile

Full path and file name on the local file system for the index file.

rebuild

Boolean. If TRUE, the index is always created. If FALSE, the index is only created if it does not already exist.

quiet

Boolean to control display of status information. If TRUE, information is not displayed. Otherwise, status information is displayed.

Value

An sf object containing the polygon(s) for the project area.

Examples

## Not run: 
BuildProjectPolygonFromIndex()

## End(Not run)

bmcgaughey1/LidarIndexR documentation built on April 14, 2025, 6:07 p.m.