Select to view content in your preferred language

AGOL Notebook Webtool Input Feature Set is Empty

119
0
a month ago
Labels (1)
MaryEllenPerko
Occasional Contributor

Hi.  I need some help.  I'm developing a notebook webtool in AGOL and I cannot get the input "Feature Set" to work properly.  I'm struggling to find anything definitive about how to handle a Feature Set input variable so it can be used in analysis (e.g. clipping) online.

If it matters, I'm using the webtool in an AGOL web map that contains two small polygon feature layers.  I also plan to use it in an Experience Builder app.  The feature layers contain a single polygon each.

The input parameter is defined as a Feature Set , named InputStudyAreaFL.  

Selecting one of the feature layers sends a dictionary to the webtool.  However, using "list(InputStudyAreaFL.items()))" shows me that the dictionary is not empty, but it doesn't contain any info.

      [('displayFieldName', ''), ('fieldAliases', {}), ('geometryType', ''), ('spatialReference', {}), ('fields', []), ('features', [])]

Using  InputStudyAreaFS = FeatureSet.from_dict(InputStudyAreaFL)  produces a valid Feature Set but it has no features.

This doesn't produce a valid FeatureSet at all:

InputStudyAreaFC = FeatureCollection(InputStudyAreaFL)
InputStudyAreaFS = InputStudyAreaFC.query

I would appreciate anyone's help with this or pointing me to online resources.  (I should add that I do not have an advanced license to have access to arcpy.)

Thanks,
Mary Ellen

0 Kudos
0 Replies