0

I want to get OSM data after some timestamp - in other words the last records after a certain timestamp. I have downloaded the osm file of the area. I went through the osmosis documentation but could not find a way to filter it by time. The result should be same as when we use the timestamp-argument. Well how to do that:

  • I could use the overpass but the area is large and overpass timed out many times
  • I could use the osmconvert-tool (cf the manual: m.m.i24.cc/osmconvert.c )

Some of the following statements might be useful for the task:

 "--timestamp=<date_time> add a timestamp to the data\n"
 "--timestamp=NOW-<seconds> add a timestamp in seconds before now\n"

What I have tried is the following;

./osmfilter austria-latest.osm --keep="$key=$school" |
./osmconvert - --all-to-nodes --csv="@id @lat @lon @timestamp $key name" --csv-headline |

but this fails. How to get the data out of the osm-pbf-file. Should I use the statements drop! or should i name a certain time from timestamp to timestamp!?

Dr.Avalanche
  • 1,944
  • 2
  • 28
  • 37
user3730786
  • 45
  • 1
  • 7

2 Answers2

1

Since version 0.7.50 Overpass API provides a way to query for data, which changed since a given timestamp or in a given timeframe. It is even possible to restrict the change analysis to certain tags (or filter criteria). Please check the Overpass API Wiki page for more details on "diff" and "adiff" keywords.

Working with Overpass API ina way is much more convenient than trying to process a full planet history, which takes at least 35GB to download and requires more complex post-processing.

mmd
  • 3,423
  • 1
  • 16
  • 23
0

You want to process OSM history planet (extracts): https://wiki.openstreetmap.org/wiki/Planet.osm/full

MaM
  • 2,043
  • 10
  • 20