I would like to show coordinate lines (both lat. and long.) in josm. Is this possible?

It would be neat to have them as a raster layer, like in some graphics programs. (hope the words "coordinate lines" and "raster" are correct for what I'm looking for ;)

asked 28 Nov '11, 21:37

Thavox's gravatar image

accept rate: 0%

edited 29 Nov '11, 20:22

I'm not aware of any feature or plugin that displays grid lines directly.

As a workaround, you could use a *.osm or *.gpx file that contains these lines and keep it open as a background layer. I know, some people use this technique to coordinate work in a group.

You probably need basic programming skills, to create this file, or have someone do it for you.

permanent link

answered 28 Nov '11, 22:07

bastik's gravatar image

accept rate: 41%

edited 28 Nov '11, 22:08

It was my intent to organize my own work. With your comment about the .osm-file fresh in mind I just made a osm-file with a handmade simple grid and it works super! Even better than cordinate lines since I can adjust the osm-file to reflect what is finished.


(06 Dec '11, 16:45) Thavox

Interesting idea. Here's a code to generate such a file (new answer instead of comment, as it's too long for a comment). Just save it as an executable and run it, it'll generate a "gridlines.gpx" file. Should work in *nix; sorry windows users, you'll have to work a bit more for this one).


echo '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="" version="1.1"
     xsi:schemaLocation="http://www.topografix.com/GPX/1/1 ">http://www.topografix.com/GPX/1/1/gpx.xsd">
<trk><name>Grid lines</name>' > $out
for i in $(seq -80 80); do
    echo "<trkseg><trkpt lat=\"$i\" lon=\"-179\"></trkpt><trkpt lat=\"$i\" lon=\"180\"></trkpt></trkseg>" >> $out
for i in $(seq -179 180); do
    echo "<trkseg><trkpt lat=\"80\" lon=\"$i\"></trkpt><trkpt lat=\"-80\" lon=\"$i\"></trkpt></trkseg>" >> $out
echo "</trk></gpx>" >> $out
permanent link

answered 30 Nov '11, 10:45

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
accept rate: 19%

Thank you for the script. Thats a nice workaround. How can I give each square a visible number. I want to do a little private list. For example. Square 47335 is done, square 47336 is open.

permanent link

answered 26 Feb '13, 12:25

Ghanian's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 28 Nov '11, 21:37

question was seen: 6,110 times

last updated: 26 Feb '13, 12:25

powered by OSQA