View source: R/MPCQueryFunctions.R
queryMPCTileIndex | R Documentation |
Intersect a set of features (points or polygons) against the lidar point data STAC index on Microsoft Planetary Computer to determine which tiles are needed to provide coverage for the features. This index contains every lidar point tile in the MPC-USGS lidar collection. Queries for features covering a large area can take some time.
queryMPCTileIndex(
x = NULL,
y = NULL,
buffer = 0,
projectID = NULL,
fieldname = "workunit_id",
shape = "square",
aoi = NULL,
crs = "",
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 |
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 |
The MPC lidar collection contains all lidar data produced by USGS as of Fall 2022. Projects added to the USGS data collection after this date are currently not added to the MPC data collection. This could change in the future. Check MPC for additional information about the lidar data colection.
Query the MPC 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:
queryMPCTileIndex(-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.