Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expression] Add line_interpolate_point_by_m and line_locate_m expressions (Request in QGIS) #9242

Closed
qgis-bot opened this issue Sep 9, 2024 · 0 comments
Labels
Milestone

Comments

@qgis-bot
Copy link
Collaborator

qgis-bot commented Sep 9, 2024

Request for documentation

From pull request qgis/QGIS#58483
Author: @nirvn
QGIS version: 3.40

[expression] Add line_interpolate_point_by_m and line_locate_m expressions

PR Description:

Description

This PR adds two new functions to our expression engine to work with M values along line strings:

  • line_interpolate_point_by_m: returns a point geometry of a matching m value interpolated along a line containing an m dimension.
  • line_locate_m: returns a distance from the beginning of a line where a matching m value was found.

These two functions coming in extremely handy when working with temporal data, e.g. a linestring representing a GPS track where the M value represents the epoch value.

Using this function alongside of temporal controller makes for beautiful animations that were previously harder to unlock:

vokoscreenNG-2024-08-26_11-56-29.mp4

Commits tagged with [need-docs] or [FEATURE]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant