Skip to content

Calculate the distance (and coordinates) to a point #85

@hhkaos

Description

@hhkaos

Check existing issues

Execution profile

Popup

Is your feature request related to a problem? Please describe.

I would like to be able to calculate the closest distance, and coordinates from the selected point to other features (point, line or polygon) in another layer.

Describe the solution you'd like

I would like to display the distance & coordinates.

Describe alternatives you've considered

Using Arcade geometry functions like buffer, distance, the nearest coordinate and nearest vertex this is achievable.

Other options would require custom code for each application.

Additional context

This community question&answer with a solution for calculating distances between two points.

To build this I would recommend using feature layers from the Living Atlas.

If needed, documentation & a playground about geometric calculations can be found in the developer guide.

Note: I have also noticed there are related expressions within the attribute_rule_calculations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions