I am a newbie to notebooks and I am trying to write a program which uses aggregation to find out how many points are within a polygon and append that information to a field in the same polygon. I used the aggregate points function and used it without "output_name" parameter. It ran successfully and returned a feature collection. Now, I have no clue on how to access the feature collection. Screenshot is attached. I would appreciate any help.
Hi Anish!
You can add the result to a map widget for visualization–
m = gis.map()m
m.add_layer(auditcountmru)
You can also convert the output to a Spatially Enabled DataFrame–
import pandas as pdauditcountmru_sedf = pd.DataFrame.spatial.from_layer(auditcountmru.layers[0])
Here is a sample notebook that might be helpful!
Please let me know if that works for you.
Thanks!
Lingtao
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.