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

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

escrei1584
16113
accept rate: 0%


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

https://josm.openstreetmap.de/wiki/Help/RemoteControlCommands

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

maxerickson
12.7k1083176
accept rate: 32%

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

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:

×710
×622

question asked: 24 Apr '18, 15:13

question was seen: 1,376 times

last updated: 25 Apr '18, 09:48

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