View source: R/QueryFunctions.R
queryUSGSProjectIndex | R Documentation |
Intersect a set of features (points or polygons) against a lidar project index to determine which projects provide coverage for the features. This is purely a spatial overlay operation and does not use the attribute data associated with the index.
queryUSGSProjectIndex(
x,
y,
buffer = 0,
shape = "square",
aoi = NULL,
crs = "",
index = "",
segments = 60,
return = "index",
returnType = "sf",
returncrs = "same",
lidarOnly = FALSE,
dropNAColumns = NULL,
clean = FALSE,
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 |
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 projects. 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 |
lidarOnly |
Boolean indicating that only lidar projects should be considered
for the spatial overlay. For the USGS WESM index, setting |
dropNAColumns |
list of column names to test in the index for NA values. If any values in any of the columns are NA, the feature will be dropped from the index prior to the spatial overlay. Default is to consider all features in the index. |
clean |
Boolean to enable a cleaning operation for the project polygons
using a call to |
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 |
Finds all USGS lidar projects that cover the area-of-interest and associates the polygon attributes with those of the input object(s) to produce the return object.
When used with (x,y)
, a data object is created containing a single
point. The buffer
is then applied and the resulting area is
intersected with the project polygons.
Internally, all data are in the web mercator coordinate reference system (EPSG:3857). Various data objects are projected to this CRS to perform the intersection and then projected to desired CRS for the return object.
A SpatialPolygonsDataFrame
or sf
object containing project
polygon(s) and attribute(s) for lidar projects covering the specified area.
Attributes for the aoi
are placed first in the data.frame
followed by attributes for the lidar project polygons.
## Not run:
queryUSGSProjectIndex(-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.