diff options
author | evansiroky <evan.siroky@yahoo.com> | 2020-10-17 22:35:54 -0700 |
---|---|---|
committer | evansiroky <evan.siroky@yahoo.com> | 2020-10-17 22:35:54 -0700 |
commit | eabb18fc1e19245bc02e23e71f35689ca3dbd46e (patch) | |
tree | 264183231a8159b2b4bb049e0d3d9b0c76f3232e | |
parent | b7d9d79bc6d768bbb4f49a30163fc48f814e8736 (diff) | |
download | timezone-boundary-builder-eabb18fc1e19245bc02e23e71f35689ca3dbd46e.tar.gz |
Update timezone config for a few Canadian zones
Fixes #90.
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | osmBoundarySources.json | 20 | ||||
-rw-r--r-- | timezones.json | 105 |
3 files changed, 29 insertions, 102 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c835ba..3008b1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## Pending +### Zone Changes + +* Update some Canadian zones as follows ([#90](https://github.com/evansiroky/timezone-boundary-builder/issues/90)) + * Use OSM timezone relations in entirety for the following zones: `America/Blanc_Sablon`, `America/Glace_Bay`, `America/Halifax`, `America/Swift_Current`, `America/Toronto` +* Update to latest OSM data + ### Other Changes * Switch command line flag processing to use the yargs library. Existing flags have changed: --no-validation and --filtered-zones have been renamed to --no_validation and --included_zones respectively. --included_zones now takes a list without quotes or commas. diff --git a/osmBoundarySources.json b/osmBoundarySources.json index 95d66ff..2226da7 100644 --- a/osmBoundarySources.json +++ b/osmBoundarySources.json @@ -144,6 +144,9 @@ "Bir Tawil": { "alt_name:en": "Bi'r Tawīl" }, + "Blanc Sablon-tz": { + "timezone": "America/Blanc-Sablon" + }, "Bledsoe County, TN": { "name": "Bledsoe County", "nist:state_fips": "47" @@ -222,9 +225,6 @@ "Cancun-tz": { "timezone": "America/Cancun" }, - "Cape Breton County": { - "name": "Cape Breton County" - }, "Cape Verde": { "ISO3166-1": "CV" }, @@ -467,6 +467,10 @@ "name": "Gibson County", "nist:state_fips": "18" }, + "Glace Bay-tz": { + "boundary": "timezone", + "name": "America/Glace_Bay Timezone" + }, "Gogebic County": { "name": "Gogebic County" }, @@ -519,6 +523,9 @@ "Haiti": { "ISO3166-1": "HT" }, + "Halifax-tz": { + "timezone": "America/Halifax" + }, "Hamilton County, KS": { "name": "Hamilton County", "nist:state_fips": "20" @@ -720,9 +727,6 @@ "Liechtenstein": { "ISO3166-1": "LI" }, - "Listuguj": { - "name": "Listuguj" - }, "Lithuania": { "ISO3166-1": "LT" }, @@ -1251,6 +1255,10 @@ "Sweden": { "ISO3166-1": "SE" }, + "Swift Current-tz": { + "boundary": "timezone", + "name": "America/Swift_Current timezone" + }, "Switzerland": { "ISO3166-1": "CH" }, diff --git a/timezones.json b/timezones.json index 7d8ac8d..e37989f 100644 --- a/timezones.json +++ b/timezones.json @@ -741,17 +741,7 @@ { "op": "init", "source": "overpass", - "id": "Quebec" - }, { - "op": "intersect", - "source": "manual-polygon", - "data": [[[-61.25,53],[-61.25,48],[-51,53],[-61.25,53]]], - "description": "Grab eastern section of Quebec" - }, { - "op": "difference", - "source": "manual-polygon", - "data": [[[-58.9,46.8],[-63.37,47.66],[-60.4768198,48.7813802],[-58.9,46.8]]], - "description": "Exclude a section of area that should be America/Halifax" + "id": "Blanc Sablon-tz" } ], "America/Boa_Vista": [ @@ -1299,16 +1289,7 @@ { "op": "init", "source": "overpass", - "id": "Canada" - }, { - "op": "intersect", - "source": "manual-polygon", - "data": [[[-58,46],[-59,45.428],[-60.1323124,45.7017791],[-60.3408651,46.3601573],[-60.0238,46.5],[-58,46]]], - "description": "intersect part of Canada in Cape Breton County to preserve terriritorial waters" - }, { - "op": "union", - "source": "overpass", - "id": "Cape Breton County" + "id": "Glace Bay-tz" } ], "America/Goose_Bay": [ @@ -1382,25 +1363,7 @@ { "op": "init", "source": "overpass", - "id": "Canada" - }, { - "op": "intersect", - "source": "manual-polygon", - "data": [[[-58.9,46.8],[-60.0238,46.5],[-60.3408651,46.3601573],[-60.1323124,45.7017791],[-59,45.428],[-59,34],[-67,44.06],[-66.4878,44.482],[-66.21,44.83],[-65.3,45.2],[-65.13,45.38],[-64.98,45.47],[-64.80607,45.5364896],[-64.5,46],[-63.7491191,46.2295464],[-64.34,46.36],[-64.56,46.6],[-64.58,46.69],[-64.46,47.07],[-63.37,47.66],[-60.4768198,48.7813802],[-60.4037717,47.7610985],[-58.9,46.8]]], - "description": "Grab area of Canada including New Brunswick and an area of the Gulf of St Lawrence including Prince Edward Island and the Magdalen Islands" - }, { - "op": "difference", - "source": "overpass", - "id": "Cape Breton County" - }, { - "op": "difference", - "source": "overpass", - "id": "New Brunswick", - "description": "Exclude New Brunswick to get exact boundary between Nova Scotia and New Brunswick" - }, { - "op": "union", - "source": "overpass", - "id": "Listuguj" + "id": "Halifax-tz" } ], "America/Havana": [ @@ -1745,22 +1708,7 @@ { "op": "init", "source": "overpass", - "id": "Canada" - }, { - "op": "intersect", - "source": "manual-polygon", - "data": [[[-70,46],[-67,44.06],[-66.4878,44.482],[-66.21,44.83],[-65.3,45.2],[-65.13,45.38],[-64.98,45.47],[-64.80607,45.5364896],[-64.5,46],[-63.7491191,46.2295464],[-64.34,46.36],[-64.56,46.6],[-64.58,46.69],[-64.46,47.07],[-63.37,47.66],[-61.69,48.52],[-60,52],[-70,50],[-70,46]]], - "description": "Grab area of Canada around New Brunswick including part of Gulf of St Lawrence" - }, { - "op": "difference", - "source": "overpass", - "id": "Quebec", - "description": "Exclude Quebec territory including parts of Gulf of St Lawrence" - }, { - "op": "union", - "source": "overpass", - "id": "New Brunswick", - "description": "Union to get exact border between New Brunswick and Nova Scotia" + "id": "New Brunswick" } ], "America/Monterrey": [ @@ -2236,6 +2184,10 @@ "op": "difference", "source": "overpass", "id": "Quebec" + }, { + "op": "difference", + "source": "overpass", + "id": "Glace Bay-tz" } ], "America/St_Kitts": [ @@ -2275,20 +2227,7 @@ { "op": "init", "source": "overpass", - "id": "Canada" - }, { - "op": "intersect", - "source": "manual-polygon", - "data": [[[-114,47],[-100,47],[-109,59.9],[-114,47]]], - "description": "Intersect a good chunk of Canada containing parts of Alberta and Saskatchewan." - }, { - "op": "difference", - "source": "overpass", - "id": "Edmonton-tz" - }, { - "op": "difference", - "source": "overpass", - "id": "Regina-tz" + "id": "Swift Current-tz" } ], "America/Tegucigalpa": [ @@ -2338,32 +2277,6 @@ "op": "init", "source": "overpass", "id": "Toronto-tz" - }, { - "op": "union", - "source": "overpass", - "id": "Quebec" - }, { - "op": "difference", - "source": "manual-polygon", - "data": [[[-61.25,53],[-61.25,48],[-51,53],[-61.25,53]]], - "description": "Exclude part of Quebec belonging to timezone America/Blanc-Sablon." - }, { - "op": "difference", - "source": "manual-polygon", - "data": [[[-58.9,46.8],[-60.4768198,48.7813802],[-63.37,47.66],[-64,45],[-58.9,46.8]]], - "description": "Exclude Magdalen Islands" - }, { - "op": "difference", - "source": "overpass", - "id": "Listuguj" - }, { - "op": "difference", - "source": "overpass", - "id": "Nipigon-tz" - }, { - "op": "difference", - "source": "overpass", - "id": "Thunder Bay-tz" } ], "America/Tortola": [ |