@mailwoman/zoning 10.0.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -163
- package/lib/index.ts +103 -135
- package/lib/paths.ts +24 -0
- package/lib/ring-roles.ts +30 -71
- package/lib/rings.ts +2 -13
- package/lib/schema.ts +98 -139
- package/lib/vocabulary.ts +52 -130
- package/out/index.d.ts +81 -101
- package/out/index.d.ts.map +1 -1
- package/out/index.js +37 -96
- package/out/index.js.map +1 -1
- package/out/paths.d.ts +19 -0
- package/out/paths.d.ts.map +1 -0
- package/out/paths.js +21 -0
- package/out/paths.js.map +1 -0
- package/out/ring-roles.d.ts +16 -50
- package/out/ring-roles.d.ts.map +1 -1
- package/out/ring-roles.js +18 -51
- package/out/ring-roles.js.map +1 -1
- package/out/rings.d.ts +2 -13
- package/out/rings.d.ts.map +1 -1
- package/out/rings.js +2 -13
- package/out/rings.js.map +1 -1
- package/out/schema.d.ts +90 -132
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +17 -45
- package/out/schema.js.map +1 -1
- package/out/sdk/build-zoning.d.ts +58 -111
- package/out/sdk/build-zoning.d.ts.map +1 -1
- package/out/sdk/build-zoning.js +50 -139
- package/out/sdk/build-zoning.js.map +1 -1
- package/out/sdk/cells.d.ts +21 -62
- package/out/sdk/cells.d.ts.map +1 -1
- package/out/sdk/cells.js +15 -52
- package/out/sdk/cells.js.map +1 -1
- package/out/sdk/client.d.ts +23 -67
- package/out/sdk/client.d.ts.map +1 -1
- package/out/sdk/client.js +29 -77
- package/out/sdk/client.js.map +1 -1
- package/out/sdk/download.d.ts +7 -27
- package/out/sdk/download.d.ts.map +1 -1
- package/out/sdk/download.js +8 -28
- package/out/sdk/download.js.map +1 -1
- package/out/sdk/ingest/chunk.d.ts +19 -43
- package/out/sdk/ingest/chunk.d.ts.map +1 -1
- package/out/sdk/ingest/chunk.js +19 -52
- package/out/sdk/ingest/chunk.js.map +1 -1
- package/out/sdk/ingest/worker.d.ts +9 -0
- package/out/sdk/ingest/worker.d.ts.map +1 -0
- package/out/{scripts/ingest-chunk.js → sdk/ingest/worker.js} +8 -10
- package/out/sdk/ingest/worker.js.map +1 -0
- package/out/sdk/ingest.d.ts +152 -0
- package/out/sdk/ingest.d.ts.map +1 -0
- package/out/sdk/ingest.js +200 -0
- package/out/sdk/ingest.js.map +1 -0
- package/out/sdk/measure-resolutions.d.ts +7 -34
- package/out/sdk/measure-resolutions.d.ts.map +1 -1
- package/out/sdk/measure-resolutions.js +5 -23
- package/out/sdk/measure-resolutions.js.map +1 -1
- package/out/sdk/test-kit.d.ts +75 -0
- package/out/sdk/test-kit.d.ts.map +1 -0
- package/out/{test-kit.js → sdk/test-kit.js} +20 -43
- package/out/sdk/test-kit.js.map +1 -0
- package/out/sdk/verify.d.ts +79 -80
- package/out/sdk/verify.d.ts.map +1 -1
- package/out/sdk/verify.js +83 -70
- package/out/sdk/verify.js.map +1 -1
- package/out/vocabulary.d.ts +52 -120
- package/out/vocabulary.d.ts.map +1 -1
- package/out/vocabulary.js +47 -125
- package/out/vocabulary.js.map +1 -1
- package/package.json +38 -162
- package/{lib/sdk → sdk}/build-zoning.ts +102 -188
- package/{lib/sdk → sdk}/cells.ts +27 -66
- package/{lib/sdk → sdk}/client.ts +34 -82
- package/sdk/download.ts +58 -0
- package/{lib/sdk → sdk}/ingest/chunk.ts +36 -65
- package/{lib/scripts/ingest-chunk.ts → sdk/ingest/worker.ts} +7 -9
- package/sdk/ingest.ts +354 -0
- package/sdk/measure-resolutions.ts +72 -0
- package/{lib → sdk}/test-kit.ts +21 -44
- package/sdk/verify.ts +367 -0
- package/lib/sdk/download.ts +0 -78
- package/lib/sdk/index.ts +0 -15
- package/lib/sdk/ingest/index.ts +0 -393
- package/lib/sdk/measure-resolutions.ts +0 -101
- package/lib/sdk/verify.ts +0 -357
- package/out/scripts/ingest-chunk.d.ts +0 -11
- package/out/scripts/ingest-chunk.d.ts.map +0 -1
- package/out/scripts/ingest-chunk.js.map +0 -1
- package/out/sdk/index.d.ts +0 -15
- package/out/sdk/index.d.ts.map +0 -1
- package/out/sdk/index.js +0 -15
- package/out/sdk/index.js.map +0 -1
- package/out/sdk/ingest/index.d.ts +0 -185
- package/out/sdk/ingest/index.d.ts.map +0 -1
- package/out/sdk/ingest/index.js +0 -232
- package/out/sdk/ingest/index.js.map +0 -1
- package/out/test-kit.d.ts +0 -96
- package/out/test-kit.d.ts.map +0 -1
- package/out/test-kit.js.map +0 -1
package/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":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACN,iCAAiC,EACjC,2BAA2B,EAC3B,iBAAiB,GAGjB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EACN,kBAAkB,EAClB,YAAY,EACZ,0BAA0B,EAC1B,cAAc,EAEd,mBAAmB,GACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAIpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EACN,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACtB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7D;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,UAAU,EAAE,YAAY;IACxB;;OAE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tB;SACD,CAAC,CACF;QACD,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,IAAI;QAC3C,aAAa,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;YAC7C,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC;YACrC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC;YAChC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC;YACtC,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC;SAC7C,CAAC,CAAC;QACH,aAAa,EAAE,aAAa,CAAC,aAAa;QAC1C,YAAY;KACZ,CAAA;AACF,CAAC"}
|
package/out/paths.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
import type { PathBuilder, PathBuilderLike } from "path-ts";
|
|
9
|
+
/**
|
|
10
|
+
* `<dataRoot>/db/zoning`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function zoningDatabaseRoot(dataRoot: PathBuilderLike): PathBuilder;
|
|
13
|
+
/**
|
|
14
|
+
* `$MAILWOMAN_DATA_ROOT/db/zoning`, read when a path is requested.
|
|
15
|
+
*
|
|
16
|
+
* @see {@link zoningDatabaseRoot} for another data root.
|
|
17
|
+
*/
|
|
18
|
+
export declare const zoningDatabasePath: PathBuilder;
|
|
19
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,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
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
import { databaseRootPath, dataRootPath } from "@mailwoman/core/data-root";
|
|
9
|
+
/**
|
|
10
|
+
* `<dataRoot>/db/zoning`.
|
|
11
|
+
*/
|
|
12
|
+
export function zoningDatabaseRoot(dataRoot) {
|
|
13
|
+
return databaseRootPath(dataRoot)("zoning");
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* `$MAILWOMAN_DATA_ROOT/db/zoning`, read when a path is requested.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link zoningDatabaseRoot} for another data root.
|
|
19
|
+
*/
|
|
20
|
+
export const zoningDatabasePath = zoningDatabaseRoot(dataRootPath());
|
|
21
|
+
//# sourceMappingURL=paths.js.map
|
package/out/paths.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../lib/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;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
|
@@ -3,32 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* THE SERVICE ENCODES HOLE ROLES BY ORIENTATION RATHER THAN BY NESTING, AND IT DOES IT ON MOST FEATURES.
|
|
10
|
-
* Measured over the whole national export (85,330 features, 93,483 rings): 89,967 rings are clockwise and
|
|
11
|
-
* 3,516 counter-clockwise; 84,021 features are wholly clockwise; and 1,309 features carry both windings.
|
|
12
|
-
* Of those, 1,210 nest their holes inside one polygon part the way RFC 7946 expects, and the rest put every
|
|
13
|
-
* ring in its own `MultiPolygon` part — the largest feature in the country, Meath's `RA - Rural Area`,
|
|
14
|
-
* arrives as 107 single-ring parts of which 5 are clockwise and 102 counter-clockwise. So the source uses
|
|
15
|
-
* BOTH encodings, the orientation is the only signal common to them, and a reader that took the nesting at
|
|
16
|
-
* face value would read 102 holes as 102 separate zoned areas.
|
|
17
|
-
*
|
|
18
|
-
* CLOCKWISE IS EXTERIOR, WHICH IS THE INVERSE OF RFC 7946, AND THE PUBLISHER'S OWN ARITHMETIC PROVES IT.
|
|
19
|
-
* Summing every ring's signed area over the export gives 5,444.492956 km²; the Department's own
|
|
20
|
-
* `Shape__Area` column sums to 5,444.492956 km². Summing the same rings' ABSOLUTE areas gives 5,666.569
|
|
21
|
-
* km². The signed reading matches the publisher to eight significant figures and the absolute one is 4.1%
|
|
22
|
-
* too large, so the counter-clockwise rings subtract under the publisher's own accounting: they are holes.
|
|
23
|
-
*
|
|
24
|
-
* THE HARMLESS HALF OF GETTING IT WRONG IS THE AREA. The harmful half is that a ray cast reading all 107 of
|
|
25
|
-
* Meath's rings as exteriors answers "inside `P5` rural zoning" for every location the plan carved out.
|
|
26
|
-
*
|
|
27
|
-
* AND GDAL CANNOT BE ASKED TO PRESERVE THIS. Its GeoJSON writer enforces the RFC 7946 winding
|
|
28
|
-
* unconditionally — `-lco RFC7946=NO` is not a GeoJSONSeq option and `--config OGR_ORGANIZE_POLYGONS SKIP`
|
|
29
|
-
* changes nothing — so a reprojected GeoJSON stream returns Meath as 107 counter-clockwise exteriors
|
|
30
|
-
* totalling 2,371.9 km² against the Department's 2,232.1 km². The same conversion written as WKT keeps the
|
|
31
|
-
* source's 5/102 split intact, which is why `sdk/ingest.ts` streams WKT.
|
|
6
|
+
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes hole roles by
|
|
7
|
+
* orientation rather than nesting.
|
|
32
8
|
*/
|
|
33
9
|
import { type MultiPolygonRings } from "@mailwoman/spatial";
|
|
34
10
|
/**
|
|
@@ -36,7 +12,8 @@ import { type MultiPolygonRings } from "@mailwoman/spatial";
|
|
|
36
12
|
*/
|
|
37
13
|
export interface ResolvedRingRoles {
|
|
38
14
|
/**
|
|
39
|
-
* `[exterior, ...holes]` per polygon
|
|
15
|
+
* `[exterior, ...holes]` per polygon.
|
|
16
|
+
* The shape the ring blob stores and the point test reads.
|
|
40
17
|
*/
|
|
41
18
|
polygons: MultiPolygonRings;
|
|
42
19
|
exteriorCount: number;
|
|
@@ -46,32 +23,23 @@ export interface ResolvedRingRoles {
|
|
|
46
23
|
*/
|
|
47
24
|
nestedHoles: number;
|
|
48
25
|
/**
|
|
49
|
-
* Holes
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* carried rather than dropped: the publisher's own area accounting subtracts them, so dropping one would add ground
|
|
53
|
-
* the plan carved out, and a feature with exactly one exterior — 8 of the 9 — has no ambiguity at all.
|
|
26
|
+
* Holes no exterior contains a majority of, placed under the smallest exterior
|
|
27
|
+
* of the same feature and counted here: they are retained rather than dropped,
|
|
28
|
+
* because dropping one would add ground the plan carved out.
|
|
54
29
|
*/
|
|
55
30
|
adjacentHoles: number;
|
|
56
31
|
/**
|
|
57
|
-
* `1` where the feature's exterior was chosen by
|
|
32
|
+
* `1` where the feature's exterior was chosen by magnitude because no ring read as one by orientation.
|
|
58
33
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* stated: the same ring reads clockwise in the source's own Irish Transverse Mercator metres and counter-clockwise
|
|
63
|
-
* after reprojection. Refusing it would fail the build on the publisher's own data; dropping it would invent an
|
|
64
|
-
* absence. So the largest ring by magnitude becomes the exterior, which is also the correct reading for a feature
|
|
65
|
-
* published wholly inverted, and the count rides on the receipt rather than being implied to be zero.
|
|
34
|
+
* The largest ring becomes the exterior.
|
|
35
|
+
* This also handles a feature published wholly inverted.
|
|
36
|
+
* The receipt reports the count explicitly.
|
|
66
37
|
*/
|
|
67
38
|
exteriorByMagnitude: number;
|
|
68
39
|
/**
|
|
69
|
-
* The signed ring sum over the source's rings
|
|
70
|
-
* clockwise-exterior convention.
|
|
71
|
-
*
|
|
72
|
-
* The ingest's own receipt, stored on the row. It is what the build compares against the Department's `Shape__Area`
|
|
73
|
-
* sum, and its SIGN is the record that the orientation was read: a source that started publishing counter-clockwise
|
|
74
|
-
* exteriors would flip it, which is a fact about the source rather than a rounding difference.
|
|
40
|
+
* The signed ring sum over the source's rings as published, in square meters,
|
|
41
|
+
* positive under this service's clockwise-exterior convention.
|
|
42
|
+
* Its sign is the record that the orientation was read.
|
|
75
43
|
*/
|
|
76
44
|
signedAreaM2: number;
|
|
77
45
|
ringCount: number;
|
|
@@ -79,10 +47,8 @@ export interface ResolvedRingRoles {
|
|
|
79
47
|
/**
|
|
80
48
|
* Resolve one feature's hole roles from ring orientation.
|
|
81
49
|
*
|
|
82
|
-
* @param featureID
|
|
83
|
-
* @throws {Error} When the feature
|
|
84
|
-
* nothing reads downstream as an absence of zoning, which is the one answer this layer must never invent. A feature
|
|
85
|
-
* whose rings all read as holes DOES have a reading — see {@link ResolvedRingRoles.exteriorByMagnitude}.
|
|
50
|
+
* @param featureID Included in every refusal, so a build log identifies which feature failed.
|
|
51
|
+
* @throws {Error} When the feature has no ring at all, the one case with no reading.
|
|
86
52
|
*/
|
|
87
53
|
export declare function resolveRingRoles(polygons: MultiPolygonRings, featureID: string): ResolvedRingRoles;
|
|
88
54
|
//# sourceMappingURL=ring-roles.d.ts.map
|
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":"AAAA
|
|
1
|
+
{"version":3,"file":"ring-roles.d.ts","sourceRoot":"","sources":["../lib/ring-roles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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
|
@@ -3,50 +3,21 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* THE SERVICE ENCODES HOLE ROLES BY ORIENTATION RATHER THAN BY NESTING, AND IT DOES IT ON MOST FEATURES.
|
|
10
|
-
* Measured over the whole national export (85,330 features, 93,483 rings): 89,967 rings are clockwise and
|
|
11
|
-
* 3,516 counter-clockwise; 84,021 features are wholly clockwise; and 1,309 features carry both windings.
|
|
12
|
-
* Of those, 1,210 nest their holes inside one polygon part the way RFC 7946 expects, and the rest put every
|
|
13
|
-
* ring in its own `MultiPolygon` part — the largest feature in the country, Meath's `RA - Rural Area`,
|
|
14
|
-
* arrives as 107 single-ring parts of which 5 are clockwise and 102 counter-clockwise. So the source uses
|
|
15
|
-
* BOTH encodings, the orientation is the only signal common to them, and a reader that took the nesting at
|
|
16
|
-
* face value would read 102 holes as 102 separate zoned areas.
|
|
17
|
-
*
|
|
18
|
-
* CLOCKWISE IS EXTERIOR, WHICH IS THE INVERSE OF RFC 7946, AND THE PUBLISHER'S OWN ARITHMETIC PROVES IT.
|
|
19
|
-
* Summing every ring's signed area over the export gives 5,444.492956 km²; the Department's own
|
|
20
|
-
* `Shape__Area` column sums to 5,444.492956 km². Summing the same rings' ABSOLUTE areas gives 5,666.569
|
|
21
|
-
* km². The signed reading matches the publisher to eight significant figures and the absolute one is 4.1%
|
|
22
|
-
* too large, so the counter-clockwise rings subtract under the publisher's own accounting: they are holes.
|
|
23
|
-
*
|
|
24
|
-
* THE HARMLESS HALF OF GETTING IT WRONG IS THE AREA. The harmful half is that a ray cast reading all 107 of
|
|
25
|
-
* Meath's rings as exteriors answers "inside `P5` rural zoning" for every location the plan carved out.
|
|
26
|
-
*
|
|
27
|
-
* AND GDAL CANNOT BE ASKED TO PRESERVE THIS. Its GeoJSON writer enforces the RFC 7946 winding
|
|
28
|
-
* unconditionally — `-lco RFC7946=NO` is not a GeoJSONSeq option and `--config OGR_ORGANIZE_POLYGONS SKIP`
|
|
29
|
-
* changes nothing — so a reprojected GeoJSON stream returns Meath as 107 counter-clockwise exteriors
|
|
30
|
-
* totalling 2,371.9 km² against the Department's 2,232.1 km². The same conversion written as WKT keeps the
|
|
31
|
-
* source's 5/102 split intact, which is why `sdk/ingest.ts` streams WKT.
|
|
6
|
+
* Clockwise is exterior — the inverse of RFC 7946 — because the service encodes hole roles by
|
|
7
|
+
* orientation rather than nesting.
|
|
32
8
|
*/
|
|
33
9
|
import { pointInRing, ringSignedAreaM2 } from "@mailwoman/spatial";
|
|
34
10
|
/**
|
|
35
11
|
* How many of a hole's vertices are tested against a candidate exterior.
|
|
36
12
|
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* is a degenerate sliver of between 0.0008 m² and 1.7 m², and the publisher's own area accounting subtracts all of
|
|
41
|
-
* them.
|
|
13
|
+
* A hole and its exterior share vertices.
|
|
14
|
+
* One vertex cannot distinguish them.
|
|
15
|
+
* A ray cast on an edge is implementation-defined.
|
|
42
16
|
*/
|
|
43
17
|
const HOLE_VERTEX_SAMPLES = 9;
|
|
44
18
|
/**
|
|
45
|
-
* Flatten a feature's rings,
|
|
46
|
-
*
|
|
47
|
-
* DELIBERATELY DISCARDS THE ARRIVING NESTING. Both encodings reach here — a properly nested polygon and a pile of
|
|
48
|
-
* single-ring parts — and the orientation is the only signal that means the same thing in both. Keeping the nesting for
|
|
49
|
-
* the features that have it and inferring it for the ones that do not would put two rules over one artifact.
|
|
19
|
+
* Flatten a feature's rings, discarding the arriving nesting because orientation is
|
|
20
|
+
* the only signal that means the same thing in both encodings.
|
|
50
21
|
*/
|
|
51
22
|
function flattenRings(polygons) {
|
|
52
23
|
const rings = [];
|
|
@@ -75,10 +46,8 @@ function containsMajority(ring, outer) {
|
|
|
75
46
|
/**
|
|
76
47
|
* Resolve one feature's hole roles from ring orientation.
|
|
77
48
|
*
|
|
78
|
-
* @param featureID
|
|
79
|
-
* @throws {Error} When the feature
|
|
80
|
-
* nothing reads downstream as an absence of zoning, which is the one answer this layer must never invent. A feature
|
|
81
|
-
* whose rings all read as holes DOES have a reading — see {@link ResolvedRingRoles.exteriorByMagnitude}.
|
|
49
|
+
* @param featureID Included in every refusal, so a build log identifies which feature failed.
|
|
50
|
+
* @throws {Error} When the feature has no ring at all, the one case with no reading.
|
|
82
51
|
*/
|
|
83
52
|
export function resolveRingRoles(polygons, featureID) {
|
|
84
53
|
const rings = flattenRings(polygons);
|
|
@@ -91,8 +60,10 @@ export function resolveRingRoles(polygons, featureID) {
|
|
|
91
60
|
for (const ring of rings) {
|
|
92
61
|
const signed = ringSignedAreaM2(ring);
|
|
93
62
|
signedAreaM2 += signed;
|
|
94
|
-
//
|
|
95
|
-
//
|
|
63
|
+
// `ringSignedAreaM2` signs clockwise positive.
|
|
64
|
+
// This service treats clockwise rings as exteriors.
|
|
65
|
+
// A zero-area ring is degenerate and stays a hole.
|
|
66
|
+
// It cannot enclose anything.
|
|
96
67
|
if (signed > 0) {
|
|
97
68
|
exteriors.push({ ring, area: signed, holes: [] });
|
|
98
69
|
}
|
|
@@ -101,10 +72,7 @@ export function resolveRingRoles(polygons, featureID) {
|
|
|
101
72
|
}
|
|
102
73
|
}
|
|
103
74
|
let exteriorByMagnitude = 0;
|
|
104
|
-
//
|
|
105
|
-
// the one that encloses the area, which is the correct reading both for a degenerate sliver whose winding is
|
|
106
|
-
// floating-point noise and for a feature published wholly inverted. Refusing here would fail the build on the
|
|
107
|
-
// publisher's own data, and skipping the feature would invent an absence.
|
|
75
|
+
// No ring read as an exterior, so magnitude decides: the largest ring is the one that encloses the area.
|
|
108
76
|
if (!exteriors.length) {
|
|
109
77
|
let largestIndex = 0;
|
|
110
78
|
let largestArea = Math.abs(ringSignedAreaM2(holes[0]));
|
|
@@ -119,8 +87,8 @@ export function resolveRingRoles(polygons, featureID) {
|
|
|
119
87
|
exteriors.push({ ring: largest, area: largestArea, holes: [] });
|
|
120
88
|
exteriorByMagnitude = 1;
|
|
121
89
|
}
|
|
122
|
-
//
|
|
123
|
-
//
|
|
90
|
+
// Smallest containing exterior, so a hole inside an island inside a hole lands on the island.
|
|
91
|
+
// One sort makes the choice deterministic on a tie.
|
|
124
92
|
const bySize = [...exteriors].toSorted((left, right) => left.area - right.area);
|
|
125
93
|
let nestedHoles = 0;
|
|
126
94
|
let adjacentHoles = 0;
|
|
@@ -131,9 +99,8 @@ export function resolveRingRoles(polygons, featureID) {
|
|
|
131
99
|
nestedHoles++;
|
|
132
100
|
continue;
|
|
133
101
|
}
|
|
134
|
-
// A hole no exterior contains a majority of sits
|
|
135
|
-
//
|
|
136
|
-
// 9, and is counted so a receipt can carry the number rather than imply it is zero.
|
|
102
|
+
// A hole no exterior contains a majority of sits on its parent's boundary and goes to the smallest
|
|
103
|
+
// exterior of the same feature, so a receipt can report the number rather than imply it is zero.
|
|
137
104
|
bySize[0].holes.push(hole);
|
|
138
105
|
adjacentHoles++;
|
|
139
106
|
}
|
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":"ring-roles.js","sourceRoot":"","sources":["../lib/ring-roles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAA0B,MAAM,oBAAoB,CAAA;AAE1F;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,CAAC,CAAA;AAwC7B;;;GAGG;AACH,SAAS,YAAY,CAAC,QAA2B;IAChD,MAAM,KAAK,GAA4C,EAAE,CAAA;IAEzD,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC7B,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;YACzB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACjB,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAA;AACb,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,IAAsC,EAAE,KAAuC;IACxG,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,mBAAmB,CAAC,CAAC,CAAA;IAEzE,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,IAA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EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;QAE/E,IAAI,MAAM,EAAE,CAAC;YACZ,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAEvB,WAAW,EAAE,CAAA;YAEb,SAAQ;QACT,CAAC;QAED,mGAAmG;QACnG,iGAAiG;QACjG,MAAM,CAAC,CAAC,CAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAE3B,aAAa,EAAE,CAAA;IAChB,CAAC;IAED,OAAO;QACN,QAAQ,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzE,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
|
@@ -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, type ResolvedRingRoles } from "#ring-roles";
|
|
21
10
|
//# 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":"AAAA
|
|
1
|
+
{"version":3,"file":"rings.d.ts","sourceRoot":"","sources":["../lib/rings.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAA"}
|
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"}
|