@mailwoman/zoning 11.0.0 → 11.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 +19 -19
- package/lib/index.ts +7 -7
- package/lib/paths.ts +3 -4
- package/lib/ring-roles.ts +6 -7
- package/lib/rings.ts +5 -5
- package/lib/schema.ts +5 -8
- package/lib/vocabulary.ts +6 -6
- package/out/index.d.ts +4 -7
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -5
- package/out/index.js.map +1 -1
- package/out/paths.d.ts +0 -7
- package/out/paths.d.ts.map +1 -1
- package/out/paths.js +2 -4
- package/out/paths.js.map +1 -1
- package/out/ring-roles.d.ts +3 -7
- package/out/ring-roles.d.ts.map +1 -1
- package/out/ring-roles.js +4 -6
- package/out/ring-roles.js.map +1 -1
- package/out/rings.d.ts +2 -5
- package/out/rings.d.ts.map +1 -1
- package/out/rings.js +4 -5
- package/out/rings.js.map +1 -1
- package/out/schema.d.ts +3 -8
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +2 -5
- package/out/schema.js.map +1 -1
- package/out/sdk/build-zoning.d.ts +4 -11
- package/out/sdk/build-zoning.d.ts.map +1 -1
- package/out/sdk/build-zoning.js +12 -12
- package/out/sdk/build-zoning.js.map +1 -1
- package/out/sdk/cells.d.ts +3 -6
- package/out/sdk/cells.d.ts.map +1 -1
- package/out/sdk/cells.js +4 -5
- package/out/sdk/cells.js.map +1 -1
- package/out/sdk/client.d.ts +3 -6
- package/out/sdk/client.d.ts.map +1 -1
- package/out/sdk/client.js +5 -6
- package/out/sdk/client.js.map +1 -1
- package/out/sdk/download.d.ts +0 -7
- package/out/sdk/download.d.ts.map +1 -1
- package/out/sdk/download.js +4 -5
- package/out/sdk/download.js.map +1 -1
- package/out/sdk/ingest/chunk.d.ts +0 -7
- package/out/sdk/ingest/chunk.d.ts.map +1 -1
- package/out/sdk/ingest/chunk.js +4 -5
- package/out/sdk/ingest/chunk.js.map +1 -1
- package/out/sdk/ingest/worker.d.ts +0 -7
- package/out/sdk/ingest/worker.d.ts.map +1 -1
- package/out/sdk/ingest/worker.js +5 -6
- package/out/sdk/ingest/worker.js.map +1 -1
- package/out/sdk/ingest.d.ts +0 -11
- package/out/sdk/ingest.d.ts.map +1 -1
- package/out/sdk/ingest.js +7 -7
- package/out/sdk/ingest.js.map +1 -1
- package/out/sdk/measure-resolutions.d.ts +3 -6
- package/out/sdk/measure-resolutions.d.ts.map +1 -1
- package/out/sdk/measure-resolutions.js +3 -8
- package/out/sdk/measure-resolutions.js.map +1 -1
- package/out/sdk/test-kit.d.ts +6 -6
- package/out/sdk/test-kit.d.ts.map +1 -1
- package/out/sdk/test-kit.js +10 -8
- package/out/sdk/test-kit.js.map +1 -1
- package/out/sdk/verify.d.ts +41 -24
- package/out/sdk/verify.d.ts.map +1 -1
- package/out/sdk/verify.js +5 -34
- package/out/sdk/verify.js.map +1 -1
- package/out/vocabulary.d.ts +3 -6
- package/out/vocabulary.d.ts.map +1 -1
- package/out/vocabulary.js +5 -6
- package/out/vocabulary.js.map +1 -1
- package/package.json +6 -6
- package/sdk/build-zoning.ts +13 -12
- package/sdk/cells.ts +6 -6
- package/sdk/client.ts +6 -6
- package/sdk/download.ts +5 -5
- package/sdk/ingest/chunk.ts +5 -5
- package/sdk/ingest/worker.ts +6 -6
- package/sdk/ingest.ts +8 -7
- package/sdk/measure-resolutions.ts +6 -6
- package/sdk/test-kit.ts +11 -8
- package/sdk/verify.ts +45 -25
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The Department of Housing, Local Government and Heritage publishes the data for
|
|
|
8
8
|
covers **30 of the Republic's 31 local authorities**, and Donegal County Council is the one missing. Against
|
|
9
9
|
Census 2022 (CSO table `FY003A`), **4,982,055 of 5,149,139 residents (96.76%) live in a local authority whose
|
|
10
10
|
zoning is represented in the layer.** That figure describes jurisdictions only. An address in a covered authority
|
|
11
|
-
|
|
11
|
+
doesn't mean that a zoning polygon covers your address.
|
|
12
12
|
|
|
13
13
|
**The artifact is built locally and never redistributed.** Three published statements disagree about the
|
|
14
14
|
source's license, so the manifest records `tier: build-local` and `license: NOASSERTION`. The builder refuses
|
|
@@ -18,10 +18,10 @@ a `shipped` tier until the license question is resolved in writing. See _License
|
|
|
18
18
|
|
|
19
19
|
The layer has two readings. The reading it lacks matters most.
|
|
20
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. This reading
|
|
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. This reading doesn't claim absence, and this layer has no absence reading |
|
|
25
25
|
|
|
26
26
|
**This layer has no `designated_absence` reading, and zoning is the hardest case of this rule.** For flood
|
|
27
27
|
zones the Environment Agency states England-wide coverage, and the Planning Practice Guidance defines Zone 1
|
|
@@ -29,8 +29,8 @@ as the land outside Zones 2 and 3, so an empty flood answer inside England is a
|
|
|
29
29
|
such definition anywhere. A location with no zoning polygon can be in at least four different situations:
|
|
30
30
|
|
|
31
31
|
1. Outside any adopted plan area. Most land in most countries lies outside one. The authority has made no statement.
|
|
32
|
-
2. Inside a plan area, on land the plan
|
|
33
|
-
3. In a jurisdiction that
|
|
32
|
+
2. Inside a plan area, on land the plan doesn't zone.
|
|
33
|
+
3. In a jurisdiction that's never adopted zoning at all.
|
|
34
34
|
4. In a jurisdiction whose records no person or program has read or published yet.
|
|
35
35
|
|
|
36
36
|
**The source states one of these cases explicitly. That shows the other cases are absences.** It
|
|
@@ -62,7 +62,7 @@ These figures cover the whole national export:
|
|
|
62
62
|
| **pairs taking more than one generic type** | **52** |
|
|
63
63
|
|
|
64
64
|
**The last figure decides the design.** If a local code determined a generic type, the mapping could ship as
|
|
65
|
-
a lookup and the local column would be redundant. A local code
|
|
65
|
+
a lookup and the local column would be redundant. A local code doesn't determine the type. Cork County
|
|
66
66
|
Council's `Special Policy Area` takes **14** different generic types, its `Green Infrastructure` takes **12**,
|
|
67
67
|
and Clare's `Utilities` takes **11**. A person assigned the mapping per polygon while reading a plan, and it
|
|
68
68
|
cannot be reconstructed from the pair of columns.
|
|
@@ -112,7 +112,7 @@ the only signal that means the same thing in both.**
|
|
|
112
112
|
|
|
113
113
|
**Two residual cases are measured and handled instead of rejected.** Nine of the 3,516 holes share their
|
|
114
114
|
parent's boundary instead of sitting inside it. Each is a sliver under 1.7 m², and each is assigned to the
|
|
115
|
-
smallest exterior of its own feature. On eight of the nine, that
|
|
115
|
+
smallest exterior of its own feature. On eight of the nine, that's the feature's only exterior. **Exactly one
|
|
116
116
|
feature of 85,330** has no ring that the rule can read as an exterior: `OBJECTID` 74040, Galway County
|
|
117
117
|
Council's `Agriculture`, a three-vertex ring enclosing 3.0 × 10⁻⁷ m². At that magnitude a ring's winding is
|
|
118
118
|
floating-point noise and not something the publisher stated. It reads clockwise in the source's own Irish
|
|
@@ -124,12 +124,12 @@ The area error is 4.1%, and it is the harmless consequence. The harmful conseque
|
|
|
124
124
|
treating all 107 rings as exteriors answers "inside `P5` rural zoning" for every location the plan carved out.
|
|
125
125
|
|
|
126
126
|
**GDAL has no option that preserves this orientation**, so the ingest streams WKT instead of GeoJSON. GDAL's
|
|
127
|
-
GeoJSON writer always enforces the RFC 7946 winding. `-lco RFC7946=NO`
|
|
127
|
+
GeoJSON writer always enforces the RFC 7946 winding. `-lco RFC7946=NO` isn't a GeoJSONSeq option, and
|
|
128
128
|
`--config OGR_ORGANIZE_POLYGONS SKIP` has no effect. Through GeoJSONSeq the Meath feature therefore arrives as
|
|
129
129
|
107 counter-clockwise exteriors totaling 2,371.9 km² against the Department's 2,232.1 km². The same
|
|
130
130
|
conversion written as CSV/WKT keeps the source's 5/102 split intact.
|
|
131
131
|
|
|
132
|
-
### The publisher's own area column
|
|
132
|
+
### The publisher's own area column isn't in the archive
|
|
133
133
|
|
|
134
134
|
`Shape__Area` is a service field, and the bulk GeoJSON export drops it. The area cross-check therefore reads
|
|
135
135
|
it from the live service. The check therefore compares two independent paths instead of comparing the
|
|
@@ -170,7 +170,7 @@ table holds. `layer_coverage` stays single-resolution.
|
|
|
170
170
|
## The resolution is a measurement, and not the one the size interface names
|
|
171
171
|
|
|
172
172
|
The inherited size interface picks a resolution from the measured `partial` share. **For this subject that
|
|
173
|
-
statistic
|
|
173
|
+
statistic doesn't separate the candidates**, and measurement shows why. Most zoning polygons are smaller than a cell:
|
|
174
174
|
|
|
175
175
|
| percentile | p1 | p5 | p10 | p25 | **p50** | p75 | p90 | p95 | p99 |
|
|
176
176
|
| ---------- | --: | --: | --: | ----: | --------: | -----: | -----: | -----: | ------: |
|
|
@@ -226,7 +226,7 @@ The full national build ran on this lab at the chosen resolution 10, with covera
|
|
|
226
226
|
|
|
227
227
|
## Build it
|
|
228
228
|
|
|
229
|
-
```
|
|
229
|
+
```sh
|
|
230
230
|
# The whole country. Downloads the 247 MB export on the first run and caches it under its vintage.
|
|
231
231
|
mailwoman gazetteer build zoning
|
|
232
232
|
|
|
@@ -269,16 +269,16 @@ reported the whole island as zoned.
|
|
|
269
269
|
3. `myplan.ie`'s own disclaimer grants distribution and commercial use, and points at a map-viewer splash
|
|
270
270
|
screen for the operative terms.
|
|
271
271
|
|
|
272
|
-
A shipped layer needs one grant that it can quote, and this record
|
|
272
|
+
A shipped layer needs one grant that it can quote, and this record doesn't have one. As a result:
|
|
273
273
|
|
|
274
274
|
- `layer_manifest.license` is **`NOASSERTION`**, SPDX's own token for a license that no one has determined. A
|
|
275
275
|
`CC-BY-4.0` value there while an all-rights-reserved clause identifies a licensor would mean this program asserting
|
|
276
276
|
a grant.
|
|
277
277
|
- `layer_manifest.tier` is **`build-local`**, and `assertTierMatchesLicense` refuses a `shipped` build while the
|
|
278
|
-
license reads `NOASSERTION`. A tier change requires a deliberate edit at a line that states what
|
|
278
|
+
license reads `NOASSERTION`. A tier change requires a deliberate edit at a line that states what's
|
|
279
279
|
unresolved.
|
|
280
280
|
- `layer_manifest.attribution` stores **both parts**, the Department's credit line and the Tailte Éireann
|
|
281
|
-
clause, because a re-user who saw only the first
|
|
281
|
+
clause, because a re-user who saw only the first wouldn't know that the second exists.
|
|
282
282
|
|
|
283
283
|
**What would change it:** The myplan.ie disclaimer points to a fourth statement as authoritative ("For full
|
|
284
284
|
details of conditions of use please see map viewer splash screen"), and that splash text was not retrieved. Two
|
|
@@ -288,7 +288,7 @@ viewer. The splash text is the single fact that would move this layer from `buil
|
|
|
288
288
|
The npm package is unaffected. `@mailwoman/zoning` publishes with every release from `.release-it.json`'s
|
|
289
289
|
workspace list. The `build-local` tier applies only to the data.
|
|
290
290
|
|
|
291
|
-
## The mapped-footprint question — what
|
|
291
|
+
## The mapped-footprint question — what's settled, and what would change it
|
|
292
292
|
|
|
293
293
|
`zoning_mapped_extent` ships **empty**. The empty table records that no mapped footprint is known. The Department states
|
|
294
294
|
"Awaiting data for some Local Authorities - please see map viewer for coverage details" and publishes that
|
|
@@ -297,7 +297,7 @@ coverage statement. It is unknown whether other authorities are only partially r
|
|
|
297
297
|
|
|
298
298
|
**A footprint derived from the union of the zoning polygons is forbidden**, for the same reason the flood layer
|
|
299
299
|
forbids it. The union of zoned areas differs from the area the authority examined, and that difference is
|
|
300
|
-
exactly what a negative answer would need to report. The union
|
|
300
|
+
exactly what a negative answer would need to report. The union isn't even a stable shape here. One authority's
|
|
301
301
|
drafting convention changes the national zoned-area figure by 41%, because Meath County Council zones its entire
|
|
302
302
|
rural remainder as one 2,232 km² polygon, against 32.5 km² for the next largest polygon in the country.
|
|
303
303
|
|
|
@@ -309,7 +309,7 @@ layer could move from `source_present` to a stronger basis.
|
|
|
309
309
|
`packages/mailwoman/lib/observations/zoning-route.ts` reads a finished coordinate and records what an adopted plan
|
|
310
310
|
assigns there, as one additive `authority_designation` marker with `mechanism: layer:zoning`. **The route is off
|
|
311
311
|
by default and turns on when `$MAILWOMAN_DATA_ROOT/db/zoning/zoning-ireland.db` exists.** The file's presence is the only switch.
|
|
312
|
-
Without the layer file the route
|
|
312
|
+
Without the layer file the route doesn't run, and the geocode result is byte-identical to a build without the
|
|
313
313
|
field.
|
|
314
314
|
|
|
315
315
|
## See also
|
package/lib/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Synchronous reader for `zoning-ireland.db` that returns the zoning an adopted local plan assigns at a coordinate.
|
|
5
|
+
* Synchronous reader for `zoning-ireland.db` that returns the zoning an adopted
|
|
6
|
+
* local plan assigns at a coordinate.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import {
|
|
@@ -96,7 +96,7 @@ export interface ZoningJurisdiction {
|
|
|
96
96
|
/**
|
|
97
97
|
* The plan that a zone belongs to, with its stated validity window.
|
|
98
98
|
*
|
|
99
|
-
* The caller must compare the window with the current date, because a plan that
|
|
99
|
+
* The caller must compare the window with the current date, because a plan that's
|
|
100
100
|
* not superseded can still have a `validTo` in the past.
|
|
101
101
|
*/
|
|
102
102
|
export interface ZoningPlan {
|
|
@@ -197,7 +197,7 @@ export interface ZoningReading {
|
|
|
197
197
|
*/
|
|
198
198
|
indexCellIndex: string
|
|
199
199
|
/**
|
|
200
|
-
* The authority's own statements of what the product
|
|
200
|
+
* The authority's own statements of what the product doesn't state.
|
|
201
201
|
*/
|
|
202
202
|
limits: ReadonlyArray<string>
|
|
203
203
|
/**
|
package/lib/paths.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* Where the zoning layer database and its download cache live under the data root's `db/` group.
|
|
7
6
|
*/
|
|
8
7
|
|
package/lib/ring-roles.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes hole roles by
|
|
7
|
-
* orientation rather than nesting.
|
|
5
|
+
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes
|
|
6
|
+
* hole roles by orientation rather than nesting.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
9
|
import { pointInRing, ringSignedAreaM2, type MultiPolygonRings } from "@mailwoman/spatial"
|
|
@@ -35,7 +34,7 @@ export interface ResolvedRingRoles {
|
|
|
35
34
|
nestedHoles: number
|
|
36
35
|
/**
|
|
37
36
|
* Holes no exterior contains a majority of, placed under the smallest exterior
|
|
38
|
-
* of the same feature and counted here: they
|
|
37
|
+
* of the same feature and counted here: they're retained rather than dropped,
|
|
39
38
|
* because dropping one would add ground the plan carved out.
|
|
40
39
|
*/
|
|
41
40
|
adjacentHoles: number
|
package/lib/rings.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* `zoning_area.rings` — the blob layout and point test re-exported from `@mailwoman/spatial`;
|
|
7
|
-
* `resolveRingRoles` stays local because the clockwise-exterior role encoding
|
|
6
|
+
* `resolveRingRoles` stays local because the clockwise-exterior role encoding
|
|
7
|
+
* belongs to this publisher rather than to geometry.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
export { resolveRingRoles, type ResolvedRingRoles } from "#ring-roles"
|
package/lib/schema.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
4
|
import type { layerschemadatabase, MappedExtentTable } from "@mailwoman/core/layers"
|
|
8
5
|
import {
|
|
@@ -49,7 +46,7 @@ export interface ZoningAreaTable {
|
|
|
49
46
|
*/
|
|
50
47
|
jurisdiction_id: string
|
|
51
48
|
/**
|
|
52
|
-
* The plan this zone belongs to, keyed to `zoning_plan`: a zone without its plan
|
|
49
|
+
* The plan this zone belongs to, keyed to `zoning_plan`: a zone without its plan isn't a claim.
|
|
53
50
|
*/
|
|
54
51
|
plan_id: string
|
|
55
52
|
/**
|
|
@@ -139,7 +136,7 @@ export interface ZoningPlanTable {
|
|
|
139
136
|
/**
|
|
140
137
|
* `CURRENT_PLAN`, stored as published.
|
|
141
138
|
*
|
|
142
|
-
* `1` means the publisher
|
|
139
|
+
* `1` means the publisher hasn't superseded the plan.
|
|
143
140
|
* `valid_to` records whether it remains in force today.
|
|
144
141
|
*/
|
|
145
142
|
current_plan: number
|
|
@@ -203,7 +200,7 @@ export interface ZoningVocabularyTable {
|
|
|
203
200
|
/**
|
|
204
201
|
* A publisher's own mapping between two schemes, where it publishes one as a table.
|
|
205
202
|
*
|
|
206
|
-
* Empty for Ireland: the mapping
|
|
203
|
+
* Empty for Ireland: the mapping isn't a function of the (authority, local code) pair, so it lives on
|
|
207
204
|
* `zoning_area` per row and {@linkcode assertCrosswalkIsNotATable} refuses a build that writes edges.
|
|
208
205
|
*/
|
|
209
206
|
export interface ZoningCrosswalkEdgeTable {
|
package/lib/vocabulary.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* The Department's product identity, declared vocabularies, stated limits and license status for the zoning layer.
|
|
5
|
+
* The Department's product identity, declared vocabularies, stated limits
|
|
6
|
+
* and license status for the zoning layer.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -197,7 +197,7 @@ export const GZT_PLAN_LEVEL_SET: ReadonlySet<string> = new Set(GZT_PLAN_LEVELS.m
|
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* The `CURRENT_PLAN` domain, verbatim, keyed by the published integer, where 1 means the
|
|
200
|
-
* plan
|
|
200
|
+
* plan isn't superseded and its validity window is stored separately on `zoning_plan`.
|
|
201
201
|
*/
|
|
202
202
|
export const GZT_CURRENT_PLAN_VALUES: ReadonlyMap<number, string> = new Map([
|
|
203
203
|
[1, "Current plan"],
|
package/out/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Synchronous reader for `zoning-ireland.db` that returns the zoning an adopted local plan assigns at a coordinate.
|
|
2
|
+
* Synchronous reader for `zoning-ireland.db` that returns the zoning an adopted
|
|
3
|
+
* local plan assigns at a coordinate.
|
|
7
4
|
*/
|
|
8
5
|
import { type CoverageCell, type LayerManifest } from "@mailwoman/core/layers";
|
|
9
6
|
import { CoverageBasis } from "@mailwoman/evidence";
|
|
@@ -62,7 +59,7 @@ export interface ZoningJurisdiction {
|
|
|
62
59
|
/**
|
|
63
60
|
* The plan that a zone belongs to, with its stated validity window.
|
|
64
61
|
*
|
|
65
|
-
* The caller must compare the window with the current date, because a plan that
|
|
62
|
+
* The caller must compare the window with the current date, because a plan that's
|
|
66
63
|
* not superseded can still have a `validTo` in the past.
|
|
67
64
|
*/
|
|
68
65
|
export interface ZoningPlan {
|
|
@@ -164,7 +161,7 @@ export interface ZoningReading {
|
|
|
164
161
|
*/
|
|
165
162
|
indexCellIndex: string;
|
|
166
163
|
/**
|
|
167
|
-
* The authority's own statements of what the product
|
|
164
|
+
* The authority's own statements of what the product doesn't state.
|
|
168
165
|
*/
|
|
169
166
|
limits: ReadonlyArray<string>;
|
|
170
167
|
/**
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,OAAO,EAIN,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAWnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAY9C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC7B;;OAEG;aACH,UAAU,EAA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C,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACnG;;;OAGG;IACH,aAAa,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,YAAY,EAAE,eAAe,CAAA;CAC7B;AA6BD;;;;;GAKG;AACH,qBAAa,YAAa,YAAW,UAAU;;IAC9C,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAA;IAUtC,YAAY,OAAO,EAAE,mBAAmB,EAgCvC;IAED;;OAEG;IACI,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,CAchE;IAEM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAE9B;CA8HD"}
|
package/out/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Synchronous reader for `zoning-ireland.db` that returns the zoning an adopted local plan assigns at a coordinate.
|
|
4
|
+
* Synchronous reader for `zoning-ireland.db` that returns the zoning an adopted
|
|
5
|
+
* local plan assigns at a coordinate.
|
|
7
6
|
*/
|
|
8
7
|
import { assertCoverageLicensesNoExclusion, assertNoCellsFinerThanIndex, parseManifestRows, } from "@mailwoman/core/layers";
|
|
9
8
|
import { CoverageBasis } from "@mailwoman/evidence";
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[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ths.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Where the zoning layer database and its download cache live under the data root's `db/` group.
|
|
7
|
-
*/
|
|
8
1
|
import type { PathBuilder, PathBuilderLike } from "path-ts";
|
|
9
2
|
/**
|
|
10
3
|
* `<dataRoot>/db/zoning`.
|
package/out/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,eAAe,GAAG,WAAW,CAEzE;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,WAAgD,CAAA"}
|
package/out/paths.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* Where the zoning layer database and its download cache live under the data root's `db/` group.
|
|
7
5
|
*/
|
|
8
6
|
import { databaseRootPath, dataRootPath } from "@mailwoman/core/data-root";
|
package/out/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAG1E;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAyB;IAC3D,OAAO,gBAAgB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAA;AAC5C,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgB,kBAAkB,CAAC,YAAY,EAAE,CAAC,CAAA"}
|
package/out/ring-roles.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes hole roles by
|
|
7
|
-
* orientation rather than nesting.
|
|
2
|
+
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes
|
|
3
|
+
* hole roles by orientation rather than nesting.
|
|
8
4
|
*/
|
|
9
5
|
import { type MultiPolygonRings } from "@mailwoman/spatial";
|
|
10
6
|
/**
|
|
@@ -24,7 +20,7 @@ export interface ResolvedRingRoles {
|
|
|
24
20
|
nestedHoles: number;
|
|
25
21
|
/**
|
|
26
22
|
* Holes no exterior contains a majority of, placed under the smallest exterior
|
|
27
|
-
* of the same feature and counted here: they
|
|
23
|
+
* of the same feature and counted here: they're retained rather than dropped,
|
|
28
24
|
* because dropping one would add ground the plan carved out.
|
|
29
25
|
*/
|
|
30
26
|
adjacentHoles: number;
|
package/out/ring-roles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ring-roles.d.ts","sourceRoot":"","sources":["../lib/ring-roles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ring-roles.d.ts","sourceRoot":"","sources":["../lib/ring-roles.ts"],"names":[],"mappings":"AAGA;;;GAGG;AAEH,OAAO,EAAiC,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAW1F;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CACjB;AAsCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,GAAG,iBAAiB,CA2FlG"}
|
package/out/ring-roles.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes hole roles by
|
|
7
|
-
* orientation rather than nesting.
|
|
4
|
+
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes
|
|
5
|
+
* hole roles by orientation rather than nesting.
|
|
8
6
|
*/
|
|
9
7
|
import { pointInRing, ringSignedAreaM2 } from "@mailwoman/spatial";
|
|
10
8
|
/**
|
package/out/ring-roles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ring-roles.js","sourceRoot":"","sources":["../lib/ring-roles.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"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E,aAAa,EAAE,SAAS,CAAC,MAAM;QAC/B,SAAS,EAAE,KAAK,CAAC,MAAM;QACvB,WAAW;QACX,aAAa;QACb,mBAAmB;QACnB,YAAY;QACZ,SAAS,EAAE,KAAK,CAAC,MAAM;KACvB,CAAA;AACF,CAAC"}
|
package/out/rings.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
2
|
* `zoning_area.rings` — the blob layout and point test re-exported from `@mailwoman/spatial`;
|
|
7
|
-
* `resolveRingRoles` stays local because the clockwise-exterior role encoding
|
|
3
|
+
* `resolveRingRoles` stays local because the clockwise-exterior role encoding
|
|
4
|
+
* belongs to this publisher rather than to geometry.
|
|
8
5
|
*/
|
|
9
6
|
export { resolveRingRoles, type ResolvedRingRoles } from "#ring-roles";
|
|
10
7
|
//# sourceMappingURL=rings.d.ts.map
|
package/out/rings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rings.d.ts","sourceRoot":"","sources":["../lib/rings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rings.d.ts","sourceRoot":"","sources":["../lib/rings.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAA"}
|
package/out/rings.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* `zoning_area.rings` — the blob layout and point test re-exported from `@mailwoman/spatial`;
|
|
7
|
-
* `resolveRingRoles` stays local because the clockwise-exterior role encoding
|
|
5
|
+
* `resolveRingRoles` stays local because the clockwise-exterior role encoding
|
|
6
|
+
* belongs to this publisher rather than to geometry.
|
|
8
7
|
*/
|
|
9
8
|
export { resolveRingRoles } from "#ring-roles";
|
|
10
9
|
//# sourceMappingURL=rings.js.map
|
package/out/rings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rings.js","sourceRoot":"","sources":["../lib/rings.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rings.js","sourceRoot":"","sources":["../lib/rings.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAA0B,MAAM,aAAa,CAAA"}
|
package/out/schema.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
1
|
import type { layerschemadatabase, MappedExtentTable } from "@mailwoman/core/layers";
|
|
7
2
|
import { type AreaCellIndexTable } from "@mailwoman/sqlite/schema-columns";
|
|
8
3
|
import { type Kysely } from "kysely";
|
|
@@ -40,7 +35,7 @@ export interface ZoningAreaTable {
|
|
|
40
35
|
*/
|
|
41
36
|
jurisdiction_id: string;
|
|
42
37
|
/**
|
|
43
|
-
* The plan this zone belongs to, keyed to `zoning_plan`: a zone without its plan
|
|
38
|
+
* The plan this zone belongs to, keyed to `zoning_plan`: a zone without its plan isn't a claim.
|
|
44
39
|
*/
|
|
45
40
|
plan_id: string;
|
|
46
41
|
/**
|
|
@@ -129,7 +124,7 @@ export interface ZoningPlanTable {
|
|
|
129
124
|
/**
|
|
130
125
|
* `CURRENT_PLAN`, stored as published.
|
|
131
126
|
*
|
|
132
|
-
* `1` means the publisher
|
|
127
|
+
* `1` means the publisher hasn't superseded the plan.
|
|
133
128
|
* `valid_to` records whether it remains in force today.
|
|
134
129
|
*/
|
|
135
130
|
current_plan: number;
|
|
@@ -190,7 +185,7 @@ export interface ZoningVocabularyTable {
|
|
|
190
185
|
/**
|
|
191
186
|
* A publisher's own mapping between two schemes, where it publishes one as a table.
|
|
192
187
|
*
|
|
193
|
-
* Empty for Ireland: the mapping
|
|
188
|
+
* Empty for Ireland: the mapping isn't a function of the (authority, local code) pair, so it lives on
|
|
194
189
|
* `zoning_area` per row and {@linkcode assertCrosswalkIsNotATable} refuses a build that writes edges.
|
|
195
190
|
*/
|
|
196
191
|
export interface ZoningCrosswalkEdgeTable {
|
package/out/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AACpF,OAAO,EAIN,KAAK,kBAAkB,EACvB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAO,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEzC;;GAEG;AACH,eAAO,MAAM,qBAAqB;IACjC;;;OAGG;aACH,KAAK,EAAE,OAAO;IACd;;OAEG;aACH,OAAO,EAAE,SAAS;CACT,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAA;AAEtG;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC/B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;;OAMG;IACH,UAAU,EAAE,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WjF;AAED;;GAEG;AACH,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQzF;AAED;;GAEG;AACH,wBAAsB,2BAA2B,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAYvF;AAED;;GAEG;AACH,wBAAsB,8BAA8B,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAU1F;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQjF;AAED;;GAEG;AACH,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAUzF;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQ9E"}
|
package/out/schema.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
import { addBoundingBoxColumns, addCellIndexColumns, addRingsColumn, } from "@mailwoman/sqlite/schema-columns";
|
|
7
4
|
import { sql } from "kysely";
|
|
8
5
|
/**
|
package/out/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAGlE,OAAO,EACN,qBAAqB,EACrB,mBAAmB,EAC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