Line tracking in QuickCapture - Populate length measurements

576
5
Jump to solution
05-25-2021 08:48 AM
Henry
by
Occasional Contributor II

Hi,

Our organization is planning on using QuickCapture more and more for some of our surveying tasks.

Some of this is probably set up in the Hosted Feature Layer beforehand, but is there a good workflow for getting QuickCapture to record lines and populate the length in feet and miles? I know that the feature automatically records the Shape_Length property but if there's a way to track the distance without having to separately calculate geometry I would love to know.

Any assistance or guidance would be much appreciated. We're planning on recording lines for roadside surveys of invasive plants, and being able to get a length would be immensely helpful.

Thanks!

Henry
0 Kudos
1 Solution

Accepted Solutions
Mandy_Li
Esri Contributor

Ah ok, 10.8.1 has QuickCapture version 1.5, but these variables were added to QuickCapture at version 1.7. As a workaround, you can specify these variables manually.

  1. In the feature layer, delete the Double field and create a field with the String type.
  2. In the QuickCapture project, manually type ${lengthM} for the new field.
    XiaoxuLi_0-1621973039201.png
  3. Save the project. 
  4. Make sure the QuickCapture app is up to date on your phone, test this by capturing a line and sending the record.
  5. Now the feature layer should have the distance value populated on this new field.

Here are the other variables you may need, use a dollar sign $ in front, and curly bracket {} around the variable name, so the app knows it's a device variable.

 

Let me know if this works for you.

 

View solution in original post

5 Replies
Mandy_Li
Esri Contributor

Hi Henry,

The answer is yes. With QuickCapture variables, you can calculate the start and end time of the captured line/polygon, length of the line/polygon in meters, miles, or kilometers, and area of the captured polygon in square meters, square miles, or square kilometers. 

To do this, you will first add a field for the line feature layer, e.g. add a field "distance", field type is Double. Back to your QuickCapture project, assign the corresponding device variable to this new field (see screenshot below). Save and download the project. When capturing the line feature, the app will calculate the distance info and send it back to the feature layer later on.

If needed, add more fields to the feature layer and assign device variables from your QuickCapture project. 

XiaoxuLi_0-1621966050932.png

 

0 Kudos
Henry
by
Occasional Contributor II

Hi XiaoxuLi,

Thanks for the fast response. I've added a Double type field to the feature service, however the option for the Device variable is currently greyed out. When I hover over the greyed out device variable option pop-up text displays "No variables compatible with this field" even though the field is Type Double.

Henry_0-1621968173754.png

Henry_2-1621968333225.png

I am using Enterprise 10.8.1 if that's relevant at all.

Henry
0 Kudos
Mandy_Li
Esri Contributor

Ah ok, 10.8.1 has QuickCapture version 1.5, but these variables were added to QuickCapture at version 1.7. As a workaround, you can specify these variables manually.

  1. In the feature layer, delete the Double field and create a field with the String type.
  2. In the QuickCapture project, manually type ${lengthM} for the new field.
    XiaoxuLi_0-1621973039201.png
  3. Save the project. 
  4. Make sure the QuickCapture app is up to date on your phone, test this by capturing a line and sending the record.
  5. Now the feature layer should have the distance value populated on this new field.

Here are the other variables you may need, use a dollar sign $ in front, and curly bracket {} around the variable name, so the app knows it's a device variable.

 

Let me know if this works for you.

 

View solution in original post

Henry
by
Occasional Contributor II

Tested it out - worked great! Thanks!

Just out of curiosity, are there no variables for collecting the distance in feet? I didn't see it listed as a variable in the links.

Henry
0 Kudos
Mandy_Li
Esri Contributor

Hi Henry, right now it's just meter, mile, and kilometer as the calculated distance units.