Hi I want to find all landuse=construction entities that were created over 2 years ago. I've looked at diff, adiff, changed etc. OverpassTurbo has 'newer' but not an equivalent 'older' it appears. All of these option work with their last modified date but I want it to be based on their created date. I'm unable to even find a 'created' attribute in an entities meta data. Does anyone have an example of what I require. Edit: For clarity, I want to return all existing landuse=construction entities that are older than two years. Cheers Dave F. asked 08 Dec '16, 18:40 DaveF |
You can achieve this in several ways with Overpass. For instance the changed predicate. I have used the difference between all Core bits of query (just for ways to keep simple):
answered 09 Dec '16, 22:30 SK53 ♦ |
Not exactly "before 2 years ago", but here is one "at a particular date, which can be 2 years ago". Depending on what you're looking for, that might work. answered 09 Dec '16, 01:19 SomeoneElse ♦ Thanks. I looked at 'date' but it appears to also return all entities which were landuse=construction, but have since had their tags amended. It also only goes back to 2012, which will not be far enough back in time for my future requirements. IMO 'date' is to generic a term. It should be more specific for it's detailed purpose. I've just checked: 'date' returns completely deleted entities. It definitely should be renamed.
(09 Dec '16, 11:29)
DaveF
1
If you want pre licence-change data, you're probably going to need to handle the old planet files yourself. With regard to "date" it's returning "the situation as of that date" - looks like it does what it says on the tin to me.
(09 Dec '16, 12:16)
SomeoneElse ♦
|
First filter a full-history file with osmfilter, then choose select all within 2 years with Osmium. But all change versions will be kept. answered 09 Dec '16, 00:41 Wetitpig0 I wish to use Overpass api or Preferably Overpass Turbo.
(09 Dec '16, 00:50)
DaveF
If they don't provide it you do not have any choice.
(09 Dec '16, 01:04)
Wetitpig0
I have never used Overpass API
(09 Dec '16, 01:05)
Wetitpig0
|
If "I want to find all landuse=construction entities that were created over 2 years ago" means "I want to find all landuse=construction entities THAT STILL EXIST that were created over 2 years ago" then it's actually much easier. do a binary chop in the node, way and relation list to find roughly the date that you're interested in, and search for nodes, ways and relations with ids less than that. That's probably doable with Overpass et al, and I'm sure that some of the links from here will explain how. Obviously this doesn't solve the "object X was issued a new id Y during editing", but it'll get most of what you want. answered 09 Dec '16, 12:22 SomeoneElse ♦ |
You need all versions of an entity?
I need landuse=construction entities, within a boundary box, that were created over 2 years ago. I'm not interested in how many times they've been amended.