Monday, 23 September 2019

coordinate system - Lat/Lon point transformation/offset on arbitrary segment



I'm looking for something very similar to those GIS questions: Algorithm for offsetting a latitude/longitude by some amount of meters, How to convert (geodetic pose + cartesian offset) to geodetic position, Increment GPS coordinates by a certain distance given in meters [duplicate] and Quick way to determine if facing a given lat/lon pair with a heading, but I cannot get my head around to combine them for my specific question:


The most relevant would be the first one, but it refers to a specific vector/heading offset. What I'm looking for is a way to calculate an offset of some meters (less than 200 meters) for a point A, on the segment defined by this point A and another point B, having less than 1km of distance between them.


How can I apply the first answer of SE GIS with a calculation of heading (like the one in the last answer) in order to transpose point A for 100 meters in the direction of B?



Answer



Actually I've managed to find a workaround even though I'm not sure if it makes sense.


By using the information from here I've first calculated the bearing between the two points and then used the result to calculate the Destination point given distance and bearing from start point.


Searching a little bit more I've seen that this is a pretty common solution.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...