going somewhere

This commit is contained in:
didier committed 2025-01-02 13:12:38 -05:00
1 parent a92eee0479
commit f17e7c70fc
3 files changed
+2 -23

No files matched your search

+1 -6
View File
@@ -18,10 +18,6 @@
:province "québec"
:cityName city-name}))
;; ${osmosis}/bin/osmosis --read-pbf-fast file="${quebec-osm-data}" \
;; --bounding-polygon file="cities/canada/quebec/westmount_quebec.poly" \
;; --write-pbf file="cities/canada/quebec/westmount_quebec.osm.pbf"
(defn extract-osm-pbf [osm-file file]
(let [output-file (strings/replace file ".poly" ".osm.pbf")]
(println "Processing " file " file to " output-file)
@@ -33,9 +29,8 @@
"--write-pbf"
(str "file=" output-file))))
(def opts (cli/parse-opts *command-line-args* {:coerce {:paths []}}))
(doall (map
(doall (pmap
#(extract-osm-pbf (:osm-file opts) %)
(:paths opts)))