I have list of lat longs and I wanted to create parallel line (polyline) for the list of lat longs. How can I do this?
showing 5 of 8
show 3 more comments
|
NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum
I have list of lat longs and I wanted to create parallel line (polyline) for the list of lat longs. How can I do this?
showing 5 of 8
show 3 more comments
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Question tags:
question asked: 13 Jun '14, 19:29
question was seen: 4,154 times
last updated: 17 Jun '14, 16:30
NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum
Presumably this refers not so much to OSM as to some web framework or other?
Yes, I am looking for an algorithm to calculate parallel lat longs. I did up to some extent by creating circle for each point and if I take 0 degree point in circle I could able to generate parallel line but the problem is when the route is having sharp turnings then it is failing.
Which web framework are you using?
.Net (Asp.Net) or Java script.
Er, that's two (very different) programming languages. Perhaps it would be worth taking a step back and explaining in a bit more detail what you are trying to do?
Assuming this is a one time exercise, you could convert your points to a poly file and use JOSM to create a parallel line. Someone could probably step in here and give some more details / pointers.
I am trying to generate geofence for the route. I've written code in c# .Net to generate circle for each lat long, now I need to consider two points on the circle (one for top line and another for bottom line). with this I will build polygon around the route.
Now, I need to calculate the angle on a circle to consider points.
And how is this related to OSM? This sounds like it would be better suited on some geoinformatics or devolpment stackexchange or something but not on this osm help site.