     :else []))
 
 (defn shape-aggregation-sql
-  [tenant-conn columns table-name geom-column popup-columns point-color-column where-clause current-layer layer-index]
+  [tenant-conn columns geom-column popup-columns point-color-column where-clause current-layer layer-index]
   (let [{:keys [table-name columns]} (db.dataset/dataset-by-id tenant-conn {:id (:aggregationDataset current-layer)})
         point-table-name table-name
         point-columns columns

            shape-table-name
            shape-table-name)))

(defn point-sql [tenant-conn columns table-name geom-column popup-columns
                 point-color-column where-clause {:keys [datasetId] :as layer}]
  (let [{:keys [table-name columns]} (db.dataset/dataset-by-id tenant-conn {:id datasetId})
        date-column-set (reduce (fn [m {:strs [columnName type]}]

                                :srid "4326"}})))
               layers))

(defn build [tenant-conn layers metadata-array]
  {:version "1.6.0"
   :buffersize {:png 8
                :grid.json 0
                :mvt 0}
   :layers (get-layers tenant-conn layers metadata-array)})

(defn build-raster [table-name min max]
  {:version "1.6.0"
