@mailwoman/zoning 9.4.0 → 10.1.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 +89 -120
- package/lib/paths.ts +24 -0
- package/lib/ring-roles.ts +30 -71
- package/lib/rings.ts +2 -13
- package/lib/schema.ts +96 -114
- package/lib/vocabulary.ts +52 -130
- package/out/index.d.ts +75 -95
- package/out/index.d.ts.map +1 -1
- package/out/index.js +25 -82
- 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 +93 -108
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +16 -44
- 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 +48 -137
- package/out/sdk/build-zoning.js.map +1 -1
- package/out/sdk/cells.d.ts +20 -61
- package/out/sdk/cells.d.ts.map +1 -1
- package/out/sdk/cells.js +13 -50
- 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 +7 -27
- package/out/sdk/download.js.map +1 -1
- package/out/sdk/ingest/chunk.d.ts +106 -0
- package/out/sdk/ingest/chunk.d.ts.map +1 -0
- package/out/sdk/{ingest-chunk.js → ingest/chunk.js} +17 -50
- package/out/sdk/ingest/chunk.js.map +1 -0
- 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} +5 -7
- package/out/sdk/ingest/worker.js.map +1 -0
- package/out/sdk/ingest.d.ts +54 -77
- package/out/sdk/ingest.d.ts.map +1 -1
- package/out/sdk/ingest.js +50 -87
- package/out/sdk/ingest.js.map +1 -1
- package/out/sdk/measure-resolutions.d.ts +6 -23
- package/out/sdk/measure-resolutions.d.ts.map +1 -1
- package/out/sdk/measure-resolutions.js +4 -21
- 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 +74 -56
- package/out/sdk/verify.d.ts.map +1 -1
- package/out/sdk/verify.js +70 -57
- 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 +37 -161
- package/{lib/sdk → sdk}/build-zoning.ts +100 -186
- package/{lib/sdk → sdk}/cells.ts +24 -63
- package/{lib/sdk → sdk}/client.ts +34 -82
- package/sdk/download.ts +58 -0
- package/{lib/sdk/ingest-chunk.ts → sdk/ingest/chunk.ts} +32 -61
- package/{lib/scripts/ingest-chunk.ts → sdk/ingest/worker.ts} +4 -6
- package/sdk/ingest.ts +366 -0
- package/{lib/sdk → sdk}/measure-resolutions.ts +8 -25
- package/{lib → sdk}/test-kit.ts +20 -43
- package/{lib/sdk → sdk}/verify.ts +102 -75
- package/lib/sdk/download.ts +0 -78
- package/lib/sdk/index.ts +0 -15
- package/lib/sdk/ingest.ts +0 -398
- 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-chunk.d.ts +0 -130
- package/out/sdk/ingest-chunk.d.ts.map +0 -1
- package/out/sdk/ingest-chunk.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/out/rings.js
CHANGED
|
@@ -3,19 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* `zoning_area.rings` — the blob layout and
|
|
7
|
-
*
|
|
8
|
-
* THE CODE ITSELF LIVES IN `@mailwoman/spatial`, re-exported here so this package's call sites and its
|
|
9
|
-
* `@mailwoman/zoning/rings` subpath keep reading the same. Nothing in it is zoning-specific: it is byte
|
|
10
|
-
* layout plus spherical geometry, and a second copy of the alignment arithmetic or of the signed-area
|
|
11
|
-
* reading is a second place for either to stop being right. Both failure modes are silent — a mis-read blob
|
|
12
|
-
* answers a containment question wrongly, and a hole-blind area reading answers "inside" for every point in
|
|
13
|
-
* a hole.
|
|
14
|
-
*
|
|
15
|
-
* WHAT IS NOT SHARED IS {@linkcode resolveRingRoles}, and the reason is that it is a fact about THIS
|
|
16
|
-
* PUBLISHER rather than about geometry: the service encodes hole roles by ring ORIENTATION, clockwise
|
|
17
|
-
* exterior, which is the inverse of RFC 7946's convention. `ring-roles.ts` carries it with the measurement
|
|
18
|
-
* that establishes it.
|
|
6
|
+
* `zoning_area.rings` — the blob layout and point test re-exported from `@mailwoman/spatial`;
|
|
7
|
+
* `resolveRingRoles` stays local because the clockwise-exterior role encoding belongs to this publisher rather than to geometry.
|
|
19
8
|
*/
|
|
20
9
|
export { resolveRingRoles } from "#ring-roles";
|
|
21
10
|
//# 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;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAA0B,MAAM,aAAa,CAAA"}
|
package/out/schema.d.ts
CHANGED
|
@@ -2,76 +2,52 @@
|
|
|
2
2
|
* @copyright Sister Software
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Typed schema for `zoning-ireland.db` — the two-tier polygon layer: the authority's unsimplified rings as
|
|
7
|
-
* the truth table, an H3 cell table above them as the summary, the plan and jurisdiction a zone belongs to,
|
|
8
|
-
* the published vocabularies, and the layer-contract tables from `@mailwoman/core/layers`.
|
|
9
|
-
*
|
|
10
|
-
* THE LOCAL CODE IS `NOT NULL` AND THE CROSSWALK IS NULLABLE, WHICH IS THE VOCABULARY DECISION AS A
|
|
11
|
-
* CONSTRAINT. A source with no crosswalk produces a complete row; a source with no local code does not. The
|
|
12
|
-
* Department's own item description is what this transcribes: its national scheme "complements (rather than
|
|
13
|
-
* replaces) the existing statutory zoning used for each individual plan".
|
|
14
|
-
*
|
|
15
|
-
* `provenance_grade` IS A COLUMN WITH A `CHECK`, NOT A CONVENTION. `NOT NULL` alone accepts `''`, and a
|
|
16
|
-
* blank matches neither half of every read that splits on grade — so the constraint refuses a blank as well
|
|
17
|
-
* as an unknown value. This is `packages/filer`'s discipline applied unchanged, and the reason it is
|
|
18
|
-
* compulsory here is licensing as much as epistemics: an observed land-use layer is ODbL, and merging one
|
|
19
|
-
* of its rows into this table would relicense the table.
|
|
20
|
-
*
|
|
21
|
-
* `signed_area_m2` IS THE INGEST'S OWN RECEIPT AND ITS SIGN IS LOAD-BEARING. The service encodes hole roles
|
|
22
|
-
* by ring orientation with clockwise as the exterior, so a correctly-read feature stores a POSITIVE signed
|
|
23
|
-
* sum; the national total of those sums is what the build compares against the Department's own
|
|
24
|
-
* `Shape__Area` statistic. Read with the holes it is 5,444.5 km²; read without them, 5,666.6 km².
|
|
25
|
-
*
|
|
26
|
-
* `WITHOUT ROWID` ON THE CELL TABLE AND NEVER ON THE GEOMETRY TABLE. Small fixed-width rows probed by their
|
|
27
|
-
* exact primary key belong in the B-tree; a row carrying a geometry blob does not — clustering it into the
|
|
28
|
-
* B-tree makes every index page a geometry page.
|
|
29
|
-
*
|
|
30
|
-
* THE WHOLE-CELL SET IS COMPACTED PER FEATURE, SO IT IS MIXED-RESOLUTION. A row therefore carries its own
|
|
31
|
-
* `resolution`, and a probe walks `cellToParent` from the index resolution up to the coarsest resolution
|
|
32
|
-
* present. `layer_coverage` is NOT compacted and stays single-resolution, because `recoverShortCellResolution`
|
|
33
|
-
* recovers one resolution from the stored cells and throws on a table that mixes them.
|
|
34
5
|
*/
|
|
35
|
-
import type {
|
|
6
|
+
import type { layerschemadatabase } from "@mailwoman/core/layers";
|
|
36
7
|
import { type Kysely } from "kysely";
|
|
37
8
|
/**
|
|
38
9
|
* Whether an H3 cell lies wholly inside a zoning polygon, or is crossed by its boundary.
|
|
39
10
|
*/
|
|
40
11
|
export declare const ZoningCellContainment: {
|
|
41
12
|
/**
|
|
42
|
-
* Every point in the cell is inside the zone.
|
|
13
|
+
* Every point in the cell is inside the zone.
|
|
14
|
+
* The index answers this without reading geometry.
|
|
43
15
|
*/
|
|
44
16
|
readonly Whole: "whole";
|
|
45
17
|
/**
|
|
46
|
-
* The zone boundary crosses the cell
|
|
18
|
+
* The zone boundary crosses the cell, so the point test decides after the index narrows the candidates.
|
|
47
19
|
*/
|
|
48
20
|
readonly Partial: "partial";
|
|
49
21
|
};
|
|
50
22
|
export type ZoningCellContainment = (typeof ZoningCellContainment)[keyof typeof ZoningCellContainment];
|
|
51
23
|
/**
|
|
52
|
-
* One authority zoning polygon, verbatim.
|
|
53
|
-
*
|
|
24
|
+
* One authority zoning polygon, verbatim.
|
|
25
|
+
*
|
|
26
|
+
* A rowid table that holds a geometry blob.
|
|
27
|
+
* `WITHOUT ROWID` performs poorly for this shape.
|
|
54
28
|
*/
|
|
55
29
|
export interface ZoningAreaTable {
|
|
56
30
|
/**
|
|
57
|
-
* The authority's own feature id, as published
|
|
58
|
-
*
|
|
59
|
-
* to be the publisher's.
|
|
31
|
+
* The authority's own feature id, as published and unique across the product,
|
|
32
|
+
* so it needs no scoping prefix.
|
|
60
33
|
*/
|
|
61
34
|
area_id: string;
|
|
62
35
|
/**
|
|
63
|
-
* The authority that adopted the plan.
|
|
36
|
+
* The authority that adopted the plan.
|
|
37
|
+
*
|
|
38
|
+
* FK to `zoning_jurisdiction`.
|
|
64
39
|
*/
|
|
65
40
|
jurisdiction_id: string;
|
|
66
41
|
/**
|
|
67
|
-
* The plan this zone belongs to
|
|
68
|
-
* Development Plan or Local Area Plan with a stated validity window, and a layer that dropped the plan and kept the
|
|
69
|
-
* zone would be answering a question no authority asked.
|
|
42
|
+
* The plan this zone belongs to, keyed to `zoning_plan`: a zone without its plan is not a claim.
|
|
70
43
|
*/
|
|
71
44
|
plan_id: string;
|
|
72
45
|
/**
|
|
73
|
-
* `ZONE_ORIG` —
|
|
74
|
-
*
|
|
46
|
+
* `ZONE_ORIG` — the authority'S own zone code, verbatim, in its own spelling
|
|
47
|
+
* including case and trailing space.
|
|
48
|
+
*
|
|
49
|
+
* Compared case-insensitively where it must be compared.
|
|
50
|
+
* Never stored normalized.
|
|
75
51
|
*/
|
|
76
52
|
local_code: string;
|
|
77
53
|
/**
|
|
@@ -79,16 +55,21 @@ export interface ZoningAreaTable {
|
|
|
79
55
|
*/
|
|
80
56
|
local_description: string | null;
|
|
81
57
|
/**
|
|
82
|
-
* `ZONE_LINK` — the authority's own link to the plan text.
|
|
58
|
+
* `ZONE_LINK` — the authority's own link to the plan text.
|
|
59
|
+
*
|
|
60
|
+
* A live host, unlike the crosswalk's.
|
|
83
61
|
*/
|
|
84
62
|
local_code_url: string | null;
|
|
85
63
|
/**
|
|
86
|
-
* `ZONE_GZT` — the Department's national generic type,
|
|
87
|
-
*
|
|
64
|
+
* `ZONE_GZT` — the Department's national generic type, beside the local code and never instead of it.
|
|
65
|
+
*
|
|
66
|
+
* NULL where a publisher ships no crosswalk.
|
|
88
67
|
*/
|
|
89
68
|
crosswalk_code: string | null;
|
|
90
69
|
/**
|
|
91
|
-
* Which crosswalk `crosswalk_code` belongs to.
|
|
70
|
+
* Which crosswalk `crosswalk_code` belongs to.
|
|
71
|
+
*
|
|
72
|
+
* NULL with the above.
|
|
92
73
|
*/
|
|
93
74
|
crosswalk_scheme: string | null;
|
|
94
75
|
/**
|
|
@@ -96,11 +77,13 @@ export interface ZoningAreaTable {
|
|
|
96
77
|
*/
|
|
97
78
|
crosswalk_description: string | null;
|
|
98
79
|
/**
|
|
99
|
-
* `SZO` — a coarser code from the
|
|
80
|
+
* `SZO` — a coarser code from the same authority, stored as published rather than derived.
|
|
100
81
|
*/
|
|
101
82
|
crosswalk_rollup: string | null;
|
|
102
83
|
/**
|
|
103
|
-
* One of {@link ProvenanceGrade}.
|
|
84
|
+
* One of {@link ProvenanceGrade}.
|
|
85
|
+
*
|
|
86
|
+
* `not NULL` with a `check` that refuses a blank.
|
|
104
87
|
*/
|
|
105
88
|
provenance_grade: string;
|
|
106
89
|
min_lat: number;
|
|
@@ -108,17 +91,18 @@ export interface ZoningAreaTable {
|
|
|
108
91
|
max_lat: number;
|
|
109
92
|
max_lon: number;
|
|
110
93
|
/**
|
|
111
|
-
* How many rings the source published for this feature
|
|
112
|
-
* orientation was read rather than assumed.
|
|
94
|
+
* How many rings the source published for this feature, with `signed_area_m2`,
|
|
95
|
+
* the ingest's own receipt that the orientation was read rather than assumed.
|
|
113
96
|
*/
|
|
114
97
|
ring_count: number;
|
|
115
98
|
/**
|
|
116
|
-
* The signed ring sum, in square
|
|
99
|
+
* The signed ring sum, in square meters, positive under this service's clockwise-exterior convention.
|
|
117
100
|
*/
|
|
118
101
|
signed_area_m2: number;
|
|
119
102
|
/**
|
|
120
|
-
* The authority's ring coordinates,
|
|
121
|
-
*
|
|
103
|
+
* The authority's ring coordinates, unsimplified, with hole roles resolved.
|
|
104
|
+
*
|
|
105
|
+
* See `ring-roles.ts` for the resolution and `rings.ts` for the layout and the point test.
|
|
122
106
|
*/
|
|
123
107
|
rings: Uint8Array;
|
|
124
108
|
}
|
|
@@ -142,11 +126,10 @@ export interface ZoningPlanTable {
|
|
|
142
126
|
*/
|
|
143
127
|
valid_to: string | null;
|
|
144
128
|
/**
|
|
145
|
-
* `CURRENT_PLAN`,
|
|
129
|
+
* `CURRENT_PLAN`, stored as published.
|
|
146
130
|
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* plan's own window has closed is `valid_to`, and it is a separate fact.
|
|
131
|
+
* `1` means the publisher has not superseded the plan.
|
|
132
|
+
* `valid_to` records whether it remains in force today.
|
|
150
133
|
*/
|
|
151
134
|
current_plan: number;
|
|
152
135
|
}
|
|
@@ -157,24 +140,26 @@ export interface ZoningJurisdictionTable {
|
|
|
157
140
|
jurisdiction_id: string;
|
|
158
141
|
name: string;
|
|
159
142
|
/**
|
|
160
|
-
* The publisher's own code, verbatim
|
|
143
|
+
* The publisher's own code, verbatim — `Fl` for Fingal against `CL`, `CO`, `DU` — never repaired.
|
|
161
144
|
*/
|
|
162
145
|
source_code: string;
|
|
163
146
|
country: string;
|
|
164
147
|
}
|
|
165
148
|
/**
|
|
166
|
-
* A publisher's declared vocabulary, as shipped, per scheme — plus the values
|
|
167
|
-
* declared.
|
|
149
|
+
* A publisher's declared vocabulary, as shipped, per scheme — plus the values
|
|
150
|
+
* the data uses that the publisher never declared.
|
|
168
151
|
*/
|
|
169
152
|
export interface ZoningVocabularyTable {
|
|
170
153
|
/**
|
|
171
|
-
* `IE-GZT`, `IE-SZO`, `IE-
|
|
154
|
+
* `IE-GZT`, `IE-SZO`, `IE-plan-level`, or `IE-local:<authority code>`.
|
|
172
155
|
*/
|
|
173
156
|
scheme: string;
|
|
174
157
|
code: string;
|
|
175
158
|
/**
|
|
176
|
-
* The publisher's own words.
|
|
177
|
-
*
|
|
159
|
+
* The publisher's own words.
|
|
160
|
+
*
|
|
161
|
+
* For an observed-but-undeclared code this is the description stored on its rows,
|
|
162
|
+
* or the code itself where the data stores none, never a label this package wrote.
|
|
178
163
|
*/
|
|
179
164
|
label: string;
|
|
180
165
|
/**
|
|
@@ -182,33 +167,30 @@ export interface ZoningVocabularyTable {
|
|
|
182
167
|
*/
|
|
183
168
|
definition: string | null;
|
|
184
169
|
/**
|
|
185
|
-
* NULL for the Irish generic types
|
|
186
|
-
*
|
|
187
|
-
*
|
|
170
|
+
* NULL for the Irish generic types because their definitions were unavailable.
|
|
171
|
+
*
|
|
172
|
+
* The column stays NULL until a source supplies the definition.
|
|
188
173
|
*/
|
|
189
174
|
definition_url: string | null;
|
|
190
175
|
/**
|
|
191
|
-
* `1` where the publisher
|
|
176
|
+
* `1` where the publisher declares this code in its own domain, `0`
|
|
177
|
+
* where the code appears only in the data.
|
|
192
178
|
*
|
|
193
|
-
*
|
|
194
|
-
* and its data uses 55: `N/A` appears on 4 rows and in no domain.
|
|
179
|
+
* A merged value would hide a source-schema change or invent a declaration.
|
|
195
180
|
*/
|
|
196
181
|
declared: number;
|
|
197
182
|
/**
|
|
198
|
-
* How many rows of this artifact
|
|
199
|
-
*
|
|
183
|
+
* How many rows of this artifact contain the code.
|
|
184
|
+
*
|
|
185
|
+
* A census a reader checks a closed domain against, rather than a claim about the world.
|
|
200
186
|
*/
|
|
201
187
|
observed_rows: number;
|
|
202
188
|
}
|
|
203
189
|
/**
|
|
204
|
-
* A publisher's
|
|
190
|
+
* A publisher's own mapping between two schemes, where it publishes one as a table.
|
|
205
191
|
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
* County Council's `Special Policy Area` takes 14 and its `Green Infrastructure` 12 — so the mapping is not a function
|
|
209
|
-
* of the pair and no edge table can carry it without inventing one. The mapping lives on `zoning_area`, per row, where
|
|
210
|
-
* the Department put it. {@linkcode assertCrosswalkIsNotATable} refuses a build that would write edges while such a
|
|
211
|
-
* pair exists.
|
|
192
|
+
* Empty for Ireland: the mapping is not a function of the (authority, local code) pair, so it lives on
|
|
193
|
+
* `zoning_area` per row and {@linkcode assertCrosswalkIsNotATable} refuses a build that writes edges.
|
|
212
194
|
*/
|
|
213
195
|
export interface ZoningCrosswalkEdgeTable {
|
|
214
196
|
from_scheme: string;
|
|
@@ -216,25 +198,31 @@ export interface ZoningCrosswalkEdgeTable {
|
|
|
216
198
|
to_scheme: string;
|
|
217
199
|
to_code: string;
|
|
218
200
|
/**
|
|
219
|
-
* The body that authored
|
|
201
|
+
* The body that authored this edge.
|
|
202
|
+
*
|
|
203
|
+
* Never us.
|
|
220
204
|
*/
|
|
221
205
|
authored_by: string;
|
|
222
206
|
}
|
|
223
207
|
/**
|
|
224
208
|
* Per (cell, polygon): does the polygon cover the whole cell, or only part of it?
|
|
225
209
|
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
210
|
+
* Keyed on the polygon rather than a code, because a zoning answer is the polygon
|
|
211
|
+
* and two authorities' plans can name the same code for different things.
|
|
228
212
|
*/
|
|
229
213
|
export interface ZoningCellTable {
|
|
230
214
|
/**
|
|
231
|
-
* 48-bit short H3 cell.
|
|
232
|
-
*
|
|
215
|
+
* 48-bit short H3 cell.
|
|
216
|
+
*
|
|
217
|
+
* Mixed-resolution: `whole` rows are compacted parent-ward, `partial` rows stay
|
|
218
|
+
* at the resolution the feature was indexed at.
|
|
233
219
|
*/
|
|
234
220
|
h3_cell: number;
|
|
235
221
|
/**
|
|
236
|
-
* The resolution this row's cell was captured at.
|
|
237
|
-
*
|
|
222
|
+
* The resolution this row's cell was captured at.
|
|
223
|
+
*
|
|
224
|
+
* Short H3 cell values omit their resolution.
|
|
225
|
+
* Queries against a table with mixed resolutions require this field.
|
|
238
226
|
*/
|
|
239
227
|
resolution: number;
|
|
240
228
|
area_id: string;
|
|
@@ -244,20 +232,12 @@ export interface ZoningCellTable {
|
|
|
244
232
|
containment: string;
|
|
245
233
|
}
|
|
246
234
|
/**
|
|
247
|
-
* The authority's own statement of what it
|
|
248
|
-
*
|
|
249
|
-
* EMPTY IN THIS EDITION, AND ITS EMPTINESS IS THE CLAIM. The Department states "Awaiting data for some Local
|
|
250
|
-
* Authorities
|
|
235
|
+
* The authority's own statement of what it mapped.
|
|
251
236
|
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
* one local authority of 31 missing from the layer — was recovered by measuring `LA_CODE`, not read from a
|
|
255
|
-
* statement.
|
|
237
|
+
* One row per authority statement.
|
|
238
|
+
* The zoning polygons describe individual zones.
|
|
256
239
|
*
|
|
257
|
-
*
|
|
258
|
-
* authority examined, and the difference is the whole content of a negative answer. One authority's drafting convention
|
|
259
|
-
* moves the national zoned-area figure by 41% on its own — Meath County Council zones its entire rural remainder as one
|
|
260
|
-
* 2,232 km² polygon, against 32.5 km² for the next largest in the country — so the union is not even a stable shape.
|
|
240
|
+
* Use the authority statement for mapped extent instead of deriving the extent from the polygon union.
|
|
261
241
|
*/
|
|
262
242
|
export interface ZoningMappedExtentTable {
|
|
263
243
|
extent_id: string;
|
|
@@ -273,7 +253,7 @@ export interface ZoningMappedExtentTable {
|
|
|
273
253
|
/**
|
|
274
254
|
* Pass to `new DatabaseClient<ZoningDatabase>(...)`.
|
|
275
255
|
*/
|
|
276
|
-
export interface ZoningDatabase extends
|
|
256
|
+
export interface ZoningDatabase extends layerschemadatabase {
|
|
277
257
|
zoning_area: ZoningAreaTable;
|
|
278
258
|
zoning_plan: ZoningPlanTable;
|
|
279
259
|
zoning_jurisdiction: ZoningJurisdictionTable;
|
|
@@ -283,13 +263,17 @@ export interface ZoningDatabase extends LayerContractDatabase {
|
|
|
283
263
|
zoning_mapped_extent: ZoningMappedExtentTable;
|
|
284
264
|
}
|
|
285
265
|
/**
|
|
286
|
-
* The
|
|
287
|
-
*
|
|
266
|
+
* The subset of a Kysely handle the DDL touches.
|
|
267
|
+
*
|
|
268
|
+
* Same reasoning as `layerschemahandle`: Kysely is invariant in its schema parameter,
|
|
269
|
+
* so naming only the members these functions call lets a caller pass its own wider handle.
|
|
288
270
|
*/
|
|
289
271
|
export type ZoningSchemaHandle = Pick<Kysely<ZoningDatabase>, "schema">;
|
|
290
272
|
/**
|
|
291
|
-
* Create `zoning_area`.
|
|
292
|
-
*
|
|
273
|
+
* Create `zoning_area`.
|
|
274
|
+
*
|
|
275
|
+
* A plain rowid table on purpose.
|
|
276
|
+
* The `rings` blob is exactly the payload `without rowid` penalizes.
|
|
293
277
|
*/
|
|
294
278
|
export declare function createZoningAreaTable(db: ZoningSchemaHandle): Promise<void>;
|
|
295
279
|
/**
|
|
@@ -305,17 +289,18 @@ export declare function createZoningJurisdictionTable(db: ZoningSchemaHandle): P
|
|
|
305
289
|
*/
|
|
306
290
|
export declare function createZoningVocabularyTable(db: ZoningSchemaHandle): Promise<void>;
|
|
307
291
|
/**
|
|
308
|
-
* Create `zoning_crosswalk_edge
|
|
292
|
+
* Create `zoning_crosswalk_edge`, empty for Ireland.
|
|
309
293
|
*/
|
|
310
294
|
export declare function createZoningCrosswalkEdgeTable(db: ZoningSchemaHandle): Promise<void>;
|
|
311
295
|
/**
|
|
312
|
-
* Create `zoning_cell` — the summary tier.
|
|
313
|
-
*
|
|
296
|
+
* Create `zoning_cell` — the summary tier.
|
|
297
|
+
*
|
|
298
|
+
* This table stores small fixed-width rows.
|
|
299
|
+
* Queries use exact primary keys, the pattern supported by `WITHOUT ROWID`.
|
|
314
300
|
*/
|
|
315
301
|
export declare function createZoningCellTable(db: ZoningSchemaHandle): Promise<void>;
|
|
316
302
|
/**
|
|
317
|
-
* Create `zoning_mapped_extent
|
|
318
|
-
* way — see the interface's docstring.
|
|
303
|
+
* Create `zoning_mapped_extent`, empty while the reader refuses a stronger coverage basis.
|
|
319
304
|
*/
|
|
320
305
|
export declare function createZoningMappedExtentTable(db: ZoningSchemaHandle): Promise<void>;
|
|
321
306
|
/**
|
package/out/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,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,MAAM,CAAA;IAClB;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;;;OAIG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B;;OAEG;IACH,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC;;OAEG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,E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G;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
|
@@ -2,35 +2,6 @@
|
|
|
2
2
|
* @copyright Sister Software
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Typed schema for `zoning-ireland.db` — the two-tier polygon layer: the authority's unsimplified rings as
|
|
7
|
-
* the truth table, an H3 cell table above them as the summary, the plan and jurisdiction a zone belongs to,
|
|
8
|
-
* the published vocabularies, and the layer-contract tables from `@mailwoman/core/layers`.
|
|
9
|
-
*
|
|
10
|
-
* THE LOCAL CODE IS `NOT NULL` AND THE CROSSWALK IS NULLABLE, WHICH IS THE VOCABULARY DECISION AS A
|
|
11
|
-
* CONSTRAINT. A source with no crosswalk produces a complete row; a source with no local code does not. The
|
|
12
|
-
* Department's own item description is what this transcribes: its national scheme "complements (rather than
|
|
13
|
-
* replaces) the existing statutory zoning used for each individual plan".
|
|
14
|
-
*
|
|
15
|
-
* `provenance_grade` IS A COLUMN WITH A `CHECK`, NOT A CONVENTION. `NOT NULL` alone accepts `''`, and a
|
|
16
|
-
* blank matches neither half of every read that splits on grade — so the constraint refuses a blank as well
|
|
17
|
-
* as an unknown value. This is `packages/filer`'s discipline applied unchanged, and the reason it is
|
|
18
|
-
* compulsory here is licensing as much as epistemics: an observed land-use layer is ODbL, and merging one
|
|
19
|
-
* of its rows into this table would relicense the table.
|
|
20
|
-
*
|
|
21
|
-
* `signed_area_m2` IS THE INGEST'S OWN RECEIPT AND ITS SIGN IS LOAD-BEARING. The service encodes hole roles
|
|
22
|
-
* by ring orientation with clockwise as the exterior, so a correctly-read feature stores a POSITIVE signed
|
|
23
|
-
* sum; the national total of those sums is what the build compares against the Department's own
|
|
24
|
-
* `Shape__Area` statistic. Read with the holes it is 5,444.5 km²; read without them, 5,666.6 km².
|
|
25
|
-
*
|
|
26
|
-
* `WITHOUT ROWID` ON THE CELL TABLE AND NEVER ON THE GEOMETRY TABLE. Small fixed-width rows probed by their
|
|
27
|
-
* exact primary key belong in the B-tree; a row carrying a geometry blob does not — clustering it into the
|
|
28
|
-
* B-tree makes every index page a geometry page.
|
|
29
|
-
*
|
|
30
|
-
* THE WHOLE-CELL SET IS COMPACTED PER FEATURE, SO IT IS MIXED-RESOLUTION. A row therefore carries its own
|
|
31
|
-
* `resolution`, and a probe walks `cellToParent` from the index resolution up to the coarsest resolution
|
|
32
|
-
* present. `layer_coverage` is NOT compacted and stays single-resolution, because `recoverShortCellResolution`
|
|
33
|
-
* recovers one resolution from the stored cells and throws on a table that mixes them.
|
|
34
5
|
*/
|
|
35
6
|
import { addBoundingBoxColumns, addCellIndexColumns, addRingsColumn } from "@mailwoman/sqlite/schema-columns";
|
|
36
7
|
import { sql } from "kysely";
|
|
@@ -39,17 +10,20 @@ import { sql } from "kysely";
|
|
|
39
10
|
*/
|
|
40
11
|
export const ZoningCellContainment = {
|
|
41
12
|
/**
|
|
42
|
-
* Every point in the cell is inside the zone.
|
|
13
|
+
* Every point in the cell is inside the zone.
|
|
14
|
+
* The index answers this without reading geometry.
|
|
43
15
|
*/
|
|
44
16
|
Whole: "whole",
|
|
45
17
|
/**
|
|
46
|
-
* The zone boundary crosses the cell
|
|
18
|
+
* The zone boundary crosses the cell, so the point test decides after the index narrows the candidates.
|
|
47
19
|
*/
|
|
48
20
|
Partial: "partial",
|
|
49
21
|
};
|
|
50
22
|
/**
|
|
51
|
-
* Create `zoning_area`.
|
|
52
|
-
*
|
|
23
|
+
* Create `zoning_area`.
|
|
24
|
+
*
|
|
25
|
+
* A plain rowid table on purpose.
|
|
26
|
+
* The `rings` blob is exactly the payload `without rowid` penalizes.
|
|
53
27
|
*/
|
|
54
28
|
export async function createZoningAreaTable(db) {
|
|
55
29
|
const table = db.schema
|
|
@@ -69,12 +43,9 @@ export async function createZoningAreaTable(db) {
|
|
|
69
43
|
.addColumn("ring_count", "integer", (c) => c.notNull())
|
|
70
44
|
.addColumn("signed_area_m2", "real", (c) => c.notNull());
|
|
71
45
|
await addRingsColumn(bounded)
|
|
72
|
-
//
|
|
73
|
-
// read that splits on grade — so the value set and the blank are refused separately, and the second half is the one
|
|
74
|
-
// a schema without it loses.
|
|
46
|
+
// `not NULL` by itself accepts `''`, so the value set and the blank are refused separately.
|
|
75
47
|
.addCheckConstraint("zoning_area_provenance_grade_declared", sql `provenance_grade in ('authoritative', 'inferred') and trim(provenance_grade) != ''`)
|
|
76
|
-
//
|
|
77
|
-
// only at the ingest: a blank would read as a zone the authority named nothing.
|
|
48
|
+
// A blank local code would read as a zone the authority left unnamed, so storage refuses it.
|
|
78
49
|
.addCheckConstraint("zoning_area_local_code_not_blank", sql `trim(local_code) != ''`)
|
|
79
50
|
.execute();
|
|
80
51
|
}
|
|
@@ -122,7 +93,7 @@ export async function createZoningVocabularyTable(db) {
|
|
|
122
93
|
.execute();
|
|
123
94
|
}
|
|
124
95
|
/**
|
|
125
|
-
* Create `zoning_crosswalk_edge
|
|
96
|
+
* Create `zoning_crosswalk_edge`, empty for Ireland.
|
|
126
97
|
*/
|
|
127
98
|
export async function createZoningCrosswalkEdgeTable(db) {
|
|
128
99
|
await db.schema
|
|
@@ -136,20 +107,21 @@ export async function createZoningCrosswalkEdgeTable(db) {
|
|
|
136
107
|
.execute();
|
|
137
108
|
}
|
|
138
109
|
/**
|
|
139
|
-
* Create `zoning_cell` — the summary tier.
|
|
140
|
-
*
|
|
110
|
+
* Create `zoning_cell` — the summary tier.
|
|
111
|
+
*
|
|
112
|
+
* This table stores small fixed-width rows.
|
|
113
|
+
* Queries use exact primary keys, the pattern supported by `WITHOUT ROWID`.
|
|
141
114
|
*/
|
|
142
115
|
export async function createZoningCellTable(db) {
|
|
143
116
|
const table = db.schema.createTable("zoning_cell");
|
|
144
117
|
await addCellIndexColumns(table, "area_id")
|
|
145
118
|
.addPrimaryKeyConstraint("zoning_cell_pk", ["h3_cell", "area_id"])
|
|
146
|
-
// `
|
|
119
|
+
// `without rowid` has no first-class builder, so the raw modifier is the fallback.
|
|
147
120
|
.modifyEnd(sql `without rowid`)
|
|
148
121
|
.execute();
|
|
149
122
|
}
|
|
150
123
|
/**
|
|
151
|
-
* Create `zoning_mapped_extent
|
|
152
|
-
* way — see the interface's docstring.
|
|
124
|
+
* Create `zoning_mapped_extent`, empty while the reader refuses a stronger coverage basis.
|
|
153
125
|
*/
|
|
154
126
|
export async function createZoningMappedExtentTable(db) {
|
|
155
127
|
const table = db.schema
|
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;;;;GAIG;AAGH,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAC7G,OAAO,EAAE,GAAG,EAAe,MAAM,QAAQ,CAAA;AAEzC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC;;;OAGG;I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