Is it possible to offset a line by a fixed amount using JSON

593
1
Jump to solution
08-26-2019 12:51 PM
deleted-user-fqyqAU-GSPHt
New Contributor II

I would like to drive my route and collect sidewalk that is a fixed distance from my vehicle.

1 Solution

Accepted Solutions
JohnathanHasthorpe
Esri Regular Contributor

Hi Nancy

This functionality is not currently supported in the app, but we would love to hear your use case.

For the time being, if you want to apply an offset to your captured data, you would need to capture the offset and direction as attributes and then use them as the basis of a post-processing operation.

For example, you could have a button for 5m left and a button for 5m right. Capturing the lines would populate the Side field with Left or Right and the Offset field with 5. If you then updated a direction field using the direction of travel variable, you would have all you need to calculate the offset. 

In ArcGIS Pro, you could calculate the offset direction as a new field. If the direction captured in the direction field was 0 degrees (North) then:

- A Left offset would be 0 + 270 = 270

- A Right offset would be 0 + 90 = 90

(If the answer equals 360 or more, then you would just need to minus 360 from the answer)

You will now have all the required inputs for the following tool:

Move a feature to a specified location—ArcGIS Pro | ArcGIS Desktop 

Tip:

To make the processing process easier. When collecting the lines, make sure that you stop and start lines when you reach an intersection or junction. Especially if you are changing direction.

Thanks

John

View solution in original post

0 Kudos
1 Reply
JohnathanHasthorpe
Esri Regular Contributor

Hi Nancy

This functionality is not currently supported in the app, but we would love to hear your use case.

For the time being, if you want to apply an offset to your captured data, you would need to capture the offset and direction as attributes and then use them as the basis of a post-processing operation.

For example, you could have a button for 5m left and a button for 5m right. Capturing the lines would populate the Side field with Left or Right and the Offset field with 5. If you then updated a direction field using the direction of travel variable, you would have all you need to calculate the offset. 

In ArcGIS Pro, you could calculate the offset direction as a new field. If the direction captured in the direction field was 0 degrees (North) then:

- A Left offset would be 0 + 270 = 270

- A Right offset would be 0 + 90 = 90

(If the answer equals 360 or more, then you would just need to minus 360 from the answer)

You will now have all the required inputs for the following tool:

Move a feature to a specified location—ArcGIS Pro | ArcGIS Desktop 

Tip:

To make the processing process easier. When collecting the lines, make sure that you stop and start lines when you reach an intersection or junction. Especially if you are changing direction.

Thanks

John

0 Kudos