On 28/03/12 20:57, Maarten Dammers wrote:
Hi Alex,
CCing the Wiki Loves Monuments list. Maybe someone feels like helping out.
Op 28-3-2012 0:10, Alexander Wagner schreef:
I only found these kgs_nr. Haven't found an easy way to harvest them.
I found a way, but not an easy one:
- Goto http://kgs-gis.admin.ch/kgs.php
- Zoom out to max
- check "Kulturgüter" on the left
- Use the (i)-tool on top and draw a rectangle over all switzerland
- all objects are shown in a list below the map. You also can
download CSVs, unfortunately seperated in some hundred objecttypelists...
Would this lists help you creating some script? I hope I don't need to add them manually...
We would somehow need to download all the csv files and put them in a big table at the toolserver. It's probably not too hard to have a program take the html page and look for all url's containing csv file. For each file download it and insert it in a database at the toolserver. Once we have this database we can compare it to the information we already have about Switzerland and match items.
This trick works:
var v = document.getElementsByTagName('a'); for (var i = 0; v < v.length; i++) { print(v[i].href); }
I have downloaded the 145 files at ~erfgoed/kgs-gis.admin.ch