<div dir="ltr">Hi folks<div><br></div><div>just a little bit of an update on some dev stuff:</div><div><br></div><div>I've tweaked the osm2pgsql scripts and styles which parses start_date and end_date and puts them into postgresql date type, and also creates a new column for the year only as a number column "start_date_year" etc  </div>


<div><br></div><div>The code is a bit scrappy at the moment and doesn't do a great job parsing out all the types of ways that people store dates, but it's a start :)</div><div><br></div><div>Then within the Carto side of things, we create table views in the rendering database with a date or year query and update the project.mml files with the new table name. Seems easier to do it this way than it is to wrangle in the bits of a temporal query within the project.mml files each time. </div>


<div><br></div><div>This means that we can begin a workflow to make map tiles for epochs, years and ranges! </div><div><br></div><div>As a start I've recreated the 2008 and 2009 layers that Mikel did last year. This is coming from a static non replicated database currently.</div>


<div><br></div><div>Example:</div><div>Standard OHM showing two years of Burning Man festival:</div><div><a href="http://www.openhistoricalmap.org//#map=15/40.7776/-119.2180&layers=H" target="_blank">http://www.openhistoricalmap.org//#map=15/40.7776/-119.2180&layers=H</a><br>


</div><div><br></div><div>2008</div><div><a href="http://www.openhistoricalmap.org//#map=15/40.7776/-119.2180&layers=8" target="_blank">http://www.openhistoricalmap.org//#map=15/40.7776/-119.2180&layers=8</a><br>

</div><div><br></div>
<div>2009</div><div><a href="http://www.openhistoricalmap.org//#map=15/40.7776/-119.2180&layers=9" target="_blank">http://www.openhistoricalmap.org//#map=15/40.7776/-119.2180&layers=9</a><br></div><div><br></div>

<div>I'm also sparsely documenting things here:</div>
<div><a href="http://wiki.openstreetmap.org/wiki/OHM/Dev" target="_blank">http://wiki.openstreetmap.org/wiki/OHM/Dev</a> and code is on our repo: <a href="https://github.com/openhistoricalmap" target="_blank">https://github.com/openhistoricalmap</a><br>


</div><div><br></div><div>I'd love to have a couple of extra layers  - what are some good years / range of years to use?</div><div><br></div><div>Next steps:</div><div>Improve the lua tag parsing to catch most of the dates.</div>


<div>Switch to the replicated ohm_gis database.</div><div>Create a couple of extra layers.</div><div><br></div><div>Cheers,</div><div><br></div><div>Tim</div></div>