This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

JOSM MapPaint style that shows/renders the age/“last modified” for objects?

1
1

I'm looking at an area and I see some roughly drawn buildings, and I'm going through them one by one seeing which I can improve. Many were mapped in 2011, and we have better aerial imagery now. However I have to manually open up the history window to confirm this.

It would be much easier if I could enable a MapPaint style in JOSM which would render how old an object is. Some little text on/beside objects which shows the age/year of last modification.

Does such a JOSM style exist?

asked 16 Jan '17, 20:27

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

edited 08 Dec '18, 15:13

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554


2 Answers:

1

workaround: what about using Time-dependent JOSM search parameters? see https://wiki.openstreetmap.org/wiki/JOSM/Search_function#Time-dependent

Search for type:node timestamp:/2012-01-01 and see which nodes are selected then. I guess that with some advanced syntax one also could only search nodes which belong to a building.

The list of available map styles is at https://josm.openstreetmap.de/wiki/Styles (or inside your JOSM).

answered 16 Jan '17, 20:45

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 16 Jan '17, 20:57

1

There is no mappaint style. Afaik it is not possible to read the timestamp via mapcss atm. However you could try this plugin: https://github.com/Rub21/osm-obj-info It displays the timestamp of the selected object.

Note that this is always the date when the object was last modified. You can't see the date of first creation as this would require to download the full history of every object. (Which is done when displaying the history window CTRL+H)

Also note that if someone adjusts the shape of a building usually only the nodes are touched and this will not be reflected in the history of the way.

answered 11 Apr '17, 21:36

Klumbumbus's gravatar image

Klumbumbus
5431119
accept rate: 8%

1

OK, a bit hacky mappaint style could be realized via the josm serch function, e.g.:

way[JOSM_search("timestamp:/2013")] { width: 3; color: red; }

display all ways with old last modification date in red. could be extended for nodes too. for mapcss syntax see https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation

(11 Apr '17, 21:46) Klumbumbus

Source code available on GitHub .