     (if-not (.exists (io/as-file raster-to-png-script))
       (spit raster-to-png-script (slurp (io/resource raster-to-png-script-src))))
     (if-not (.exists (io/as-file raster-median-script))
-      (spit raster-median-script (slurp (io/resource raster-median-script-src))))))
+      (spit raster-median-script (slurp (io/resource raster-median-script-src))))
+    (if-not (.exists (io/as-file gdal-polygonize-script))
+      (spit gdal-polygonize-script (slurp (io/resource gdal-polygonize-script-src))))))
 
 (defn sets
   "Data sets available for generating raster calculations"

        style-template (slurp (io/resource raster-style-template))
        stops (colour-map-stops tiff)]
    (do
      (spit
       style-filename
       (-> style-template

(def raster-to-png-script (str working-dir "/raster_to_png.py"))
(def raster-median-script-src "scripts/raster_median.py")
(def raster-median-script (str working-dir "/raster_median.py"))
(def gdal-polygonize-script-src "scripts/gdal_polygonize.py")
(def gdal-polygonize-script (str working-dir "/gdal_polygonize.py"))

(def raster-style-template "scripts/raster_style_template.qml")

