Code, data and tools for HackaLOD 2018 hackathon, team Hic Sunt Leones:
Goal: make it easier to browse and find georectified historical maps from the Amsterdam Municipal Archives.
Map area data is available via the Adamlink SPARQL endpoint. Example query:
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX sem: <http://semanticweb.cs.vu.nl/2009/11/sem/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select ?kaart ?img ?x ?y ?title {
?kaart dct:spatial ?spatial .
?kaart foaf:depiction ?img .
?kaart dc:title ?title .
?spatial dc:type "outline"^^xsd:string .
?spatial geo:hasGeometry/geo:asWKT ?wktmap .
?spatial wdt:P2046 ?km2 .
bind (bif:st_geomfromtext("POINT(4.895168 52.370216)") as ?x)
bind (bif:st_geomfromtext(?wktmap) as ?y)
FILTER (bif:st_intersects(?x, ?y))
}
ORDER BY ASC(?km2)
limit 5
scrape-beeldbank.js
: scrape all georectified maps from the Beeldbankcreate-links.js
: save permalinks and UUIDs, merge with CSV datadownload-tiffs.sh
: download all GeoTIFFs from WMS serverextract-masks.sh
: use GDAL to turn GeoTIFFs into GeoJSONto-spacetime.js
: convert to NYC Space/Time Directory data formatfeature-collection.js
: create GeoJSON file with all masksgroup-maps.js
: group all maps in groups of 25 years
- Thumbnails:
- GeoTIFF:
- JPG:
- WMS: