New function suggestion: geof:project to move a point a distance in a direction
Opened this issue · 1 comments
SimonBin commented
See https://postgis.net/docs/ST_Project.html
Returns a point projected from a start point along a geodesic using a given distance and azimuth (bearing).
Example:
SELECT * {
values ?berlin {
"Point(13.383333333 52.516666666)"^^geo:wktLiteral
}
# From Berlin to Trzcińsko-Zdrój
bind(geof:project(?berlin, 96259, "1.018111"^^xsd:double) as ?trzcinsko)
# check if we arrived at the right place:
#bind(geof:azimuth(geof:lat(?berlin),geof:lon(?berlin),geof:lat(?trzcinsko),geof:lon(?trzcinsko)) as ?azimuth) .
#bind(geof:distance(?berlin, ?trzcinsko, uom:metre) AS ?distance) .
}
jabhay commented
We should consider this in the context of general movement of features.