Helper function - Creates a well known text (WKT) representation of the AOI geometry. This
geometry can be points, lines, or polygons. The wkt that is returned from this function is used
in the returnData
function.
createWKT(aoi, splitFeatures=False, fieldName='')
aoi |
Area of interest. Spatial represntation as shapefile, featureclass, or featureset. |
---|---|
splitFeatures |
Boolean switch that specifies whether to treat all features in the spatial data as one
feature or to treat each feature individually . If |
fieldName |
If |
fieldName |
Categorical field for each unique part in a multipart featureset |
caladapt-py
has the ability to store copies of objects downloaded
from Cal-Adapt. An example of this would be the source rasters in netcdf format and tabular data
queried using user defined AOI. Using this function you can easily create a WKT representation of
yourAOI for use in querying the Cal-Adapt API.