oobrien / oomap

OpenOrienteeringMap. Includes the website, tiling scripts, and mapnik stylesheets for OOMap and other raster tile layers.
GNU General Public License v2.0
45 stars 8 forks source link

KMZ of map (without course) for MapRunF export #46

Closed oobrien closed 4 years ago

jcundill commented 4 years ago

In doc.kml of the generated kmz file I needed to change the LatLonBox rotation to 0.0 to get the kmz to upload via the MapRunF checksites page

https://github.com/oobrien/oomap/blob/23ecc5998a0d6f345548bc9c1062e5248605704c/maptiler/www/handleKMZ.py#L118

oobrien commented 4 years ago

@jcundill I believe the issue is how the zip utility in python is zipping the files, compared with how you would manually zip them. Unzipping and rezipping outside of python should fix the issue. I'm looking to try and get the python zipping working correctly.

jcundill commented 4 years ago

@oobrien, thanks you are right - just rezipping the generated kmz fixes it.

oobrien commented 4 years ago

@jcundill I have now fixed this issue in https://github.com/oobrien/oomap/commit/0097c1d5a6dfd424151f944f892277e764457cbc (the zipping code was not marking the doc.kml explicitly as a file so MapRunF was treating it as a folder, plus MapRunF was fussy about the name of the image) and have reenabled the button on https://oomap.co.uk/gb/