View source: R/QueryFunctions.R
queryUSGSTileIndex | R Documentation |
Intersect a set of features (points or polygons) against a lidar tile index to determine which tiles are needed to provide coverage for the features. This involves both a spatial overlay operation and a database query. The database query is used to limit the features used for the spatial overlay. This dramatically increases the speed of the query when the area of interest only involves a few lidar projects.
queryUSGSTileIndex(
x,
y,
buffer = 0,
projectID = NULL,
fieldname = "workunit_id",
shape = "square",
aoi = NULL,
crs = "",
index = "",
segments = 60,
return = "index",
returnType = "sf",
returncrs = "same",
verbose = FALSE,
useLegacyBuffering = FALSE,
...
)
x |
Location easting for the center of the area-of-interest. |
y |
Location northing for the center of the area-of-interest. |
buffer |
Distance in meters added or subtracted to |
projectID |
Character string or list of character strings
containing the ID(s) for the lidar project(s). Typically obtained
by calling |
fieldname |
Character string containing the name of the field with
matches for the |
shape |
Character string describing the shape of the sample area in
the case of point features or the shape applied to the buffer corners
when using polygon features. Valid values are |
aoi |
|
crs |
Valid |
index |
Index file for USGS lidar tiles If not provided, an index
previously specified by a call to |
segments |
Number of segments to use when generating a circular
area of interest. When using a |
return |
Character string specifying the kind of shapes to be
returned. Valid values are " |
returnType |
Character string specifying the object type for the
returned polygon object when |
returncrs |
Valid |
verbose |
Boolean to enable printing of status messages. This is really only useful for code debugging. |
useLegacyBuffering |
Boolean flag indicating that the |
... |
Additional arguments passed to |
Query the tile index to find tiles that intersect the buffer
ed
(x,y)
point(s) or buffer
ed feature(s) provided in aoi
.
A SpatialPolygonsDataFrame
or sf
object containing
polygon(s) and attribute(s) for tiles covering the specified area.
Attributes for the aoi
are placed first in the data.frame
followed by attributes for the lidar tile polygons..
## Not run:
queryUSGSTileIndex(-13540901, 5806426, 180, shape = "circle", crs = 3857)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.