Reproduce projection from QGIS project

Needs testing #151. Do not merge without testing. Also seems to contain @riccardoklinger's label code, but I thought that was already committed.