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

1
1

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

Thavox
39226
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

bastik
6513919
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.

Thanks!

(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).

#!/bin/sh

out=gridlines.gpx
echo '<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="" version="1.1"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     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
done
for i in $(seq -179 180); do
    echo "<trkseg><trkpt lat=\"80\" lon=\"$i\"></trkpt><trkpt lat=\"-80\" lon=\"$i\"></trkpt></trkseg>" >> $out
done
echo "</trk></gpx>" >> $out
permanent link

answered 30 Nov '11, 10:45

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
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

Ghanian
1
accept rate: 0%

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:

×622
×69
×28
×11
×10

question asked: 28 Nov '11, 21:37

question was seen: 8,556 times

last updated: 26 Feb '13, 12:25

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