Select to view content in your preferred language

Pull Data from Point Nearest to Polygon

338
0
08-11-2023 06:48 AM
ZachBodenner
MVP Regular Contributor

Hello,

I have a Survey where the user draws a polygon (geoshape question) and I want to automatically calculate the address of the nearest address point (or parcel, I'm open to configuration options) of the polygon. I've gotten this to work when running geopoint-on-polygon in Survey123 (as an example: pulldata("@layer", "getValueAt", "attributes.ADDRESS", "<referenced parcel web service>", ${location} whereby the point the user places grabs the address attribute from the polygon parcel layer). Is it possible to pull in data via a calculation or some other means from the nearest feature to the drawn geoshape polygon? I've tried adapting the above calculation but it doesn't seem to work.

 

Thanks!

0 Kudos
0 Replies