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?

asked 13 Jun '14, 19:29

Hareen's gravatar image

Hareen
1111
accept rate: 0%

closed 17 Jun '14, 16:30

Pieren's gravatar image

Pieren
9.8k2083157

2

Presumably this refers not so much to OSM as to some web framework or other?

(13 Jun '14, 19:32) SomeoneElse ♦
1

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.

(13 Jun '14, 19:37) Hareen

Which web framework are you using?

(13 Jun '14, 19:38) SomeoneElse ♦
1

.Net (Asp.Net) or Java script.

(13 Jun '14, 19:43) Hareen

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?

(13 Jun '14, 19:47) SomeoneElse ♦

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.

(13 Jun '14, 20:02) mmd
1

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.

(13 Jun '14, 20:43) Hareen

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.

(14 Jun '14, 02:08) aseerel4c26 ♦
showing 5 of 8 show 3 more comments

The question has been closed for the following reason "Question is off-topic or not relevant" by Pieren 17 Jun '14, 16:30

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×31

question asked: 13 Jun '14, 19:29

question was seen: 4,041 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