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='')

Arguments

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 True, then you must specify a field to use to seperate the data into individual features.

fieldName

If splitFeatures = True, then the field to use to seperate the data into individual features.

fieldName

Categorical field for each unique part in a multipart featureset

Details

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. 

See also