@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/sdk/verify.d.ts
CHANGED
|
@@ -3,40 +3,38 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The
|
|
6
|
+
* The check compares the artifact with a second path. A separate half tests locations outside its coverage.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* on OUR CONVERSION rather than on the authority.
|
|
8
|
+
* The positive half samples points from the sealed artifact and asks the Department's feature service about them.
|
|
9
|
+
* The service supplies geometry through a separate distribution channel. This package has not touched that geometry.
|
|
10
|
+
* The check runs the point test on the service's rings. It compares two verdicts from the same authority.
|
|
11
|
+
* This measures our conversion against the authority's published geometry.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* comes back OUTSIDE on both paths or on neither.
|
|
13
|
+
* The service returns geometry in the publisher's ring convention. `outSR=4326` returns the same clockwise-exterior
|
|
14
|
+
* rings as the bulk export. This path re-derives ring roles as ingest does. A point inside a hole then falls outside
|
|
15
|
+
* on both paths or inside on both paths.
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* polygon is not a statement.
|
|
17
|
+
* The negative half checks locations outside the publication area. The Department omits Donegal, one of 31 local
|
|
18
|
+
* authorities. The product also excludes Northern Ireland. Points in both areas must return `unknown` with no
|
|
19
|
+
* designation. A positive-only check could pass an artifact that reports the whole island as zoned. The layer treats
|
|
20
|
+
* a missing polygon as no zoning statement.
|
|
24
21
|
*
|
|
25
|
-
*
|
|
26
|
-
* archive publishes nine decimals through this package's ingest
|
|
27
|
-
* within roughly a
|
|
28
|
-
*
|
|
29
|
-
* of the receipt.
|
|
22
|
+
* The channels use different coordinate precision. A boundary-point disagreement therefore does not establish a
|
|
23
|
+
* conversion defect. The archive publishes nine decimals through this package's ingest. The service rounds its JSON.
|
|
24
|
+
* A point within roughly a meter of a zone boundary can fall on opposite sides of the two rendered edges. The check
|
|
25
|
+
* reports these cases as `boundary_tolerance` with the distance to the nearest edge. The receipt includes their count.
|
|
30
26
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
27
|
+
* The distance measures to the edge rather than to the nearest vertex. A point a centimeter from a long edge can be
|
|
28
|
+
* meters from every vertex. In one sibling-layer near-miss, vertex distance measured 1.58 m and edge distance
|
|
29
|
+
* measured 0.009 m. The vertex measurement overstated distance by 175 times. It would make the stated boundary
|
|
30
|
+
* tolerance stricter and report a rendering difference as a conversion defect.
|
|
35
31
|
*/
|
|
32
|
+
import type { PathBuilderLike } from "path-ts";
|
|
36
33
|
import { type ZoningReading } from "#index";
|
|
37
34
|
import type { GZTClient } from "#sdk/client";
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
36
|
+
* Records one point and both verdicts.
|
|
37
|
+
* It also records whether they agree.
|
|
40
38
|
*/
|
|
41
39
|
export interface AgreementRow {
|
|
42
40
|
label: string;
|
|
@@ -51,18 +49,23 @@ export interface AgreementRow {
|
|
|
51
49
|
*/
|
|
52
50
|
serviceInside: boolean;
|
|
53
51
|
/**
|
|
54
|
-
* The local code the
|
|
55
|
-
*
|
|
56
|
-
* the
|
|
52
|
+
* The local code the service reports at the point, where it reports one.
|
|
53
|
+
*
|
|
54
|
+
* Compared verbatim against the artifact's, because carrying the code verbatim
|
|
55
|
+
* is what this layer is for: two paths that agree on containment and disagree
|
|
56
|
+
* on the code would be a silent vocabulary defect.
|
|
57
57
|
*/
|
|
58
58
|
serviceLocalCode?: string;
|
|
59
59
|
outcome: "agree" | "disagree" | "boundary_tolerance";
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Meters from the point to the nearest edge of any polygon the service returned nearby.
|
|
62
|
+
*
|
|
63
|
+
* Every row includes this distance.
|
|
64
|
+
* It separates a real defect from a difference caused by the two channels
|
|
65
|
+
* rendering the same edge differently.
|
|
62
66
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* service returned no polygon at all near the point.
|
|
67
|
+
* A receipt without it forces a re-run.
|
|
68
|
+
* `undefined` means the service returned no polygon at all near the point.
|
|
66
69
|
*/
|
|
67
70
|
nearestEdgeMetres?: number;
|
|
68
71
|
}
|
|
@@ -76,7 +79,8 @@ export interface OutsideRow {
|
|
|
76
79
|
kind: string;
|
|
77
80
|
designations: number;
|
|
78
81
|
/**
|
|
79
|
-
* True when the artifact answered `unknown` with no designation
|
|
82
|
+
* True when the artifact answered `unknown` with no designation.
|
|
83
|
+
* The only acceptable reading here.
|
|
80
84
|
*/
|
|
81
85
|
passed: boolean;
|
|
82
86
|
}
|
|
@@ -93,12 +97,18 @@ export interface VerifyZoningResult {
|
|
|
93
97
|
outsidePassed: number;
|
|
94
98
|
}
|
|
95
99
|
/**
|
|
96
|
-
*
|
|
97
|
-
*
|
|
100
|
+
* Point identifiers for locations outside this product's publication area.
|
|
101
|
+
*
|
|
102
|
+
* Each is a place rather than a bare pair of numbers: a coordinate a reader a
|
|
103
|
+
* coordinate without a reference source cannot be checked.
|
|
104
|
+
*
|
|
105
|
+
* The check requires points from two populations.
|
|
106
|
+
* The Donegal points are the case this layer's coverage posture exists for.
|
|
98
107
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
108
|
+
* The Department has not published that authority's zoning.
|
|
109
|
+
* A builder that reads the absence as "unrestricted" would answer these points confidently.
|
|
110
|
+
*
|
|
111
|
+
* The Northern Irish points confirm the artifact is clipped to the Republic rather than to the
|
|
102
112
|
* island: zoning there is a different jurisdiction's instrument under a different planning act.
|
|
103
113
|
*/
|
|
104
114
|
export declare const OUTSIDE_PUBLICATION_POINTS: ReadonlyArray<{
|
|
@@ -107,7 +117,8 @@ export declare const OUTSIDE_PUBLICATION_POINTS: ReadonlyArray<{
|
|
|
107
117
|
longitude: number;
|
|
108
118
|
}>;
|
|
109
119
|
/**
|
|
110
|
-
* One feature as the service publishes it
|
|
120
|
+
* One feature as the service publishes it.
|
|
121
|
+
* The only shape the comparison reads.
|
|
111
122
|
*/
|
|
112
123
|
export interface ServiceFeature {
|
|
113
124
|
properties?: Record<string, unknown>;
|
|
@@ -117,27 +128,33 @@ export interface ServiceFeature {
|
|
|
117
128
|
};
|
|
118
129
|
}
|
|
119
130
|
/**
|
|
120
|
-
* The
|
|
131
|
+
* The one call the verification makes against the service: the features it publishes near a point.
|
|
132
|
+
*
|
|
133
|
+
* The function exposes only the service read.
|
|
134
|
+
* This keeps the check's own logic testable.
|
|
121
135
|
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
136
|
+
* The comparison's value is that it decides which of three outcomes a point gets.
|
|
137
|
+
*
|
|
138
|
+
* An HTTP client would let tests observe these decisions only during a live run.
|
|
139
|
+
* A scripted reader pins the decisions. {@link createServiceReader} builds the real reader.
|
|
126
140
|
*/
|
|
127
141
|
export type ServiceFeatureReader = (latitude: number, longitude: number) => Promise<ServiceFeature[]>;
|
|
128
142
|
/**
|
|
129
143
|
* The reader the live check uses: a bounding-box query against the Department's own service.
|
|
130
144
|
*
|
|
131
|
-
* The service answers a BOX
|
|
132
|
-
* in {@link readServiceContainment} against
|
|
133
|
-
*
|
|
145
|
+
* The service answers a BOX rather than a point, so this returns what it published nearby
|
|
146
|
+
* and the containment decision is made in {@link readServiceContainment} against
|
|
147
|
+
* those rings — comparing the artifact's verdict against a bare "the service returned
|
|
148
|
+
* something here" would pass on any polygon within eleven meters.
|
|
134
149
|
*/
|
|
135
150
|
export declare function createServiceReader(client: Pick<GZTClient, "readFeaturesNear">): ServiceFeatureReader;
|
|
136
151
|
export interface VerifyZoningOptions {
|
|
137
|
-
databasePath:
|
|
152
|
+
databasePath: PathBuilderLike;
|
|
138
153
|
readServiceFeatures: ServiceFeatureReader;
|
|
139
154
|
/**
|
|
140
|
-
* Points to re-ask the service about.
|
|
155
|
+
* Points to re-ask the service about.
|
|
156
|
+
*
|
|
157
|
+
* A caller samples them from the artifact — see {@link sampleAgreementPoints}.
|
|
141
158
|
*/
|
|
142
159
|
points: ReadonlyArray<{
|
|
143
160
|
label: string;
|
|
@@ -157,15 +174,16 @@ export interface VerifyZoningOptions {
|
|
|
157
174
|
*/
|
|
158
175
|
export declare function verifyZoningDatabase(options: VerifyZoningOptions): Promise<VerifyZoningResult>;
|
|
159
176
|
/**
|
|
160
|
-
* Draw a reproducible sample of points from the artifact — interior points of
|
|
161
|
-
* authorities.
|
|
177
|
+
* Draw a reproducible sample of points from the artifact — interior points of
|
|
178
|
+
* stored polygons, spread across authorities.
|
|
162
179
|
*
|
|
163
|
-
*
|
|
164
|
-
* between them and a sample from one would verify
|
|
165
|
-
*
|
|
166
|
-
*
|
|
180
|
+
* Spread across authorities rather than drawn from one, because 30 local authorities
|
|
181
|
+
* publish 581 distinct local codes between them and a sample from one would verify
|
|
182
|
+
* one authority's conversion while reporting on all of them.
|
|
183
|
+
* The stride discipline — keys chosen before any geometry is read, deterministic
|
|
184
|
+
* rather than random — is `strideSampleInteriorPoints`'s.
|
|
167
185
|
*/
|
|
168
|
-
export declare function sampleAgreementPoints(databasePath:
|
|
186
|
+
export declare function sampleAgreementPoints(databasePath: PathBuilderLike, options?: {
|
|
169
187
|
count?: number;
|
|
170
188
|
}): Array<{
|
|
171
189
|
label: string;
|
package/out/sdk/verify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.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AA6DD;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACpC,YAAY,EAAE,eAAe,EAC7B,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9B,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAwClF"}
|
package/out/sdk/verify.js
CHANGED
|
@@ -3,47 +3,50 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The
|
|
6
|
+
* The check compares the artifact with a second path. A separate half tests locations outside its coverage.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* on OUR CONVERSION rather than on the authority.
|
|
8
|
+
* The positive half samples points from the sealed artifact and asks the Department's feature service about them.
|
|
9
|
+
* The service supplies geometry through a separate distribution channel. This package has not touched that geometry.
|
|
10
|
+
* The check runs the point test on the service's rings. It compares two verdicts from the same authority.
|
|
11
|
+
* This measures our conversion against the authority's published geometry.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* comes back OUTSIDE on both paths or on neither.
|
|
13
|
+
* The service returns geometry in the publisher's ring convention. `outSR=4326` returns the same clockwise-exterior
|
|
14
|
+
* rings as the bulk export. This path re-derives ring roles as ingest does. A point inside a hole then falls outside
|
|
15
|
+
* on both paths or inside on both paths.
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* polygon is not a statement.
|
|
17
|
+
* The negative half checks locations outside the publication area. The Department omits Donegal, one of 31 local
|
|
18
|
+
* authorities. The product also excludes Northern Ireland. Points in both areas must return `unknown` with no
|
|
19
|
+
* designation. A positive-only check could pass an artifact that reports the whole island as zoned. The layer treats
|
|
20
|
+
* a missing polygon as no zoning statement.
|
|
24
21
|
*
|
|
25
|
-
*
|
|
26
|
-
* archive publishes nine decimals through this package's ingest
|
|
27
|
-
* within roughly a
|
|
28
|
-
*
|
|
29
|
-
* of the receipt.
|
|
22
|
+
* The channels use different coordinate precision. A boundary-point disagreement therefore does not establish a
|
|
23
|
+
* conversion defect. The archive publishes nine decimals through this package's ingest. The service rounds its JSON.
|
|
24
|
+
* A point within roughly a meter of a zone boundary can fall on opposite sides of the two rendered edges. The check
|
|
25
|
+
* reports these cases as `boundary_tolerance` with the distance to the nearest edge. The receipt includes their count.
|
|
30
26
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
27
|
+
* The distance measures to the edge rather than to the nearest vertex. A point a centimeter from a long edge can be
|
|
28
|
+
* meters from every vertex. In one sibling-layer near-miss, vertex distance measured 1.58 m and edge distance
|
|
29
|
+
* measured 0.009 m. The vertex measurement overstated distance by 175 times. It would make the stated boundary
|
|
30
|
+
* tolerance stricter and report a rendering difference as a conversion defect.
|
|
35
31
|
*/
|
|
32
|
+
import { stringifyJSON } from "@mailwoman/core/json";
|
|
36
33
|
import { nearestRingEdgeMetres, pointInEncodedRings, strideSampleInteriorPoints, encodeRings, } from "@mailwoman/spatial";
|
|
37
34
|
import { DatabaseClient } from "@mailwoman/sqlite/client";
|
|
38
35
|
import { ZoningLookup, ZoningReadingKind } from "#index";
|
|
39
36
|
import { resolveRingRoles } from "#rings";
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
42
|
-
* reader cannot name is a coordinate nobody can check.
|
|
38
|
+
* Point identifiers for locations outside this product's publication area.
|
|
43
39
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
40
|
+
* Each is a place rather than a bare pair of numbers: a coordinate a reader a
|
|
41
|
+
* coordinate without a reference source cannot be checked.
|
|
42
|
+
*
|
|
43
|
+
* The check requires points from two populations.
|
|
44
|
+
* The Donegal points are the case this layer's coverage posture exists for.
|
|
45
|
+
*
|
|
46
|
+
* The Department has not published that authority's zoning.
|
|
47
|
+
* A builder that reads the absence as "unrestricted" would answer these points confidently.
|
|
48
|
+
*
|
|
49
|
+
* The Northern Irish points confirm the artifact is clipped to the Republic rather than to the
|
|
47
50
|
* island: zoning there is a different jurisdiction's instrument under a different planning act.
|
|
48
51
|
*/
|
|
49
52
|
export const OUTSIDE_PUBLICATION_POINTS = [
|
|
@@ -55,25 +58,30 @@ export const OUTSIDE_PUBLICATION_POINTS = [
|
|
|
55
58
|
{ label: "Enniskillen, Northern Ireland", latitude: 54.3438, longitude: -7.6316 },
|
|
56
59
|
];
|
|
57
60
|
/**
|
|
58
|
-
* Half-width of the bounding box the service is asked for, in degrees.
|
|
59
|
-
*
|
|
61
|
+
* Half-width of the bounding box the service is asked for, in degrees.
|
|
62
|
+
*
|
|
63
|
+
* About 11 m at this latitude — wide enough that a polygon containing the point is
|
|
64
|
+
* certainly returned, narrow enough that the response stays small.
|
|
60
65
|
*/
|
|
61
66
|
const PROBE_HALF_WIDTH_DEGREES = 0.0001;
|
|
62
67
|
/**
|
|
63
|
-
* How close to a service-polygon edge a disagreement is attributed to the channels'
|
|
64
|
-
* rather than to the conversion.
|
|
68
|
+
* How close to a service-polygon edge a disagreement is attributed to the channels'
|
|
69
|
+
* differing coordinate precision rather than to the conversion.
|
|
70
|
+
*
|
|
71
|
+
* Half a meter.
|
|
72
|
+
* The two channels render the same edge from the same source coordinates through different
|
|
73
|
+
* rounding, so a point between the two renderings lands on opposite sides.
|
|
65
74
|
*
|
|
66
|
-
* Half a
|
|
67
|
-
* point between the two renderings lands on opposite sides; half a metre is far below any real zoning boundary and far
|
|
68
|
-
* above the rounding difference.
|
|
75
|
+
* Half a meter is far below any real zoning boundary and far above the rounding difference.
|
|
69
76
|
*/
|
|
70
77
|
const BOUNDARY_TOLERANCE_METRES = 0.5;
|
|
71
78
|
/**
|
|
72
79
|
* The reader the live check uses: a bounding-box query against the Department's own service.
|
|
73
80
|
*
|
|
74
|
-
* The service answers a BOX
|
|
75
|
-
* in {@link readServiceContainment} against
|
|
76
|
-
*
|
|
81
|
+
* The service answers a BOX rather than a point, so this returns what it published nearby
|
|
82
|
+
* and the containment decision is made in {@link readServiceContainment} against
|
|
83
|
+
* those rings — comparing the artifact's verdict against a bare "the service returned
|
|
84
|
+
* something here" would pass on any polygon within eleven meters.
|
|
77
85
|
*/
|
|
78
86
|
export function createServiceReader(client) {
|
|
79
87
|
return async (latitude, longitude) => client.readFeaturesNear(latitude, longitude, PROBE_HALF_WIDTH_DEGREES);
|
|
@@ -132,8 +140,9 @@ export async function verifyZoningDatabase(options) {
|
|
|
132
140
|
}
|
|
133
141
|
}
|
|
134
142
|
/**
|
|
135
|
-
* Whether the
|
|
136
|
-
* even-odd rule the artifact's reader uses
|
|
143
|
+
* Whether the service's own geometry contains the point, decided here with the same
|
|
144
|
+
* ring-role resolution and the same even-odd rule the artifact's reader uses.
|
|
145
|
+
* So what is compared is a verdict against a verdict.
|
|
137
146
|
*/
|
|
138
147
|
async function readServiceContainment(readServiceFeatures, latitude, longitude) {
|
|
139
148
|
const features = await readServiceFeatures(latitude, longitude);
|
|
@@ -151,13 +160,14 @@ async function readServiceContainment(readServiceFeatures, latitude, longitude)
|
|
|
151
160
|
if (distance < nearest) {
|
|
152
161
|
nearest = distance;
|
|
153
162
|
}
|
|
154
|
-
//
|
|
155
|
-
// both channels, so reading this side as nested
|
|
156
|
-
//
|
|
163
|
+
// the service'S rings GET the same role resolution the ingest gave the archive'S.
|
|
164
|
+
// The publisher uses one convention on both channels, so reading this side as nested
|
|
165
|
+
// GeoJSON would answer "inside" for a point in a hole and report the artifact as
|
|
166
|
+
// wrong at exactly the locations the hole handling exists for.
|
|
157
167
|
const resolved = resolveRingRoles(raw, `service feature near ${latitude},${longitude}`);
|
|
158
|
-
//
|
|
159
|
-
// `pointInEncodedRings`, and running the service's geometry through a different
|
|
160
|
-
// that were never asked the same question.
|
|
168
|
+
// encoded and RE-read rather than RAY-cast directly, deliberately: the artifact answers
|
|
169
|
+
// through `pointInEncodedRings`, and running the service's geometry through a different
|
|
170
|
+
// predicate would compare two answers that were never asked the same question.
|
|
161
171
|
if (pointInEncodedRings(encodeRings(resolved.polygons), longitude, latitude)) {
|
|
162
172
|
inside = true;
|
|
163
173
|
const code = feature.properties?.ZONE_ORIG;
|
|
@@ -173,27 +183,30 @@ async function readServiceContainment(readServiceFeatures, latitude, longitude)
|
|
|
173
183
|
};
|
|
174
184
|
}
|
|
175
185
|
/**
|
|
176
|
-
* Draw a reproducible sample of points from the artifact — interior points of
|
|
177
|
-
* authorities.
|
|
186
|
+
* Draw a reproducible sample of points from the artifact — interior points of
|
|
187
|
+
* stored polygons, spread across authorities.
|
|
178
188
|
*
|
|
179
|
-
*
|
|
180
|
-
* between them and a sample from one would verify
|
|
181
|
-
*
|
|
182
|
-
*
|
|
189
|
+
* Spread across authorities rather than drawn from one, because 30 local authorities
|
|
190
|
+
* publish 581 distinct local codes between them and a sample from one would verify
|
|
191
|
+
* one authority's conversion while reporting on all of them.
|
|
192
|
+
* The stride discipline — keys chosen before any geometry is read, deterministic
|
|
193
|
+
* rather than random — is `strideSampleInteriorPoints`'s.
|
|
183
194
|
*/
|
|
184
195
|
export function sampleAgreementPoints(databasePath, options = {}) {
|
|
185
196
|
const count = options.count ?? 48;
|
|
186
197
|
using database = new DatabaseClient(databasePath, { readOnly: true });
|
|
187
|
-
//
|
|
188
|
-
//
|
|
189
|
-
//
|
|
198
|
+
// Sort by authority so the stride samples across the 30 authorities
|
|
199
|
+
// instead of sampling one authority repeatedly.
|
|
200
|
+
// A stride over `area_id` by itself would follow the publisher's feature numbering.
|
|
201
|
+
// That numbering is grouped by authority, so the stride would select only the
|
|
202
|
+
// authorities that fall on its positions.
|
|
190
203
|
const areaIDs = database.prepare("SELECT area_id FROM zoning_area ORDER BY jurisdiction_id, area_id").all().map((row) => row.area_id);
|
|
191
204
|
const selectArea = database.prepare("SELECT area_id, jurisdiction_id, local_code, min_lat, min_lon, max_lat, max_lon, rings FROM zoning_area WHERE area_id = ?");
|
|
192
205
|
return strideSampleInteriorPoints(areaIDs, count, {
|
|
193
206
|
fetch: (key) => selectArea.get(key),
|
|
194
207
|
gridSteps: 17,
|
|
195
208
|
toPoint: (area, interior) => ({
|
|
196
|
-
label: `${area.jurisdiction_id} ${
|
|
209
|
+
label: `${area.jurisdiction_id} ${stringifyJSON(area.local_code)} polygon ${area.area_id}`,
|
|
197
210
|
localCode: area.local_code,
|
|
198
211
|
...interior,
|
|
199
212
|
}),
|
package/out/sdk/verify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../
|
|
1
|
+
{"version":3,"file":"verify.js","sourceRoot":"","sources":["../../sdk/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EACN,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,WAAW,GAGX,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAGzD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAsB,MAAM,QAAQ,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAuEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA0E;IAChH,EAAE,KAAK,EAAE,kCAAkC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE;IACpF,EAAE,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE;IACrE,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO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