NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Is there any way to create paths from a list of coordinates directly, through editing the XML files, or otherwise? The KML data in rowmaps, contains public rights of way info and is released under the OS OpenData Licence. This path, for example, is assigned coordinate data {-1.92871,53.35826; -1.92859,53.35825; -1.92848,53.35821; -1.92834,53.35814; -1.92792,53.35784 -1.92787,53.35780;} in the KML file.

asked 18 Aug '14, 07:37

u003f's gravatar image

u003f
351131522
accept rate: 0%

edited 19 Aug '14, 01:03

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


All copyright issues aside (but please be sure ...) and all ignoring the downsides of not surveying (if that would happen) …

… one simple option (without a intermediate KML step) to convert a list of coordinates into a way is to use the "Lat Lon Tool" (ctrl+shift+L) of the JOSM utilsplugin2:

In the case of the example list above some preparation is needed:

  • You would just need to convert the ";" into newlines as this tool expects each point in a new line (for example in a text editor find ";" replace by the escape sequence or regular expression "\n").
  • And it seems that you need to swap the coordinates (or append N and W)(e.g. by regular expression replacement ("[^,]*),(.*$)" → "\2,\1").

Paste into the JOSM tool, select "way" and done.

The are likely many many more options. For example if you would do some simple scripting to create a OSM XML file manually.

permanent link

answered 19 Aug '14, 00:59

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 19 Aug '14, 16:29

Given that you cannot use the data due to the license in the first place it doesn't seem to be a sensible question at this point in time, but yes, naturally it is possible to convert a list of coordinates to a way. However what you are proposing is an import, and you need to follow http://wiki.openstreetmap.org/wiki/Import/Guidelines

permanent link

answered 18 Aug '14, 08:14

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 18 Aug '14, 08:53

Thanks Simon. No I don't think an import isn't what I would have wanted, I meant editing on a path-by-path basis. Whilst not applicable for this data, is there a guide for how to add a way using a coordinate list? Thus far, my edits have been high-level point-and-click, but would be more comfortable with a lower-level approach.

(18 Aug '14, 16:58) u003f
2

You seem to hinted that you have the list in kml format? If yes you can create gpx tracks from the data and trace them or potentially convert directly to an OSM way.

As SK53 has pointed out surveying by actually walking/whatever is better, not the least because then you can collect so much more additional information which in the end makes the difference between OSM and other sources.

(18 Aug '14, 18:25) SimonPoole ♦

Potlatch 2 allows you to open a KML file as a vector background layer.

permanent link

answered 19 Aug '14, 06:59

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

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:

×352
×144
×16

question asked: 18 Aug '14, 07:37

question was seen: 7,177 times

last updated: 19 Aug '14, 16:29

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum