Constraining a Geopoint answer to a given area.

6237
12
Jump to solution
10-28-2022 03:23 PM
RogerAsbury
Frequent Contributor

I appear to be full of Survey123 questions lately. 🙂

Given a survey with a map that has a layer defining a service area (example below) how can you confine answers (map points) that are within that polygon shape? What if there are multiple unconnected polygons? I've seen a few answers for creating single, rectangular constraints, but can't seem to find info on polygons. And I've seen nothing on creating multiples, if you have several, unconnected, areas.

Road service areas.Road service areas.

 

--
Roger Asbury
Analyst/Programmer - Fairbanks North Star Borough
12 Replies
DougBrowning
MVP Esteemed Contributor
0 Kudos
BrianShepard
Regular Contributor

I have, it didn't help me. All of the examples I've come across use a string field to specify a polygon within a feature layer to use for the constraint. The layer I'd like to use has a single polygon and no string fields. I've tried using the OBJECTID value, but get an error that it's not a string. 

0 Kudos
DougBrowning
MVP Esteemed Contributor

You may be able to check for empty list.  If it finds nothing its empty and set a constraint on that.  Also could try making pulldata field an int. 

0 Kudos