Skip to content

Commit

Permalink
Fine tune golf courses migration from point to polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
vharmain committed Jan 1, 2025
1 parent be69029 commit 3c72308
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webapp/src/clj/lipas/backend/gis.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
[fcoll]
(let [coords (-> fcoll :features first :geometry :coordinates)
[y x] coords
delta 0.001] ; ~111m in WGS84
delta 0.0001] ; ~11m in WGS84
{:type "FeatureCollection"
:features [{:type "Feature"
:geometry {:type "Polygon"
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/cljc/lipas/data/styles.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@
;; Golfkenttä (alue)
1650
{:shape "polygon",
:fill {:color "#876d50"},
:fill {:color #_"#876d50" "#62d53c"},
:stroke {:color "#000000" :width 1.5}}
;; Sisäleikki-/aktiviteettipuisto:
2225
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/cljc/lipas/data/types_new.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2191,15 +2191,15 @@
:props
{:area-km2 {:priority 90},
:may-be-shown-in-harrastuspassi-fi? {:priority 0}}},
1650
1650
{:description
{:fi
"Ensisijaisesti golfin pelaamiseen tarkoitettu alue kesäkaudella. Reikien määrä merkitään lisätietoihin.",
:se "Officiell golfbana. Antalet hål anges i karakteristika.",
:en
"Official golf course. Number of holes included in properties."},
:tags {:fi ["greeni" "puttialue" "range"]},
:name {:fi "Golfkenttä (alue)", :se "Golfbana", :en "Golf course"},
:name {:fi "Golfkenttä", :se "Golfbana", :en "Golf course"},
:type-code 1650,
:main-category 1000,
:status "active",
Expand Down
1 change: 1 addition & 0 deletions webapp/src/cljc/lipas/schema/common.cljc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(ns lipas.schema.common
(:refer-clojure :exclude [uuid])
(:require [lipas.data.status :as status]))

(def -iso8601-pattern #"^(?:[1-9]\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?Z$")
Expand Down

0 comments on commit 3c72308

Please sign in to comment.