2. OpenHistoricalMap.org
● Very modest, really...
●
● A map of everything that has ever existed.
● It's putting a time slider on the world
● It's the worlds most out of date map.
32. Editing
● JOSM – change URL
●
● Embedded iD editor
●
● Tags – start_date end_date
● (note of source map would be nice)
33. Simple?
● see frankies presentation
● cart before horse?
● osm way- good enough is best.
● Led by contributors not historical GIS “experts”
● Do whatever and let the rendered sort it out!
44. OSM2PGSQL
--tag-transform-script
ohm_tags_transform2.lua
-- dates have to be ISO 8601 format YYYY-MM-DD
-- since postgres only goes as far back as 4713 BC, we'll store the
year in a new key
if (keyvalues["start_date"] ~= nil ) then
year,month,day = nil
year = string.match(keyvalues["start_date"], "^(-?%d+%d%d%d)")
if (year ~= nil) then
y, month = string.match(keyvalues["start_date"], "^(-?%d+%d%d%d)-
(%d%d)")
if (month == nil) then
month = "01"
day = "01"
else
y, m, day = string.match(keyvalues["start_date"], "^(-?%d+%d%d
%d)-(%d%d)-(%d%d)")
if (day == nil) then
day = "01"
end
45. --because I suck at patterns!
year = string.sub(year, 0, 4)
month = string.sub(month, 0, 2)
day = string.sub(day, 0, 2)
end_date = year.. "-" .. month .. "-"..day
keyvalues["end_date"] = end_date
keyvalues["end_date_year"] = year
else
OSM2PGSQL
--tag-transform-script
ohm_tags_transform2.lua
46. Maps
Database
Create view
create view planet_osm_line_2008 as
select * from planet_osm_line
where start_date_year = 2008;
insert into geometry_columns...
'planet_osm_line_2008'
47. Maps
CartoCSS / Mapnik project uses views
"Datasource": {
"type": "postgis",
"table": " (select way,waterwayn
from planet_osm_line_2008 where waterway in
('stream','drain','ditch') and (tunnel is null or
tunnel != 'yes') ) as water_lines_casing",
"extent": "-20037508,-
19929239,20037508,19929239",
"key_field": "",
"geometry_field": "way",
"dbname": "ohm_gis"
},
49. Future
● Overpass to do date time queries
● iD filtering - regex on year? time slider
● mod_tile review to propagate down a date range
to tile set
● Use Vector tiles and just use styles for date
queries?
● Front end js vector rendering?
● Mapwarper / wikimaps UI improvements
50. Join In & hack day activites?
● Overpass to do date time queries
● More map layers (19C, 18C, Roman)
● iD filtering - regex on year? time slider
● mod_tile work review
● Use Vector tiles and just use styles for date queries?
● Front end js vector rendering
● Mapwarper / wikimaps UI improvements
OpenHistoricalMap.org
#ohm on irc.oftc.net
https://lists.openstreetmap.org/listinfo/historic
https://github.com/openhistoricalmap/