Hi !
is there a way to pass the location of a line in collector "Aurora" to Survey123 in the same way of passing the location to a geopoint in survey123 ?
Thanks to great thread https://community.esri.com/groups/survey123/blog/2016/07/30/understanding-survey123s-custom-url-scheme from https://community.esri.com/people/ichivite-esristaff and https://community.esri.com/people/JTedrick-esristaff
Hi Marc-Andre,
I had a bit of time to work this out - this should provide the line. There are some issues with more complex lines, as they can consist of multiple parts:
var geom = Geometry($feature); var outparts = []; var counter = 0; for (var p in geom.paths) { var thispath = geom.paths ; for (var pt in thispath) { var ptstr = Concatenate(thispath[pt].y, " ", thispath[pt].x); outparts[counter]= ptstr; counter = counter + 1; } } return Concatenate(outparts, ";");
@JamesTedrick - I would love your feedback on the reverse of this question I just posted here: https://community.esri.com/t5/arcgis-survey123-questions/javascript-snippet-to-get-a-vertex-from-a-geotrace/m-p/1408192
Perfect !
Arcade expression combined with a WGS84 basemap really did the trick !!!
Thank you James
Thanks James
What would be the syntax if we want to pass a polygon geometry from Collector to a Geoshape question in Survey123?
Cheers
Chris
Copying the full geometry is a little more complicated- to begin with geotrace support is in beta in Survey123. Survey123 will want the incoming coordinates to
y1 x1;y2 x2;y3 x3;...
So you would need an Arcade function to process the shape vertices into this format.
Hi James,
thanks for your quick response.
I would like to "copy" the geometry from collector to the geotrace in Survey123.
I have a map containing roads and I want to start a survey on a specific segment.
So from collector, I pass via arguments certain fields that I want from Collector to Survey via the survey123s-custom-url-scheme. E.g.: Road name, owner,...
We currently have multiple maps and surveys that use custom url scheme with "point" entities. So the XY coordinates are pass to the survey in the geopoint.
So, I would like to do the same thing but with a line in collector to a geotrace in survey123.
Is it currently possible and supported ?
Regards,
What aspect of the line do you want to bring into Survey123? I would take a look at the Geometry functions in Arcade Function Reference | ArcGIS for Developers - you could include these as an attribute expression.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.