Extract coordinates for first and last vertex of a geotrace

328
0
03-16-2023 09:33 AM
DanielDery
New Contributor II

I am trying to extract the coordinates of the first and last vertices of a geotrace (mode=vertex).  

I think that the best solution is to use a custom Javascript function but I was not able to get it working. I did not find enough documentation on how to handle geotrace geometry in javascript for Survey123 Connect. 

Does someone know how to create such a function? Is there a work around?

typenamelabelcalculation
geotracetransectTransect 
decimalUTM_X_startUTM_X_startpulldata("@javascript","get_coordinates.js","getCoordinates_X_start",${transect})
decimalUTM_Y_startUTM_Y_startpulldata("@javascript","get_coordinates.js","getCoordinates_Y_start",${transect})
decimalUTM_X_endUTM_X_endpulldata("@javascript","get_coordinates.js","getCoordinates_X_end",${transect})
decimalUTM_Y_endUTM_Y_endpulldata("@javascript","get_coordinates.js","getCoordinates_Y_end",${transect})
0 Replies