I want to get data after some The result should be same as when we use the
asked 15 Nov '13, 04:54 amritkarma edited 18 Nov '13, 04:41 |
2 Answers:
In JOSM, instead of selecting new objects with "timestamp:sometime" and copy them to a new layer loosing their Id's, you could try the opposite: select old objects with "-timestamp:sometime" (the "-" is the reverse option) and delete all of them. Thus, only the most recent elements are staying and you preserve the Id's. But I'm not able to test this method right now, I'm not sure if it works. answered 18 Nov '13, 14:47 Pieren |
For anyone looking to do this on a larger dataset, my approach would be to load the data into PostgreSQL
Then drop everything that was last touched before / after your desired horizon:
Then dump the data to PBF again:
answered 10 Aug '15, 00:46 mvexel |
They would not be deleted immidiately. They would be marked for deletion and don't show up in josm but they will still exist in the osm file.
Is this a problem? You could just ignore any element with
action='delete'
when parsing the XML file.JOSM can also discard data altogehter ("purge") instead of flagging it as deleted.