[josm-dev] Save OSM file without information about changed data
jamesmikedupont at googlemail.com
jamesmikedupont at googlemail.com
Sun Dec 13 13:34:43 GMT 2009
On Sun, Dec 13, 2009 at 1:57 PM, Jonas Krückel <osm at jonas-krueckel.de> wrote:
> Hi,
>
> I've loaded a local .osm file into JOSM and deleted some relations. Now I want to save this file, but without the information about what I have edited. I don't want to have the action= tags in the .osm file and I also don't want to have any id's changed etc. How can I save it this way? I'm going to process the file locally with other tools and therefore don't need and want this extra information.
If you made the edits in josm then you will get the modified flags.
you can just strip them out with a little command line magic.
sed -e 's;action='delete';;g' -e 's;action='modify';;g' test.osm
that will strip out the delete and modify action.s from an osm file.
mike
More information about the josm-dev
mailing list