I am curious if anyone out there has put together a workflow for inspecting public sidewalk infractions. I am trying to do the same, using Field Maps, for our local municipal engineering department. Can anyone recommend a way to extract street address information from a supplemental parcel layer and automatically apply it to new points, representing infraction locations, as they are captured?
Thank you in advance!
Hi Greg. In order to extract street address information from a parcel layer you can use an Arcade expression on the address field(s) in your form for your point layer. Depending on if the point falls within the parcel polygon or outside of it, you would need to create a slightly different expression. I can provide a sample expression for you if it would be helpful, just let me know which case (inside or outside the parcel) you are interested in.
Hi Kerri,
A sample expression would be extremely helpful: The vast majority of our sidewalks fall just outside of the parcel boundaries. Thank you and Happy New Year!
Regards,
Greg
Hi Greg,
Here is an example for you where we are creating a buffer around the point layer and then finding the nearest town which is being pulled from the parcel layer (this could be used on the address field or any other field).
//Call the parcel layer as a feature set
var town = FeatureSetByName($map, "Parcels");
//Create a variable for the nearest parcel to the sign using a 50ft buffer
var nearestTown = First(Intersects(town, BufferGeodetic($feature, 50, "feet")));
//Return the name of the nearest town
return nearestTown.SITUS_COMMUNITY;
Please let me know if you have any questions.
Kerri