Hi OpenStreetMap community,

I've been working with OpenStreetMap and JOSM recently, alongside with Pyosmium and other Python libraries, and using a local copy extracted from the OpenStreetMap webpage.

My goal is to get my actual position (I already have my coordinates lon and lat), and create a new node in that position. I have achieved this step using Pyosmium and modifying the .osm XML file.

The problem is that I want to keep repeating this step (getting new position and modifying the node previously created with the new coordinates), and I would like to have the possibility to see it in an editor such as JOSM, but it does not updates or reloads the file once I have changed it using a Python script. Do you know if there is any other editor/display that allows me to do that, or if there is any option I can manage to do so with JOSM? Right now, the only solution I have achieved is to open the file again inside JOSM to reload the content of my .osm file.

Just to clarify, I dont have any intention to update the OpenStreetMap database, I'm just working locally with the .osm file.

Thank you so much for your help!

asked 24 Apr '18, 15:13

escrei1584's gravatar image

accept rate: 0%

You could look and see if any of the remote control commands work for what you want to do:


I don't see a way to delete a point, but maybe just creating a new node at each update works for your purpose?

Otherwise I expect you'd have to make a JOSM plugin. Your usecase at least sounds similar to https://wiki.openstreetmap.org/wiki/JOSM/Plugins/LiveGPS

permanent link

answered 24 Apr '18, 20:22

maxerickson's gravatar image

accept rate: 30%

Thank you so much! I managed to get it working using the remote control commands and adding the node each time to JOSM.

(25 Apr '18, 09:48) escrei1584
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: 24 Apr '18, 15:13

question was seen: 578 times

last updated: 25 Apr '18, 09:48

powered by OSQA