@mailwoman/zoning 10.0.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -163
- package/lib/index.ts +103 -135
- package/lib/paths.ts +24 -0
- package/lib/ring-roles.ts +30 -71
- package/lib/rings.ts +2 -13
- package/lib/schema.ts +98 -139
- package/lib/vocabulary.ts +52 -130
- package/out/index.d.ts +81 -101
- package/out/index.d.ts.map +1 -1
- package/out/index.js +37 -96
- package/out/index.js.map +1 -1
- package/out/paths.d.ts +19 -0
- package/out/paths.d.ts.map +1 -0
- package/out/paths.js +21 -0
- package/out/paths.js.map +1 -0
- package/out/ring-roles.d.ts +16 -50
- package/out/ring-roles.d.ts.map +1 -1
- package/out/ring-roles.js +18 -51
- package/out/ring-roles.js.map +1 -1
- package/out/rings.d.ts +2 -13
- package/out/rings.d.ts.map +1 -1
- package/out/rings.js +2 -13
- package/out/rings.js.map +1 -1
- package/out/schema.d.ts +90 -132
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +17 -45
- package/out/schema.js.map +1 -1
- package/out/sdk/build-zoning.d.ts +58 -111
- package/out/sdk/build-zoning.d.ts.map +1 -1
- package/out/sdk/build-zoning.js +50 -139
- package/out/sdk/build-zoning.js.map +1 -1
- package/out/sdk/cells.d.ts +21 -62
- package/out/sdk/cells.d.ts.map +1 -1
- package/out/sdk/cells.js +15 -52
- package/out/sdk/cells.js.map +1 -1
- package/out/sdk/client.d.ts +23 -67
- package/out/sdk/client.d.ts.map +1 -1
- package/out/sdk/client.js +29 -77
- package/out/sdk/client.js.map +1 -1
- package/out/sdk/download.d.ts +7 -27
- package/out/sdk/download.d.ts.map +1 -1
- package/out/sdk/download.js +8 -28
- package/out/sdk/download.js.map +1 -1
- package/out/sdk/ingest/chunk.d.ts +19 -43
- package/out/sdk/ingest/chunk.d.ts.map +1 -1
- package/out/sdk/ingest/chunk.js +19 -52
- package/out/sdk/ingest/chunk.js.map +1 -1
- package/out/sdk/ingest/worker.d.ts +9 -0
- package/out/sdk/ingest/worker.d.ts.map +1 -0
- package/out/{scripts/ingest-chunk.js → sdk/ingest/worker.js} +8 -10
- package/out/sdk/ingest/worker.js.map +1 -0
- package/out/sdk/ingest.d.ts +152 -0
- package/out/sdk/ingest.d.ts.map +1 -0
- package/out/sdk/ingest.js +200 -0
- package/out/sdk/ingest.js.map +1 -0
- package/out/sdk/measure-resolutions.d.ts +7 -34
- package/out/sdk/measure-resolutions.d.ts.map +1 -1
- package/out/sdk/measure-resolutions.js +5 -23
- package/out/sdk/measure-resolutions.js.map +1 -1
- package/out/sdk/test-kit.d.ts +75 -0
- package/out/sdk/test-kit.d.ts.map +1 -0
- package/out/{test-kit.js → sdk/test-kit.js} +20 -43
- package/out/sdk/test-kit.js.map +1 -0
- package/out/sdk/verify.d.ts +79 -80
- package/out/sdk/verify.d.ts.map +1 -1
- package/out/sdk/verify.js +83 -70
- package/out/sdk/verify.js.map +1 -1
- package/out/vocabulary.d.ts +52 -120
- package/out/vocabulary.d.ts.map +1 -1
- package/out/vocabulary.js +47 -125
- package/out/vocabulary.js.map +1 -1
- package/package.json +38 -162
- package/{lib/sdk → sdk}/build-zoning.ts +102 -188
- package/{lib/sdk → sdk}/cells.ts +27 -66
- package/{lib/sdk → sdk}/client.ts +34 -82
- package/sdk/download.ts +58 -0
- package/{lib/sdk → sdk}/ingest/chunk.ts +36 -65
- package/{lib/scripts/ingest-chunk.ts → sdk/ingest/worker.ts} +7 -9
- package/sdk/ingest.ts +354 -0
- package/sdk/measure-resolutions.ts +72 -0
- package/{lib → sdk}/test-kit.ts +21 -44
- package/sdk/verify.ts +367 -0
- package/lib/sdk/download.ts +0 -78
- package/lib/sdk/index.ts +0 -15
- package/lib/sdk/ingest/index.ts +0 -393
- package/lib/sdk/measure-resolutions.ts +0 -101
- package/lib/sdk/verify.ts +0 -357
- package/out/scripts/ingest-chunk.d.ts +0 -11
- package/out/scripts/ingest-chunk.d.ts.map +0 -1
- package/out/scripts/ingest-chunk.js.map +0 -1
- package/out/sdk/index.d.ts +0 -15
- package/out/sdk/index.d.ts.map +0 -1
- package/out/sdk/index.js +0 -15
- package/out/sdk/index.js.map +0 -1
- package/out/sdk/ingest/index.d.ts +0 -185
- package/out/sdk/ingest/index.d.ts.map +0 -1
- package/out/sdk/ingest/index.js +0 -232
- package/out/sdk/ingest/index.js.map +0 -1
- package/out/test-kit.d.ts +0 -96
- package/out/test-kit.d.ts.map +0 -1
- package/out/test-kit.js.map +0 -1
package/lib/vocabulary.ts
CHANGED
|
@@ -3,52 +3,26 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The Department's
|
|
7
|
-
* the plan vocabulary, the exclusions it states, and the licence posture that holds this layer at
|
|
8
|
-
* `build-local`.
|
|
9
|
-
*
|
|
10
|
-
* THE LOCAL CODE IS CARRIED VERBATIM AND THE CROSSWALK SITS BESIDE IT, NEVER INSTEAD OF IT. The Department
|
|
11
|
-
* publishes a national generic type over 30 local authorities' own zone codes and says in its own item
|
|
12
|
-
* description that the scheme "complements (rather than replaces) the existing statutory zoning used for
|
|
13
|
-
* each individual plan". So a row carries both: `local_code` as the authority spelled it, and
|
|
14
|
-
* `crosswalk_code` under {@link GZT_CROSSWALK_SCHEME} with its own provenance. Measured over the whole
|
|
15
|
-
* national set, 52 of 795 (authority, local code) pairs take MORE THAN ONE generic type, so the mapping is
|
|
16
|
-
* not a function of the pair and no code table can carry it — which is why `zoning_crosswalk_edge` ships
|
|
17
|
-
* empty and the mapping lives per polygon.
|
|
18
|
-
*
|
|
19
|
-
* THE DECLARED DOMAIN IS CLOSED AND THE SOURCE ALREADY BREAKS IT. The service declares 54 generic types in
|
|
20
|
-
* its own coded-value domain; the data uses 55. `N/A` appears on 4 rows and in no domain. So the ingest
|
|
21
|
-
* carries the declared domain PLUS the values observed in the data and records the difference
|
|
22
|
-
* (`zoning_vocabulary.declared`) rather than coercing an undeclared value to a neighbour or to null —
|
|
23
|
-
* either of which turns "the source changed" into "there is nothing here".
|
|
24
|
-
*
|
|
25
|
-
* `CURRENT_PLAN = 1` DOES NOT MEAN "IN FORCE TODAY". All 85,330 rows in the Current layer carry it, and the
|
|
26
|
-
* domain defines it as `Current plan` against `Expired and not replaced` and `Expired and replaced`. It
|
|
27
|
-
* means "not superseded". The plan's own `PLAN_FROM`/`PLAN_TO` window is a separate fact a consumer must
|
|
28
|
-
* read, and it is carried on `zoning_plan` for that reason.
|
|
29
|
-
*
|
|
30
|
-
* `LA_CODE` IS DIRTY AND IS NEVER REPAIRED. Fingal's code is `Fl` with a lowercase second letter against
|
|
31
|
-
* `CL`, `CO`, `DU` and the rest. It is the publisher's key; repairing it would put this package's spelling
|
|
32
|
-
* into an artifact that claims to repeat the authority's.
|
|
6
|
+
* The Department's product identity, declared vocabularies, stated limits and license status for the zoning layer.
|
|
33
7
|
*/
|
|
34
8
|
|
|
35
9
|
/**
|
|
36
|
-
* The layer name written
|
|
10
|
+
* The layer name written to `layer_manifest.name`; the reader accepts no other name.
|
|
37
11
|
*/
|
|
38
12
|
export const GZT_LAYER_NAME = "zoning-ie-gzt"
|
|
39
13
|
|
|
40
14
|
/**
|
|
41
|
-
* The ArcGIS Online item the product
|
|
15
|
+
* The ArcGIS Online item id of the product, written to `layer_manifest.source`.
|
|
42
16
|
*/
|
|
43
17
|
export const GZT_ITEM_ID = "5c2608ebedd84013aaeff8bf669e8596"
|
|
44
18
|
|
|
45
19
|
/**
|
|
46
|
-
* The publishing
|
|
20
|
+
* The publishing organization's ArcGIS Online id.
|
|
47
21
|
*/
|
|
48
22
|
export const GZT_ORG_ID = "NzlPQPKn5QF9v2US"
|
|
49
23
|
|
|
50
24
|
/**
|
|
51
|
-
* The feature layer the product
|
|
25
|
+
* The feature layer that serves the product.
|
|
52
26
|
*/
|
|
53
27
|
export const GZT_SERVICE_URL = `https://services.arcgis.com/${GZT_ORG_ID}/arcgis/rest/services/GZT_Current_Plan/FeatureServer/0`
|
|
54
28
|
|
|
@@ -58,38 +32,28 @@ export const GZT_SERVICE_URL = `https://services.arcgis.com/${GZT_ORG_ID}/arcgis
|
|
|
58
32
|
export const GZT_ITEM_URL = `https://www.arcgis.com/home/item.html?id=${GZT_ITEM_ID}`
|
|
59
33
|
|
|
60
34
|
/**
|
|
61
|
-
* The Department's
|
|
62
|
-
*
|
|
35
|
+
* The Department's zoning map viewer.
|
|
36
|
+
*
|
|
37
|
+
* It is the only place the Department publishes coverage detail.
|
|
63
38
|
*/
|
|
64
39
|
export const GZT_MAP_VIEWER_URL = "https://www.myplan.ie/zoning-map-viewer/"
|
|
65
40
|
|
|
66
41
|
/**
|
|
67
|
-
* The
|
|
68
|
-
*
|
|
69
|
-
* BOTH HALVES RIDE, because the second is the half that holds this layer at `build-local`. The Department's own credit
|
|
70
|
-
* line is the first; the all-rights-reserved clause naming Tailte Éireann as an upstream licensor is the second, and a
|
|
71
|
-
* re-user who saw only the first would not know it exists.
|
|
42
|
+
* The item's `accessInformation` credit line followed by the Tailte Éireann clause from its
|
|
43
|
+
* `licenseInfo`, whose all-rights-reserved clause keeps this layer at the `build-local` tier.
|
|
72
44
|
*/
|
|
73
45
|
export const GZT_ATTRIBUTION =
|
|
74
46
|
"Department of Housing, Local Government, and Heritage (Generalised Zoning Types, MyPlan.ie). " +
|
|
75
47
|
"© Copyright 2011 DHLGH. All rights reserved. © Tailte Éireann. All rights reserved. Licence No. 2023/OSi_NMA_073"
|
|
76
48
|
|
|
77
49
|
/**
|
|
78
|
-
* The
|
|
79
|
-
*
|
|
80
|
-
* `NOASSERTION` IS THE HONEST VALUE AND IT IS NOT A PLACEHOLDER. Three published statements disagree about the grant —
|
|
81
|
-
* see {@link GZT_LICENSE_CONTRADICTION} — and the manifest column is a string a consumer reads as the terms it may rely
|
|
82
|
-
* on. Writing `CC-BY-4.0` there while an all-rights-reserved clause names a licensor would be this program asserting a
|
|
83
|
-
* grant nobody made; leaving the column empty would read as a layer whose licence nobody looked at. `NOASSERTION` is
|
|
84
|
-
* SPDX's own token for a determination that has not been made, which is exactly the state.
|
|
85
|
-
*
|
|
86
|
-
* {@linkcode assertTierMatchesLicense} refuses a `shipped` build while this holds, so moving the tier takes a
|
|
87
|
-
* deliberate edit at a guard that names the reason rather than a manifest field nobody notices.
|
|
50
|
+
* The license expression written to `layer_manifest.license`; `assertTierMatchesLicense`
|
|
51
|
+
* in `@mailwoman/core/layers` rejects a `shipped` build while this value is set.
|
|
88
52
|
*/
|
|
89
53
|
export const GZT_LICENSE = "NOASSERTION"
|
|
90
54
|
|
|
91
55
|
/**
|
|
92
|
-
*
|
|
56
|
+
* The explanation of why the license is unresolved, for build reports.
|
|
93
57
|
*/
|
|
94
58
|
export const GZT_LICENSE_CONTRADICTION =
|
|
95
59
|
"Three published statements disagree about the grant: data.gov.ie declares CC-BY-4.0; the ArcGIS item's licenseInfo " +
|
|
@@ -100,70 +64,59 @@ export const GZT_LICENSE_CONTRADICTION =
|
|
|
100
64
|
"A shipped layer needs one grant it can quote, so this one is built locally and never redistributed."
|
|
101
65
|
|
|
102
66
|
/**
|
|
103
|
-
* The projected CRS the service and its bulk export
|
|
104
|
-
*
|
|
67
|
+
* The projected CRS that the service and its bulk export declare — IRENET95 / Irish Transverse
|
|
68
|
+
* Mercator, in meters — which the ingest reprojects from and rejects any other code for.
|
|
105
69
|
*/
|
|
106
70
|
export const GZT_SOURCE_EPSG = 2157
|
|
107
71
|
|
|
108
72
|
/**
|
|
109
|
-
* The extent the Department declares for the item,
|
|
110
|
-
* Ireland, excluding Northern Ireland.
|
|
73
|
+
* The extent that the Department declares for the item, as `[minLon, minLat, maxLon, maxLat]` in CRS84.
|
|
111
74
|
*
|
|
112
|
-
* The ingest
|
|
113
|
-
*
|
|
114
|
-
* as degrees would place Ireland's zoning at latitude 735,435 — a well-formed set of coordinates in the Southern
|
|
115
|
-
* Ocean.
|
|
75
|
+
* The ingest checks every reprojected vertex against it to catch the source's
|
|
76
|
+
* projected meters read as degrees.
|
|
116
77
|
*/
|
|
117
78
|
export const GZT_DECLARED_BBOX: readonly [number, number, number, number] = [
|
|
118
79
|
-10.54553193079905, 51.452765583177616, -5.947766999109422, 54.47387941831219,
|
|
119
80
|
]
|
|
120
81
|
|
|
121
82
|
/**
|
|
122
|
-
* The feature count the service's
|
|
83
|
+
* The feature count reported by both the service's `returnCountOnly` query and the bulk export.
|
|
123
84
|
*/
|
|
124
85
|
export const GZT_DECLARED_FEATURE_COUNT = 85_330
|
|
125
86
|
|
|
126
87
|
/**
|
|
127
|
-
* The crosswalk scheme the Department
|
|
88
|
+
* The crosswalk scheme of the Department's national Generalised Zoning Type codes.
|
|
128
89
|
*/
|
|
129
90
|
export const GZT_CROSSWALK_SCHEME = "IE-GZT"
|
|
130
91
|
|
|
131
92
|
/**
|
|
132
|
-
* The Department's
|
|
133
|
-
*
|
|
134
|
-
* Carried as published rather than derived. Measured over the whole national set it is a STRICT COARSENING of the
|
|
135
|
-
* generic type — no generic type maps to more than one `SZO` — but the roll-up is the Department's to change, so
|
|
136
|
-
* re-deriving it here would replace a published fact with this package's arithmetic.
|
|
93
|
+
* The scheme of the Department's coarser national code, `SZO` (Standardised Zoning Objective),
|
|
94
|
+
* stored as published because the Department may change it.
|
|
137
95
|
*/
|
|
138
96
|
export const GZT_ROLLUP_SCHEME = "IE-SZO"
|
|
139
97
|
|
|
140
98
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
* PER AUTHORITY RATHER THAN ONE POOLED LOCAL SCHEME, because the codes collide: `Residential` means one thing in Cork
|
|
144
|
-
* County Council's plan and another in Westmeath's, and pooling them would assert an equivalence no authority stated.
|
|
99
|
+
* Returns the vocabulary scheme for one local authority's zone codes, since the
|
|
100
|
+
* same code can mean different things in different plans.
|
|
145
101
|
*/
|
|
146
102
|
export function localSchemeFor(authorityCode: string): string {
|
|
147
103
|
return `IE-LOCAL:${authorityCode}`
|
|
148
104
|
}
|
|
149
105
|
|
|
150
106
|
/**
|
|
151
|
-
* One value a publisher declares, with
|
|
107
|
+
* One value that a publisher declares, with its published label.
|
|
152
108
|
*/
|
|
153
109
|
export interface ZoningTermDefinition {
|
|
154
110
|
/**
|
|
155
|
-
* The code as the publisher spells it
|
|
111
|
+
* The code exactly as the publisher spells it.
|
|
156
112
|
*/
|
|
157
113
|
code: string
|
|
158
114
|
label: string
|
|
159
115
|
}
|
|
160
116
|
|
|
161
117
|
/**
|
|
162
|
-
* The Department's declared generic-type domain, verbatim from the service's
|
|
163
|
-
*
|
|
164
|
-
* FIFTY-FOUR DECLARED AGAINST FIFTY-FIVE USED. `N/A` appears on 4 of 85,330 rows and in no domain, so the ingest
|
|
165
|
-
* records it as observed-but-undeclared rather than adding it here — a declaration this package wrote would be
|
|
166
|
-
* indistinguishable from one the Department made.
|
|
118
|
+
* The Department's declared generic-type domain, copied verbatim from the service's
|
|
119
|
+
* `GZT Code` coded-value domain, omitting the observed-but-undeclared `N/A`.
|
|
167
120
|
*/
|
|
168
121
|
export const GZT_DECLARED_CODES: ReadonlyArray<ZoningTermDefinition> = [
|
|
169
122
|
{ code: "P1", label: "Agriculture" },
|
|
@@ -228,8 +181,8 @@ export const GZT_DECLARED_CODES: ReadonlyArray<ZoningTermDefinition> = [
|
|
|
228
181
|
export const GZT_DECLARED_CODE_SET: ReadonlySet<string> = new Set(GZT_DECLARED_CODES.map((term) => term.code))
|
|
229
182
|
|
|
230
183
|
/**
|
|
231
|
-
* The `PLAN_LEVEL` domain, verbatim
|
|
232
|
-
*
|
|
184
|
+
* The `PLAN_LEVEL` domain, verbatim, including `SDZ` because the Department declares it
|
|
185
|
+
* although no current row uses it.
|
|
233
186
|
*/
|
|
234
187
|
export const GZT_PLAN_LEVELS: ReadonlyArray<ZoningTermDefinition> = [
|
|
235
188
|
{ code: "DP", label: "Development Plan" },
|
|
@@ -243,7 +196,8 @@ export const GZT_PLAN_LEVELS: ReadonlyArray<ZoningTermDefinition> = [
|
|
|
243
196
|
export const GZT_PLAN_LEVEL_SET: ReadonlySet<string> = new Set(GZT_PLAN_LEVELS.map((term) => term.code))
|
|
244
197
|
|
|
245
198
|
/**
|
|
246
|
-
* The `CURRENT_PLAN` domain, verbatim, keyed by the integer
|
|
199
|
+
* The `CURRENT_PLAN` domain, verbatim, keyed by the published integer, where 1 means the
|
|
200
|
+
* plan is not superseded and its validity window is stored separately on `zoning_plan`.
|
|
247
201
|
*/
|
|
248
202
|
export const GZT_CURRENT_PLAN_VALUES: ReadonlyMap<number, string> = new Map([
|
|
249
203
|
[1, "Current plan"],
|
|
@@ -252,42 +206,35 @@ export const GZT_CURRENT_PLAN_VALUES: ReadonlyMap<number, string> = new Map([
|
|
|
252
206
|
])
|
|
253
207
|
|
|
254
208
|
/**
|
|
255
|
-
* The provenance grade a zoning
|
|
256
|
-
*
|
|
257
|
-
* `authoritative` is a planning or legislative authority for the land, or a government body republishing that
|
|
258
|
-
* authority's own adopted records — the Department republishing 30 local authorities' plans is one. `inferred` is an
|
|
259
|
-
* observation, a community mapping project or a research assembly: OpenStreetMap `landuse` is inferred, and so is
|
|
260
|
-
* Overture's `base/land_use`, because it is the same data.
|
|
209
|
+
* The provenance grade of a zoning row.
|
|
261
210
|
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
* OpenStreetMap `landuse=residential` polygons in South Dublin, only 558 — 33.8% — sit on land the authority zones
|
|
265
|
-
* residential, and the two largest wrong answers are agriculture (23.4%) and conservation (19.6%).
|
|
211
|
+
* A caller must present an `inferred` row as an inference rather than as the authority's designation.
|
|
212
|
+
* Each artifact holds one grade.
|
|
266
213
|
*
|
|
267
|
-
*
|
|
268
|
-
* `layer_manifest.name`, because `layer_coverage.observed_rows` means "rows this layer actually holds in the cell" and
|
|
269
|
-
* coverage measured over community-mapped polygons cannot describe an authority's zones. The licences make the
|
|
270
|
-
* separation compulsory anyway: OpenStreetMap and Overture `base` are ODbL, and merging an ODbL row into this table
|
|
271
|
-
* would relicense it.
|
|
214
|
+
* ODbL sources require relicensing before they can be merged into this table.
|
|
272
215
|
*/
|
|
273
216
|
export const ProvenanceGrade = {
|
|
274
217
|
Authoritative: "authoritative",
|
|
275
218
|
Inferred: "inferred",
|
|
276
219
|
} as const
|
|
277
220
|
|
|
221
|
+
/**
|
|
222
|
+
* One of the {@link ProvenanceGrade} values.
|
|
223
|
+
*/
|
|
278
224
|
export type ProvenanceGrade = (typeof ProvenanceGrade)[keyof typeof ProvenanceGrade]
|
|
279
225
|
|
|
280
226
|
/**
|
|
281
|
-
* The grade every row
|
|
227
|
+
* The grade of every row in this artifact, because the Department republishes
|
|
228
|
+
* local authorities' adopted plans.
|
|
282
229
|
*/
|
|
283
230
|
export const GZT_PROVENANCE_GRADE: ProvenanceGrade = ProvenanceGrade.Authoritative
|
|
284
231
|
|
|
285
232
|
/**
|
|
286
|
-
*
|
|
233
|
+
* The Department's own statements define the product's limits.
|
|
287
234
|
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
235
|
+
* Every reading includes these statements.
|
|
236
|
+
* They report the plan's zoning assignment at a location.
|
|
237
|
+
* They do not establish what may be built there.
|
|
291
238
|
*/
|
|
292
239
|
export const GZT_PRODUCT_LIMITS: ReadonlyArray<string> = [
|
|
293
240
|
"Myplan.ie data are not published here as legal definitions of the current actuality with regard to Local Authority zoning or their geographic extents.",
|
|
@@ -298,15 +245,9 @@ export const GZT_PRODUCT_LIMITS: ReadonlyArray<string> = [
|
|
|
298
245
|
]
|
|
299
246
|
|
|
300
247
|
/**
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
* and the Planning Practice Guidance defines Zone 1 as the absence, so a location with no polygon IS a designation. No
|
|
305
|
-
* such definition exists anywhere for zoning. A location with no zoning polygon is one of at least four different
|
|
306
|
-
* things: outside any adopted plan area, inside a plan area on land the plan does not zone, in a jurisdiction that has
|
|
307
|
-
* never adopted zoning, or in a jurisdiction whose records nobody has published. And the source can state one of them
|
|
308
|
-
* positively — `ZONE_ORIG = "UNZ - Unzoned"` appears on 4 of 85,330 rows — which is what proves the other absences are
|
|
309
|
-
* absences rather than designations.
|
|
248
|
+
* The explanation of why this layer's coverage supports no negative claim,
|
|
249
|
+
* because land without a polygon may be outside every plan area, unzoned by a plan,
|
|
250
|
+
* in a jurisdiction without zoning, or in one whose records are unpublished.
|
|
310
251
|
*/
|
|
311
252
|
export const GZT_COVERAGE_LIMIT =
|
|
312
253
|
"The Department publishes zoning polygons and states its coverage detail only inside a map viewer, so this layer " +
|
|
@@ -315,28 +256,9 @@ export const GZT_COVERAGE_LIMIT =
|
|
|
315
256
|
"not yet published — and the product cannot tell those apart, so nothing here supports a claim that no restriction applies."
|
|
316
257
|
|
|
317
258
|
/**
|
|
318
|
-
* The
|
|
319
|
-
* than asserted: where the authority means "unzoned" it says so on a row, so every other absence is a row that is not
|
|
320
|
-
* there.
|
|
321
|
-
*/
|
|
322
|
-
export const GZT_UNZONED_LOCAL_CODE = "UNZ - Unzoned"
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Refuse a manifest that would ship this layer under a licence nobody resolved.
|
|
326
|
-
*
|
|
327
|
-
* A GUARD RATHER THAN A CONVENTION, for the same reason the coverage basis is one: the tier is a field, and a field can
|
|
328
|
-
* be edited without anyone reading the three statements that disagree. Moving this layer to `shipped` has to go through
|
|
329
|
-
* a line that names what is unresolved.
|
|
259
|
+
* The local code with which an authority explicitly marks land as unzoned.
|
|
330
260
|
*
|
|
331
|
-
*
|
|
261
|
+
* A row with this code means the location is unzoned.
|
|
262
|
+
* A location with no row makes no statement about zoning.
|
|
332
263
|
*/
|
|
333
|
-
export
|
|
334
|
-
if (tier !== "shipped") return
|
|
335
|
-
|
|
336
|
-
if (license === GZT_LICENSE) {
|
|
337
|
-
throw new Error(
|
|
338
|
-
`zoning build: tier "shipped" was asked for while the licence reads ${JSON.stringify(GZT_LICENSE)}. ` +
|
|
339
|
-
`${GZT_LICENSE_CONTRADICTION} Resolve the grant in writing first, then change both this guard and the tier.`
|
|
340
|
-
)
|
|
341
|
-
}
|
|
342
|
-
}
|
|
264
|
+
export const GZT_UNZONED_LOCAL_CODE = "UNZ - Unzoned"
|