[OSM-dev] Please don't fiddle with JOSM internas ; -) (was: new planet.rb and planet2mysql.rb)
Immanuel Scholz
immanuel.scholz at gmx.de
Fri Aug 4 09:43:42 BST 2006
Hi,
> I can add an export of an fix-missing-nodes.osm file to osm-check.
> It would have the modified tags set and you can then load it into josm
> check the result and upload it to the server again.
This is risky, since you would either have to use the non-standard JOSM
exensions (the action="modified"-attribute you are mentoning) to tell JOSM
about your intention to change something or you would need to manipulate
the timestamp of the records (faking a newer timestamp) to get JOSM to
update existing data on import.
I do not recommend either way, since the merging and update mechanism in
JOSM is not as easy as I like them to be (and yielded many bugs in the
past...). The chance that this messes something up instead of fix things
is not so bad...
Another way could be to export a file only containing the id's od the
objects and load it via the selection search (Yes, you can enter URL's in
the selection search box! ;)
e.g.:
<osm version="0.3" generator="broken-segments-to-delete.pl">
<segment id="23" />
<segment id="42" />
<segment id="123" />
...
</osm>
When they are selected, you can use the JOSM delete action to just delete
the stuff.
Drawback: You would have to have the whole planet loaded.. 8-)
Ciao, Imi
PS: JOSM would make sure, that no segment is deleted that is still part of
a way. The current server has some quirks for this attempt too. If you
inject the data via your script, make sure not to violate this constraint.
More information about the dev
mailing list