Select to view content in your preferred language

Help with Survey123 Connect Calculation — Summarize Nearby Features Inside Buffer Polygon

262
1
04-09-2025 12:37 PM
anna_7
by
Emerging Contributor

I’m working in Survey123 Connect and need help creating a calculation based on a user’s current location.

I have a map published in ArcGIS Pro with two key layers:

  • Land Use Area – Polygons with various types (e.g., residential area, commercial area, industrial area, etc.). The attribute table contains many fields, but I only need the following:
    • Feature_ID
    • Feature_Type
    • Category
    • Area
  • Buffer Layer – A 1000-foot buffer (Solid buffer) polygon surrounding the boundaries of the land use area

What I want to achieve:

In my Survey123 form, I want to use the geopoint (user's location) to:

  1. Check if ANY Feature ID is inside a buffer polygon.
  2. If it is, retrieve all the features that lie inside the polygon and intersect that buffer.
  3. Display a summary that lists all the land use area within that buffer:
    • Feature Type(s)
    • Area
    • Category
    • Feature ID(s)

Ideally, the result would look like this in a text or note question:

Feature ID: 123456, Type: Residential, Category: Urban, Area: 50.5

Feature ID: 789012, Type: Industrial, Category: Suburban, Area: 120.8

What I’ve tried:

I know about pulldata("@layer") and intersects, but I’m not sure how to query two layers in sequence (i.e., check the buffer first, then query features inside the buffer polygon) .

Has anyone done something similar — querying multiple layers and returning summarized attributes for all features inside a polygon? I'd really appreciate a sample expression or advice on the best approach.

Thanks in advance! @ IsmaelChivite

0 Kudos
1 Reply
Chris3030
Emerging Contributor

Hi @anna_7 , how important is it for this calculation to happen at the time of the form being filled out/submitted? I worked on a survey last year that had to take a user's geoshape input and intersect it with another feature layer to return set of points, but I didn't find a way to do this within the XLS form. I had an ArcGIS notebook set up that would take new survey submissions and then run the processing I needed w arcpy/the python api. Those calculated values you want in the note field could be added to the feature layer in this process I think. I'd be willing to help out more w scripting but I need a bit more information on what exactly you're trying to do. Let me know!

0 Kudos