@mailwoman/zoning 9.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 +315 -0
- package/lib/index.ts +616 -0
- package/lib/ring-roles.ts +233 -0
- package/lib/rings.ts +34 -0
- package/lib/schema.ts +449 -0
- package/lib/scripts/ingest-chunk.ts +41 -0
- package/lib/sdk/build-zoning.ts +790 -0
- package/lib/sdk/cells.ts +276 -0
- package/lib/sdk/client.ts +335 -0
- package/lib/sdk/download.ts +78 -0
- package/lib/sdk/index.ts +15 -0
- package/lib/sdk/ingest-chunk.ts +360 -0
- package/lib/sdk/ingest.ts +402 -0
- package/lib/sdk/measure-resolutions.ts +100 -0
- package/lib/sdk/verify.ts +350 -0
- package/lib/test-kit.ts +207 -0
- package/lib/vocabulary.ts +342 -0
- package/out/index.d.ts +257 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js +325 -0
- package/out/index.js.map +1 -0
- package/out/ring-roles.d.ts +88 -0
- package/out/ring-roles.d.ts.map +1 -0
- package/out/ring-roles.js +151 -0
- package/out/ring-roles.js.map +1 -0
- package/out/rings.d.ts +22 -0
- package/out/rings.d.ts.map +1 -0
- package/out/rings.js +22 -0
- package/out/rings.js.map +1 -0
- package/out/schema.d.ts +325 -0
- package/out/schema.d.ts.map +1 -0
- package/out/schema.js +186 -0
- package/out/schema.js.map +1 -0
- package/out/scripts/ingest-chunk.d.ts +11 -0
- package/out/scripts/ingest-chunk.d.ts.map +1 -0
- package/out/scripts/ingest-chunk.js +36 -0
- package/out/scripts/ingest-chunk.js.map +1 -0
- package/out/sdk/build-zoning.d.ts +283 -0
- package/out/sdk/build-zoning.d.ts.map +1 -0
- package/out/sdk/build-zoning.js +462 -0
- package/out/sdk/build-zoning.js.map +1 -0
- package/out/sdk/cells.d.ts +137 -0
- package/out/sdk/cells.d.ts.map +1 -0
- package/out/sdk/cells.js +176 -0
- package/out/sdk/cells.js.map +1 -0
- package/out/sdk/client.d.ts +151 -0
- package/out/sdk/client.d.ts.map +1 -0
- package/out/sdk/client.js +239 -0
- package/out/sdk/client.js.map +1 -0
- package/out/sdk/download.d.ts +51 -0
- package/out/sdk/download.d.ts.map +1 -0
- package/out/sdk/download.js +57 -0
- package/out/sdk/download.js.map +1 -0
- package/out/sdk/index.d.ts +15 -0
- package/out/sdk/index.d.ts.map +1 -0
- package/out/sdk/index.js +15 -0
- package/out/sdk/index.js.map +1 -0
- package/out/sdk/ingest-chunk.d.ts +130 -0
- package/out/sdk/ingest-chunk.d.ts.map +1 -0
- package/out/sdk/ingest-chunk.js +206 -0
- package/out/sdk/ingest-chunk.js.map +1 -0
- package/out/sdk/ingest.d.ts +191 -0
- package/out/sdk/ingest.d.ts.map +1 -0
- package/out/sdk/ingest.js +238 -0
- package/out/sdk/ingest.js.map +1 -0
- package/out/sdk/measure-resolutions.d.ts +51 -0
- package/out/sdk/measure-resolutions.d.ts.map +1 -0
- package/out/sdk/measure-resolutions.js +64 -0
- package/out/sdk/measure-resolutions.js.map +1 -0
- package/out/sdk/verify.d.ts +176 -0
- package/out/sdk/verify.d.ts.map +1 -0
- package/out/sdk/verify.js +202 -0
- package/out/sdk/verify.js.map +1 -0
- package/out/test-kit.d.ts +97 -0
- package/out/test-kit.d.ts.map +1 -0
- package/out/test-kit.js +180 -0
- package/out/test-kit.js.map +1 -0
- package/out/vocabulary.d.ts +221 -0
- package/out/vocabulary.d.ts.map +1 -0
- package/out/vocabulary.js +299 -0
- package/out/vocabulary.js.map +1 -0
- package/package.json +245 -0
package/README.md
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
# `@mailwoman/zoning`
|
|
2
|
+
|
|
3
|
+
Ireland's **Generalised Zoning Types** as a sealed spatial layer: what a local authority's adopted plan
|
|
4
|
+
assigns at a coordinate, in that authority's own vocabulary, with the plan it belongs to and that plan's
|
|
5
|
+
stated window.
|
|
6
|
+
|
|
7
|
+
Published by the Department of Housing, Local Government and Heritage for the MyPlan.ie project, covering
|
|
8
|
+
**30 of the Republic's 31 local authorities**. The one absent is Donegal County Council. Against Census 2022
|
|
9
|
+
(CSO table `FY003A`), **4,982,055 of 5,149,139 residents — 96.76% — live in a local authority whose zoning is
|
|
10
|
+
represented in the layer.** That is a jurisdiction statement and nothing more: living in a covered authority
|
|
11
|
+
is not the same as having a zoning polygon at your address.
|
|
12
|
+
|
|
13
|
+
**The artifact is built locally and never redistributed.** Three published statements disagree about the
|
|
14
|
+
source's license, so the manifest carries `tier: build-local` and `license: NOASSERTION`, and the builder
|
|
15
|
+
refuses a `shipped` tier until that is resolved in writing. See _Licence and posture_ below.
|
|
16
|
+
|
|
17
|
+
## What it reports, and what it refuses to
|
|
18
|
+
|
|
19
|
+
Two readings, and the one that is missing is the point.
|
|
20
|
+
|
|
21
|
+
| reading | what it means |
|
|
22
|
+
| ------------ | ------------------------------------------------------------------------------------------ |
|
|
23
|
+
| `designated` | An adopted plan places the location inside a zoning polygon, and the polygon is the answer |
|
|
24
|
+
| `unknown` | No zoning polygon contains the point. **Not an absence reading, and this layer has none** |
|
|
25
|
+
|
|
26
|
+
**There is no `designated_absence` here, and zoning is the hardest case of the rule.** For flood zones the
|
|
27
|
+
Environment Agency states England-wide coverage and the Planning Practice Guidance defines Zone 1 as the land
|
|
28
|
+
outside Zones 2 and 3, so an empty answer inside England IS a designation. No such definition exists anywhere
|
|
29
|
+
for zoning. A location with no zoning polygon is one of at least four different things:
|
|
30
|
+
|
|
31
|
+
1. Outside any adopted plan area — most land in most countries. The authority has said nothing.
|
|
32
|
+
2. Inside a plan area, on land the plan does not zone.
|
|
33
|
+
3. In a jurisdiction that has never adopted zoning at all.
|
|
34
|
+
4. In a jurisdiction whose records nobody has read or published yet.
|
|
35
|
+
|
|
36
|
+
**And the source can state one of them positively, which is what proves the rest are absences.** It carries
|
|
37
|
+
`ZONE_ORIG = "UNZ - Unzoned"` with `ZONE_GZT = "N/A"` on 4 of its 85,330 rows. Where the authority means
|
|
38
|
+
unzoned it says so on a row; every other absence is a row that is not there.
|
|
39
|
+
|
|
40
|
+
So every `layer_coverage` row carries `basis = source_present`, the reader refuses to OPEN an artifact
|
|
41
|
+
carrying anything stronger, and the observation stays silent where no polygon contains the point.
|
|
42
|
+
|
|
43
|
+
**Neither reading is a statement about what may be built.** The Department states that its data are "not
|
|
44
|
+
published here as legal definitions of the current actuality with regard to Local Authority zoning or their
|
|
45
|
+
geographic extents" and that "Original data should be sourced directly from the relevant Local Authority".
|
|
46
|
+
Those exclusions ride on every reading.
|
|
47
|
+
|
|
48
|
+
## The vocabulary decision — the verbatim code, and the crosswalk beside it
|
|
49
|
+
|
|
50
|
+
This is the layer's distinctive contract, and Ireland is a natural experiment on it: a national authority
|
|
51
|
+
already built the crosswalk, over one small country, with statutory access to the plans.
|
|
52
|
+
|
|
53
|
+
Measured over the whole national export:
|
|
54
|
+
|
|
55
|
+
| measurement | value |
|
|
56
|
+
| --------------------------------------------------------------- | ------: |
|
|
57
|
+
| distinct local zone strings (`ZONE_ORIG`) across 30 authorities | **581** |
|
|
58
|
+
| the same, trimmed and case-folded | **555** |
|
|
59
|
+
| distinct national generic types (`ZONE_GZT`) observed | **55** |
|
|
60
|
+
| generic types the service's own coded-value domain DECLARES | **54** |
|
|
61
|
+
| distinct `(authority, local code)` pairs | **795** |
|
|
62
|
+
| **pairs taking MORE THAN ONE generic type** | **52** |
|
|
63
|
+
|
|
64
|
+
**The decisive one is the last.** If a local code determined a generic type, the mapping could ship as a
|
|
65
|
+
lookup and the local column would be redundant. It does not: Cork County Council's `Special Policy Area` takes
|
|
66
|
+
**14** different generic types, its `Green Infrastructure` **12**, and Clare's `Utilities` **11**. The mapping
|
|
67
|
+
is per polygon, authored by a person reading a plan, and it cannot be reconstructed from the pair of columns.
|
|
68
|
+
|
|
69
|
+
So `zoning_area` carries **both**, and `zoning_crosswalk_edge` ships **empty** — checked rather than assumed:
|
|
70
|
+
`assertCrosswalkIsNotATable` refuses a build that would write an edge while any pair is non-functional.
|
|
71
|
+
|
|
72
|
+
The Department says the same thing in its own words, in the item description:
|
|
73
|
+
|
|
74
|
+
> This represents a consistent zoning scheme across all local authorities, and **complements (rather than
|
|
75
|
+
> replaces) the existing statutory zoning used for each individual plan**.
|
|
76
|
+
|
|
77
|
+
**The declared domain is closed and the source already breaks it.** 54 declared against 55 used: `N/A` appears
|
|
78
|
+
on 4 rows and in no domain. So `zoning_vocabulary` carries the declared domain **plus** the values observed in
|
|
79
|
+
the data, with `declared` separating them — folding the two would either hide a source-schema change or invent
|
|
80
|
+
a declaration the Department never made. A declared code the data never uses is kept at `observed_rows = 0`
|
|
81
|
+
for the same reason: `SDZ` is a real plan level nobody has used yet.
|
|
82
|
+
|
|
83
|
+
## Three measured source behaviors a builder has to know
|
|
84
|
+
|
|
85
|
+
### Hole roles come from ring ORIENTATION, and clockwise is the exterior
|
|
86
|
+
|
|
87
|
+
The inverse of RFC 7946's convention, and the one thing about this source that produces a well-formed wrong
|
|
88
|
+
answer in silence. Measured over the whole national export (85,330 features, 93,483 rings):
|
|
89
|
+
|
|
90
|
+
| reading | km² |
|
|
91
|
+
| ---------------------------------------------------------- | ----------: |
|
|
92
|
+
| sum of signed ring areas, in the source's own ITM meters | **5,444.5** |
|
|
93
|
+
| the Department's own `Shape__Area` sum | **5,444.5** |
|
|
94
|
+
| sum of ABSOLUTE ring areas, in the source's own ITM meters | **5,666.6** |
|
|
95
|
+
|
|
96
|
+
**Read in the source's own projection the signed sum matches the publisher to eight decimal places**
|
|
97
|
+
(5,444,492,956.43 m² against 5,444,492,956.40) — which is what settles the convention. The BUILD compares a
|
|
98
|
+
spherical reading of the reprojected rings, so its own numbers sit a few tenths of a percent away from both:
|
|
99
|
+
5,423.2 km² with holes against the publisher's 5,444.5 (**0.392% apart**), and 5,644.4 km² without them
|
|
100
|
+
(**3.7% away**). That gap between the two readings is the signal, and the 1% build tolerance sits between them
|
|
101
|
+
with room on each side — Irish Transverse Mercator's scale factor and a spherical approximation together
|
|
102
|
+
contribute a few tenths of a percent, and hole-blindness contributes ten times that.
|
|
103
|
+
|
|
104
|
+
89,967 rings are clockwise and 3,516 counter-clockwise; 1,309 features carry both windings. Of those, 1,210
|
|
105
|
+
nest their holes inside one polygon part the way RFC 7946 expects and the rest put every ring in its own
|
|
106
|
+
`MultiPolygon` part — the largest feature in the country, Meath's `RA - Rural Area`, arrives as 107 single-ring
|
|
107
|
+
parts of which 5 are clockwise and 102 counter-clockwise. **Both encodings reach the ingest, and the
|
|
108
|
+
orientation is the only signal that means the same thing in both.**
|
|
109
|
+
|
|
110
|
+
**Two residuals, both measured and both carried rather than refused.** Nine of the 3,516 holes share their
|
|
111
|
+
parent's boundary rather than sitting inside it — every one a sliver under 1.7 m² — and go to the smallest
|
|
112
|
+
exterior of their own feature, which on eight of the nine is the only exterior there is. And **exactly one
|
|
113
|
+
feature of 85,330** has no ring the rule can read as an exterior at all: `OBJECTID` 74040, Galway County
|
|
114
|
+
Council's `Agriculture`, a three-vertex ring enclosing 3.0 × 10⁻⁷ m². At that magnitude a ring's winding is
|
|
115
|
+
floating-point noise rather than something the publisher stated — it reads clockwise in the source's own Irish
|
|
116
|
+
Transverse Mercator meters and counter-clockwise after reprojection — so the largest ring by magnitude becomes
|
|
117
|
+
the exterior, which is also the correct reading for a feature published wholly inverted. Both counts ride on
|
|
118
|
+
the build receipt rather than being implied to be zero.
|
|
119
|
+
|
|
120
|
+
The area error is 4.1% and is the harmless half. The harmful half is that a ray cast treating all 107 rings as
|
|
121
|
+
exteriors answers "inside `P5` rural zoning" for every location the plan carved out.
|
|
122
|
+
|
|
123
|
+
**GDAL cannot be asked to preserve this**, which is why the ingest streams WKT rather than GeoJSON. Its GeoJSON
|
|
124
|
+
writer enforces the RFC 7946 winding unconditionally — `-lco RFC7946=NO` is not a GeoJSONSeq option and
|
|
125
|
+
`--config OGR_ORGANIZE_POLYGONS SKIP` changes nothing — so through GeoJSONSeq the Meath feature arrives as 107
|
|
126
|
+
counter-clockwise exteriors totalling 2,371.9 km² against the Department's 2,232.1 km². The same conversion
|
|
127
|
+
written as CSV/WKT keeps the source's 5/102 split intact.
|
|
128
|
+
|
|
129
|
+
### The publisher's own area column is not in the archive
|
|
130
|
+
|
|
131
|
+
`Shape__Area` is a service field and the bulk GeoJSON export drops it, so the area cross-check reads it from the
|
|
132
|
+
live service instead — which is what makes it a two-path check rather than the archive agreeing with
|
|
133
|
+
itself. Measured: 5,444,492,956.40 m² over 85,330 features.
|
|
134
|
+
|
|
135
|
+
### The definition host has no DNS record
|
|
136
|
+
|
|
137
|
+
All 85,330 rows link their generic type's definition to `viewer.myplan.ie`, which has no A or AAAA record, and
|
|
138
|
+
three candidate replacements on the live host answer HTTP 404. The 54 code-to-label pairs survive in the
|
|
139
|
+
service's own coded-value domain; the **definitions** behind them do not. So `zoning_vocabulary.definition_url`
|
|
140
|
+
is NULL on every row rather than filled with a plausible one.
|
|
141
|
+
|
|
142
|
+
### And two acquisition behaviors
|
|
143
|
+
|
|
144
|
+
- The Hub download job answers `{"status":"Completed","resultUrl":…}` in 249 bytes, and the result URL **302s**
|
|
145
|
+
— the transfer follows redirects, and a client that took the first response as the file would write a
|
|
146
|
+
redirect page to disk and report a successful download.
|
|
147
|
+
- The bulk export is **EPSG:2157** (IRENET95 / Irish Transverse Mercator) declared in a top-level `crs` member
|
|
148
|
+
RFC 7946 removed from the format. GDAL honours the legacy member; a strict reader ignores it and places
|
|
149
|
+
Ireland's zoning at latitude 735,435. The ingest asserts the source's declared authority code before reading
|
|
150
|
+
a feature, and asserts every reprojected vertex inside the Department's own declared extent.
|
|
151
|
+
|
|
152
|
+
## The two tiers
|
|
153
|
+
|
|
154
|
+
`zoning_area` holds the authority's **unsimplified** rings with their hole roles resolved, plus a precomputed
|
|
155
|
+
bounding box; `zoning_cell` is an H3 containment index above it, `WITHOUT ROWID`, keyed `(h3_cell, area_id)`.
|
|
156
|
+
A probe walks the index first and reaches the geometry only for a cell a boundary crosses.
|
|
157
|
+
|
|
158
|
+
**The index is cell-touches-polygon, never cell-center-in-polygon**, and a feature that reaches no cell fails
|
|
159
|
+
the build. That is not a preference: `polygonToCells` — the polyfill a builder reaches for first — returns
|
|
160
|
+
nothing at all for most of these polygons, and every dropped polygon would read downstream as an absence of
|
|
161
|
+
zoning at exactly the question this layer exists to answer.
|
|
162
|
+
|
|
163
|
+
`zoning_cell` rows are **mixed-resolution**: each feature's whole tier is compacted parent-ward, so a row
|
|
164
|
+
carries its own `resolution` and a probe walks its own `cellToParent` chain over every resolution the table
|
|
165
|
+
holds. `layer_coverage` stays single-resolution.
|
|
166
|
+
|
|
167
|
+
## The resolution is a measurement, and NOT the one the size contract names
|
|
168
|
+
|
|
169
|
+
The inherited size contract picks a resolution from the measured `partial` share. **For this subject that
|
|
170
|
+
statistic carries no signal**, and the reason was measured. Zoning polygons are mostly smaller than a cell:
|
|
171
|
+
|
|
172
|
+
| percentile | p1 | p5 | p10 | p25 | **p50** | p75 | p90 | p95 | p99 |
|
|
173
|
+
| ---------- | --: | --: | --: | ----: | --------: | -----: | -----: | -----: | ------: |
|
|
174
|
+
| area (m²) | 9 | 132 | 317 | 1,258 | **4,497** | 14,991 | 44,432 | 89,755 | 486,787 |
|
|
175
|
+
|
|
176
|
+
Against H3 average cell areas (h3-js 4.5.0): res 9 = 105,333 m², res 10 = 15,048 m², res 11 = 2,150 m².
|
|
177
|
+
**95.7% of zoning polygons are smaller than an average res-9 cell**, 75.1% smaller than a res-10 cell and
|
|
178
|
+
34.5% smaller than a res-11 cell — so the `partial` share sits near 100% at every candidate and cannot choose
|
|
179
|
+
between them.
|
|
180
|
+
|
|
181
|
+
Two numbers can, and both are measured over the FULL national set by
|
|
182
|
+
`mailwoman gazetteer build zoning --measure-resolutions 9,10,11`:
|
|
183
|
+
|
|
184
|
+
| res | features | polyfill-only zero-cell | stored cell rows | touched cells | candidates/cell mean | p90 | max | cells >1 candidate | partial share | coarsened |
|
|
185
|
+
| ------ | -------: | ----------------------: | ---------------: | ------------: | -------------------: | ----: | --: | -----------------: | ------------: | --------: |
|
|
186
|
+
| 9 | 85,330 | 73,068 (85.6%) | 48,882 | 68,184 | 3.39 | 9 | 90 | 28,056 (41.1%) | 58.0% | 0 |
|
|
187
|
+
| **10** | 85,330 | 48,412 (56.7%) | 237,411 | 426,993 | **1.69** | **3** | 55 | 121,884 (28.5%) | 40.6% | 0 |
|
|
188
|
+
| 11 | 85,330 | 19,224 (22.5%) | 1,121,461 | 1,897,777 | 1.32 | 2 | 23 | 432,969 (22.8%) | 37.0% | 1 |
|
|
189
|
+
|
|
190
|
+
**Resolution 10, chosen from those numbers.** Going from 9 to 10 takes the p90 candidate count from 9 to 3 — a
|
|
191
|
+
threefold reduction in the geometry a fringe probe reads — for 4.9× the stored rows. Going on from 10 to 11 buys
|
|
192
|
+
p90 3 → 2 for another 4.7× the rows. The knee is at 10, and the `partial` share (58.0 / 40.6 / 37.0%) has no
|
|
193
|
+
knee at all, which is the measurement that says it is the wrong column to choose on.
|
|
194
|
+
|
|
195
|
+
**The left-hand column is the finding, and it is a defect waiting to happen.** At resolution 9, `polygonToCells`
|
|
196
|
+
returns nothing at all for **73,068 of 85,330 polygons — 85.6%** — because no cell center falls inside them. A
|
|
197
|
+
builder that indexed only the polyfill output would silently drop six of every seven zoning polygons, and every
|
|
198
|
+
dropped polygon would read downstream as "no zoning here". Even at resolution 11 it drops 22.5%. The survey
|
|
199
|
+
measured 86.8% on one urban authority; the national figure is 85.6%, measured rather than extrapolated.
|
|
200
|
+
|
|
201
|
+
This index's own zero-cell count is **0 at every resolution**, by construction: `classifyFeatureCells` takes
|
|
202
|
+
overlapping containment and throws on a feature that reaches no cell. One feature (Meath's 2,232 km² rural zone)
|
|
203
|
+
is indexed coarser than 11 by the allocator budget, which is why the `coarsened` column reads 1 there.
|
|
204
|
+
|
|
205
|
+
## The build, as it ran
|
|
206
|
+
|
|
207
|
+
The full national build on this lab, at the chosen resolution 10 with coverage at res 6:
|
|
208
|
+
|
|
209
|
+
| what | measured |
|
|
210
|
+
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
211
|
+
| acquisition | 247,452,342 bytes in 42.0 s, one anonymous request following the Hub job's redirect |
|
|
212
|
+
| features | **85,330** — the archive, the service's `returnCountOnly` and the build all agree |
|
|
213
|
+
| authorities / plans | **30** local authorities, **63** plans |
|
|
214
|
+
| rings | 93,483 total · 89,967 exterior · 3,516 hole · 3,507 holes nested · **9** on a parent's boundary · **1** exterior by magnitude |
|
|
215
|
+
| cells | 64,273 whole (compacted) + 465,702 partial = **529,975** rows, at resolutions 6/7/8/9/10 · 0 features coarsened |
|
|
216
|
+
| coverage | **1,161** cells at res 6, every one `source_present` |
|
|
217
|
+
| area | publisher **5,444.5 km²** · rings with holes 5,423.2 km² (0.392% apart) · rings without holes 5,644.4 km² |
|
|
218
|
+
| vocabulary | `IE-GZT` 55 codes, **1 undeclared** (`N/A`) · 30 `IE-LOCAL:*` schemes · `IE-SZO` 21 · `IE-PLAN-LEVEL` 3 |
|
|
219
|
+
| crosswalk | **795** (authority, local code) pairs, **52** taking more than one generic type · `zoning_crosswalk_edge` empty |
|
|
220
|
+
| artifact | 174,678,016 bytes, sealed 0444 |
|
|
221
|
+
| verify (positive) | **48/48 agree** with the live service · 0 within boundary tolerance · 0 disagree · 0 local-code mismatches |
|
|
222
|
+
| verify (negative) | **6/6** Donegal and Northern Irish points read `unknown` with no designation |
|
|
223
|
+
|
|
224
|
+
## Building it
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# The whole country. Downloads the 247 MB export on the first run and caches it under its vintage.
|
|
228
|
+
mailwoman gazetteer build zoning
|
|
229
|
+
|
|
230
|
+
# The smoke rung: one local authority over the real export.
|
|
231
|
+
mailwoman gazetteer build zoning --export <path> --authority SD
|
|
232
|
+
|
|
233
|
+
# The measurement, which builds nothing.
|
|
234
|
+
mailwoman gazetteer build zoning --export <path> --measure-resolutions 9,10,11 --offline
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The build is **batched**: one child process per range of the authority's own feature ids, because h3's WASM
|
|
238
|
+
heap cannot be reset from JavaScript and does not survive an unbounded number of polyfill calls. This product's
|
|
239
|
+
85,330 features fit inside the 100,000-id default, and the bound ships anyway — a build that stays inside a
|
|
240
|
+
ceiling by luck is not the same fact as one that cannot cross it.
|
|
241
|
+
|
|
242
|
+
## Verification
|
|
243
|
+
|
|
244
|
+
`--verify` runs both halves against the Department's own feature service.
|
|
245
|
+
|
|
246
|
+
**Positive half.** A deterministic sample of interior points, spread across authorities, answered from the
|
|
247
|
+
sealed artifact and then re-asked of the live service. The service's rings get the SAME hole-role resolution
|
|
248
|
+
the ingest gave the archive's, so what is compared is a verdict against a verdict. A point within half a meter
|
|
249
|
+
of a service-polygon edge is reported as `boundary_tolerance` rather than as a disagreement, with its distance
|
|
250
|
+
**to the nearest edge** — a point a centimeter from a long edge can be meters from every vertex of it.
|
|
251
|
+
|
|
252
|
+
**Negative half, and it matters more here than for any sibling layer.** Donegal points and Northern Irish
|
|
253
|
+
points must come back `unknown` with no designation. A positive-only check would pass on an artifact that
|
|
254
|
+
reported the whole island as zoned.
|
|
255
|
+
|
|
256
|
+
## License and posture
|
|
257
|
+
|
|
258
|
+
**Three published statements disagree about the grant**, all read 2026-08-27:
|
|
259
|
+
|
|
260
|
+
1. `data.gov.ie` declares `license_id: "CC-BY-4.0"`.
|
|
261
|
+
2. The ArcGIS item's `licenseInfo` says the Department "aims to publish its data holdings into the future,
|
|
262
|
+
**where possible**, as Open Data licensed under Creative Commons Attribution 4.0" and, in the same field,
|
|
263
|
+
that copyright "belonging to our licensors (**Tailte Éireann**) may not be copied, transmitted or reproduced
|
|
264
|
+
without their prior consent. … © Tailte Éireann. All rights reserved. License No. 2023/OSi_NMA_073".
|
|
265
|
+
3. `myplan.ie`'s own disclaimer grants distribution and commercial use, and points at a map-viewer splash
|
|
266
|
+
screen for the operative terms.
|
|
267
|
+
|
|
268
|
+
A shipped layer needs one grant it can quote, and this record does not have one. So:
|
|
269
|
+
|
|
270
|
+
- `layer_manifest.license` is **`NOASSERTION`** — SPDX's own token for a determination nobody has made. Writing
|
|
271
|
+
`CC-BY-4.0` there while an all-rights-reserved clause names a licensor would be this program asserting a
|
|
272
|
+
grant.
|
|
273
|
+
- `layer_manifest.tier` is **`build-local`**, and `assertTierMatchesLicense` refuses a `shipped` build while the
|
|
274
|
+
license reads `NOASSERTION`. Moving the tier takes a deliberate edit at a line that names what is unresolved.
|
|
275
|
+
- `layer_manifest.attribution` carries **both halves** — the Department's credit line and the Tailte Éireann
|
|
276
|
+
clause — because a re-user who saw only the first would not know the second exists.
|
|
277
|
+
|
|
278
|
+
**What would change it:** the myplan.ie disclaimer names a fourth statement as authoritative ("For full details
|
|
279
|
+
of conditions of use please see map viewer splash screen"), and that splash text was not retrieved. Two ArcGIS
|
|
280
|
+
instant-app configurations linked from the viewer page were read and neither is the zoning viewer's. That is
|
|
281
|
+
the single fact that would move this layer from `build-local` to `shipped`.
|
|
282
|
+
|
|
283
|
+
**And the npm hold is separate.** `@mailwoman/zoning` is a brand-new npm name awaiting its `bless-package`
|
|
284
|
+
first publish, which Trusted Publishing cannot perform from CI — so the workspace is held out of
|
|
285
|
+
`.release-it.json` with its reason recorded as data in `SANCTIONED_RELEASE_ABSENCES`
|
|
286
|
+
(`scripts/release-stage.ts`). Resolving either hold does not resolve the other.
|
|
287
|
+
|
|
288
|
+
## The mapped-footprint question — what is settled, and what would change it
|
|
289
|
+
|
|
290
|
+
`zoning_mapped_extent` ships **empty**, and its emptiness is the claim. The Department states "Awaiting data for
|
|
291
|
+
some Local Authorities - please see map viewer for coverage details" and publishes that detail only inside a map
|
|
292
|
+
application. Donegal's absence was recovered by measuring `LA_CODE`, not read from a coverage statement, and
|
|
293
|
+
whether other authorities are partially rather than wholly represented is unknown.
|
|
294
|
+
|
|
295
|
+
**Deriving a footprint from the union of the zoning polygons is forbidden**, for the same reason the flood layer
|
|
296
|
+
forbids it: the union of zoned areas is not the area the authority examined, and the difference is the whole
|
|
297
|
+
content of a negative answer. It is not even a stable shape here — one authority's drafting convention moves the
|
|
298
|
+
national zoned-area figure by 41%, because Meath County Council zones its entire rural remainder as one 2,232 km²
|
|
299
|
+
polygon against 32.5 km² for the next largest in the country.
|
|
300
|
+
|
|
301
|
+
What would move this layer from `source_present` to a stronger basis is a published statement of the area the
|
|
302
|
+
Department MAPPED, plus its geometry.
|
|
303
|
+
|
|
304
|
+
## Consumer
|
|
305
|
+
|
|
306
|
+
`packages/mailwoman/lib/observations/zoning-route.ts` reads a finished coordinate and records what an adopted plan
|
|
307
|
+
assigns there, as one additive `authority_designation` marker with `mechanism: layer:zoning`. **Default off, and
|
|
308
|
+
the switch is the presence of `$MAILWOMAN_DATA_ROOT/zoning/zoning-ireland.db`** rather than a boolean. No layer
|
|
309
|
+
file, no route, and the geocode result is byte-identical to a build without the field.
|
|
310
|
+
|
|
311
|
+
## See also
|
|
312
|
+
|
|
313
|
+
- The survey that produced this layer: `docs/superpowers/specs/2026-08-27-zoning-layer-survey.md`
|
|
314
|
+
- The layer contract: `docs/engineering/reference/layer-contract.mdx`
|
|
315
|
+
- The runtime-flag register: `docs/engineering/reference/runtime-flags.mdx`
|