@mailwoman/spatial 11.0.0 → 11.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.
Files changed (204) hide show
  1. package/README.md +1 -1
  2. package/lib/bbox.ts +3 -4
  3. package/lib/coordinate/bounds.ts +3 -4
  4. package/lib/coordinate/cell.ts +42 -0
  5. package/lib/coordinate/formats.ts +61 -5
  6. package/lib/distance.ts +5 -5
  7. package/lib/feature.ts +2 -5
  8. package/lib/gb/codepoint.ts +6 -7
  9. package/lib/gb/os-downloads.ts +6 -6
  10. package/lib/geometries/collection.ts +3 -4
  11. package/lib/geometries/line-string.ts +3 -4
  12. package/lib/geometries/point/coordinates.ts +8 -8
  13. package/lib/geometries/point/distance.ts +4 -4
  14. package/lib/geometries/point.ts +10 -17
  15. package/lib/geometries/polygon.ts +3 -6
  16. package/lib/geometries/ring-blob.ts +9 -10
  17. package/lib/geometries/round.ts +73 -0
  18. package/lib/geometries/simplify.ts +126 -0
  19. package/lib/geometries.ts +3 -4
  20. package/lib/google/place-id.ts +3 -4
  21. package/lib/google.ts +2 -5
  22. package/lib/h3/cell.ts +5 -5
  23. package/lib/h3/coverage.ts +8 -9
  24. package/lib/h3/interior-cells.ts +5 -6
  25. package/lib/h3/polygon-cells.ts +9 -10
  26. package/lib/h3.ts +2 -5
  27. package/lib/index.ts +4 -5
  28. package/lib/objects.ts +2 -5
  29. package/lib/open-location-code.ts +47 -16
  30. package/lib/osgb36.ts +2 -5
  31. package/lib/point-query.ts +294 -0
  32. package/lib/polyline.ts +9 -10
  33. package/lib/position.ts +8 -7
  34. package/lib/projection/transform.ts +36 -21
  35. package/lib/projection.ts +2 -5
  36. package/lib/regions/codes.ts +2 -5
  37. package/lib/regions/names.ts +2 -5
  38. package/lib/regions.ts +2 -5
  39. package/lib/well-known-text.ts +3 -4
  40. package/out/bbox.d.ts +0 -7
  41. package/out/bbox.d.ts.map +1 -1
  42. package/out/bbox.js +2 -4
  43. package/out/bbox.js.map +1 -1
  44. package/out/coordinate/bounds.d.ts +0 -4
  45. package/out/coordinate/bounds.d.ts.map +1 -1
  46. package/out/coordinate/bounds.js +2 -4
  47. package/out/coordinate/bounds.js.map +1 -1
  48. package/out/coordinate/cell.d.ts +23 -0
  49. package/out/coordinate/cell.d.ts.map +1 -0
  50. package/out/coordinate/cell.js +24 -0
  51. package/out/coordinate/cell.js.map +1 -0
  52. package/out/coordinate/formats.d.ts +12 -5
  53. package/out/coordinate/formats.d.ts.map +1 -1
  54. package/out/coordinate/formats.js +50 -5
  55. package/out/coordinate/formats.js.map +1 -1
  56. package/out/distance.d.ts +1 -11
  57. package/out/distance.d.ts.map +1 -1
  58. package/out/distance.js +4 -5
  59. package/out/distance.js.map +1 -1
  60. package/out/feature.d.ts +0 -5
  61. package/out/feature.d.ts.map +1 -1
  62. package/out/feature.js +2 -5
  63. package/out/feature.js.map +1 -1
  64. package/out/gb/codepoint.d.ts +1 -9
  65. package/out/gb/codepoint.d.ts.map +1 -1
  66. package/out/gb/codepoint.js +5 -7
  67. package/out/gb/codepoint.js.map +1 -1
  68. package/out/gb/os-downloads.d.ts +3 -6
  69. package/out/gb/os-downloads.d.ts.map +1 -1
  70. package/out/gb/os-downloads.js +5 -6
  71. package/out/gb/os-downloads.js.map +1 -1
  72. package/out/geometries/collection.d.ts +0 -4
  73. package/out/geometries/collection.d.ts.map +1 -1
  74. package/out/geometries/collection.js +2 -7
  75. package/out/geometries/collection.js.map +1 -1
  76. package/out/geometries/line-string.d.ts +0 -4
  77. package/out/geometries/line-string.d.ts.map +1 -1
  78. package/out/geometries/line-string.js +2 -7
  79. package/out/geometries/line-string.js.map +1 -1
  80. package/out/geometries/point/coordinates.d.ts +2 -12
  81. package/out/geometries/point/coordinates.d.ts.map +1 -1
  82. package/out/geometries/point/coordinates.js +5 -5
  83. package/out/geometries/point/coordinates.js.map +1 -1
  84. package/out/geometries/point/distance.d.ts +1 -4
  85. package/out/geometries/point/distance.d.ts.map +1 -1
  86. package/out/geometries/point/distance.js +3 -4
  87. package/out/geometries/point/distance.js.map +1 -1
  88. package/out/geometries/point.d.ts +6 -17
  89. package/out/geometries/point.d.ts.map +1 -1
  90. package/out/geometries/point.js +6 -8
  91. package/out/geometries/point.js.map +1 -1
  92. package/out/geometries/polygon.d.ts +1 -6
  93. package/out/geometries/polygon.d.ts.map +1 -1
  94. package/out/geometries/polygon.js +3 -6
  95. package/out/geometries/polygon.js.map +1 -1
  96. package/out/geometries/ring-blob.d.ts +3 -7
  97. package/out/geometries/ring-blob.d.ts.map +1 -1
  98. package/out/geometries/ring-blob.js +6 -13
  99. package/out/geometries/ring-blob.js.map +1 -1
  100. package/out/geometries/round.d.ts +25 -0
  101. package/out/geometries/round.d.ts.map +1 -0
  102. package/out/geometries/round.js +47 -0
  103. package/out/geometries/round.js.map +1 -0
  104. package/out/geometries/simplify.d.ts +22 -0
  105. package/out/geometries/simplify.d.ts.map +1 -0
  106. package/out/geometries/simplify.js +93 -0
  107. package/out/geometries/simplify.js.map +1 -0
  108. package/out/geometries.d.ts +0 -4
  109. package/out/geometries.d.ts.map +1 -1
  110. package/out/geometries.js +2 -4
  111. package/out/geometries.js.map +1 -1
  112. package/out/google/place-id.d.ts +0 -4
  113. package/out/google/place-id.d.ts.map +1 -1
  114. package/out/google/place-id.js +2 -7
  115. package/out/google/place-id.js.map +1 -1
  116. package/out/google.d.ts +0 -5
  117. package/out/google.d.ts.map +1 -1
  118. package/out/google.js +2 -5
  119. package/out/google.js.map +1 -1
  120. package/out/h3/cell.d.ts +1 -4
  121. package/out/h3/cell.d.ts.map +1 -1
  122. package/out/h3/cell.js +4 -5
  123. package/out/h3/cell.js.map +1 -1
  124. package/out/h3/coverage.d.ts +5 -9
  125. package/out/h3/coverage.d.ts.map +1 -1
  126. package/out/h3/coverage.js +7 -9
  127. package/out/h3/coverage.js.map +1 -1
  128. package/out/h3/interior-cells.d.ts +0 -8
  129. package/out/h3/interior-cells.d.ts.map +1 -1
  130. package/out/h3/interior-cells.js +4 -6
  131. package/out/h3/interior-cells.js.map +1 -1
  132. package/out/h3/polygon-cells.d.ts +6 -10
  133. package/out/h3/polygon-cells.d.ts.map +1 -1
  134. package/out/h3/polygon-cells.js +6 -8
  135. package/out/h3/polygon-cells.js.map +1 -1
  136. package/out/h3.d.ts +0 -5
  137. package/out/h3.d.ts.map +1 -1
  138. package/out/h3.js +2 -5
  139. package/out/h3.js.map +1 -1
  140. package/out/index.d.ts +2 -5
  141. package/out/index.d.ts.map +1 -1
  142. package/out/index.js +4 -5
  143. package/out/index.js.map +1 -1
  144. package/out/objects.d.ts +0 -5
  145. package/out/objects.d.ts.map +1 -1
  146. package/out/objects.js +2 -5
  147. package/out/objects.js.map +1 -1
  148. package/out/open-location-code.d.ts +14 -12
  149. package/out/open-location-code.d.ts.map +1 -1
  150. package/out/open-location-code.js +24 -9
  151. package/out/open-location-code.js.map +1 -1
  152. package/out/osgb36.d.ts +0 -5
  153. package/out/osgb36.d.ts.map +1 -1
  154. package/out/osgb36.js +2 -5
  155. package/out/osgb36.js.map +1 -1
  156. package/out/point-query.d.ts +71 -0
  157. package/out/point-query.d.ts.map +1 -0
  158. package/out/point-query.js +194 -0
  159. package/out/point-query.js.map +1 -0
  160. package/out/polyline.d.ts +1 -14
  161. package/out/polyline.d.ts.map +1 -1
  162. package/out/polyline.js +8 -10
  163. package/out/polyline.js.map +1 -1
  164. package/out/position.d.ts +3 -7
  165. package/out/position.d.ts.map +1 -1
  166. package/out/position.js +4 -8
  167. package/out/position.js.map +1 -1
  168. package/out/projection/transform.d.ts +33 -21
  169. package/out/projection/transform.d.ts.map +1 -1
  170. package/out/projection/transform.js +4 -2
  171. package/out/projection/transform.js.map +1 -1
  172. package/out/projection.d.ts +0 -5
  173. package/out/projection.d.ts.map +1 -1
  174. package/out/projection.js +2 -5
  175. package/out/projection.js.map +1 -1
  176. package/out/regions/codes.d.ts +0 -5
  177. package/out/regions/codes.d.ts.map +1 -1
  178. package/out/regions/codes.js +2 -5
  179. package/out/regions/codes.js.map +1 -1
  180. package/out/regions/names.d.ts +0 -5
  181. package/out/regions/names.d.ts.map +1 -1
  182. package/out/regions/names.js +2 -5
  183. package/out/regions/names.js.map +1 -1
  184. package/out/regions.d.ts +0 -5
  185. package/out/regions.d.ts.map +1 -1
  186. package/out/regions.js +2 -5
  187. package/out/regions.js.map +1 -1
  188. package/out/tools/ogr/stream.d.ts +0 -6
  189. package/out/tools/ogr/stream.d.ts.map +1 -1
  190. package/out/tools/ogr/stream.js +2 -3
  191. package/out/tools/ogr/stream.js.map +1 -1
  192. package/out/tools/ogr.d.ts +0 -14
  193. package/out/tools/ogr.d.ts.map +1 -1
  194. package/out/tools/ogr.js +10 -12
  195. package/out/tools/ogr.js.map +1 -1
  196. package/out/tools/tsconfig.tsbuildinfo +1 -1
  197. package/out/tsconfig.test.tsbuildinfo +1 -1
  198. package/out/well-known-text.d.ts +0 -7
  199. package/out/well-known-text.d.ts.map +1 -1
  200. package/out/well-known-text.js +2 -4
  201. package/out/well-known-text.js.map +1 -1
  202. package/package.json +5 -9
  203. package/tools/ogr/stream.ts +3 -3
  204. package/tools/ogr.ts +11 -12
@@ -0,0 +1,194 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
+ /**
4
+ * @file The shapes a typed query takes when it is a point rather than an address, and the one parser for them.
5
+ *
6
+ * A search field receives coordinates in a dozen spellings, a plus code, an H3 cell, a geohash or a
7
+ * Who's On First id beside ordinary addresses. {@link parsePointQuery} reads the whole text as one of those shapes or
8
+ * answers `null`, so a caller sends only an address to the classifier. It reads text and decodes no cell: decoding a cell
9
+ * to a coordinate belongs to the module that owns the format, and the H3 reader loads a WebAssembly binary
10
+ * that a text test mustn't pay for.
11
+ */
12
+ import { isValidLatitude, isValidLongitude } from "#coordinate/bounds";
13
+ import { isFullPlusCode, isShortPlusCode } from "#open-location-code";
14
+ /**
15
+ * `wof:85633793`, `wof 85633793`, `whosonfirst:85633793`.
16
+ */
17
+ const WOF_REFERENCE = /^(?:wof|whosonfirst)[\s:]+(\d{1,16})$/iu;
18
+ /**
19
+ * A Spelunker place page, with or without the trailing slash.
20
+ */
21
+ const SPELUNKER_URL = /^https?:\/\/spelunker\.whosonfirst\.org\/id\/(\d{1,16})\/?$/iu;
22
+ /**
23
+ * The hexadecimal form of an H3 cell: mode 1 in the high nibble, then fourteen more digits.
24
+ */
25
+ const H3_CELL = /^(?:h3:)?(8[0-9a-f]{14})$/iu;
26
+ /**
27
+ * A geohash behind its prefix, in the base-32 alphabet that omits `a`, `i`, `l` and `o`.
28
+ */
29
+ const GEOHASH_REFERENCE = /^(?:geohash|gh):\s*([0-9b-hjkmnp-z]{1,12})$/iu;
30
+ /**
31
+ * A `geo:` URI, `geo:48.8584,2.2945` with an optional altitude and parameters.
32
+ */
33
+ const GEO_URI = /^geo:(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)(?:,-?\d+(?:\.\d+)?)?(?:;.*)?$/iu;
34
+ /**
35
+ * Google Maps' path segment, `@48.8584,2.2945,17z`, with the zoom optional.
36
+ */
37
+ const MAPS_SEGMENT = /^@(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)(?:,[\d.]+z)?$/iu;
38
+ /**
39
+ * A labeled pair in either order: `lat 48.85 lon 2.29`, `lng=2.29, lat=48.85`.
40
+ */
41
+ const LABELED_PAIR = /^(lat(?:itude)?|lon(?:gitude)?|lng)\s*[:=]?\s*(-?\d+(?:\.\d+)?)\s*[,;\s]\s*(lat(?:itude)?|lon(?:gitude)?|lng)\s*[:=]?\s*(-?\d+(?:\.\d+)?)$/iu;
42
+ /**
43
+ * One angle: a signed decimal, or degrees with optional minutes and seconds,
44
+ * each with its mark, and an optional hemisphere letter after it.
45
+ */
46
+ const ANGLE = /^([+-])?\s*(\d+(?:\.\d+)?)\s*(?:°|º|d\b)?\s*(?:(\d+(?:\.\d+)?)\s*(?:'|′|’|m\b)\s*)?(?:(\d+(?:\.\d+)?)\s*(?:"|″|”|''|s\b)\s*)?([NSEW])?$/iu;
47
+ /**
48
+ * A pair of angles is split at the comma or semicolon, or after the first hemisphere letter,
49
+ * or between two decimal numbers at the whitespace between them.
50
+ */
51
+ const PAIR_AT_HEMISPHERE = /^(.+?[NSEW])\s+(.+)$/iu;
52
+ const PAIR_AT_SPACE = /^(\S+)\s+(\S+)$/u;
53
+ function parseAngle(text) {
54
+ const match = ANGLE.exec(text.trim());
55
+ if (!match)
56
+ return null;
57
+ const [, sign, degrees, minutes = "0", seconds = "0", letter] = match;
58
+ const magnitude = Number(degrees) + Number(minutes) / 60 + Number(seconds) / 3600;
59
+ if (!Number.isFinite(magnitude))
60
+ return null;
61
+ const hemisphere = letter ? letter.toUpperCase() : null;
62
+ const negative = sign === "-" || hemisphere === "S" || hemisphere === "W";
63
+ return { degrees: negative ? -magnitude : magnitude, hemisphere };
64
+ }
65
+ /**
66
+ * A pair of angles as the point they name, or `null` when the pair is out of range in both orders.
67
+ *
68
+ * Hemisphere letters decide the axis.
69
+ * Without them the first number is the latitude, as in a Google Maps link,
70
+ * unless only the other order is in range.
71
+ */
72
+ function pairToPoint(first, second) {
73
+ const latLetters = new Set(["N", "S"]);
74
+ const lonLetters = new Set(["E", "W"]);
75
+ if (first.hemisphere && second.hemisphere) {
76
+ if (latLetters.has(first.hemisphere) && lonLetters.has(second.hemisphere)) {
77
+ return coordinates(first.degrees, second.degrees, "lat_lon");
78
+ }
79
+ if (lonLetters.has(first.hemisphere) && latLetters.has(second.hemisphere)) {
80
+ return coordinates(second.degrees, first.degrees, "lon_lat");
81
+ }
82
+ return null;
83
+ }
84
+ if (first.hemisphere) {
85
+ return latLetters.has(first.hemisphere)
86
+ ? coordinates(first.degrees, second.degrees, "lat_lon")
87
+ : coordinates(second.degrees, first.degrees, "lon_lat");
88
+ }
89
+ if (second.hemisphere) {
90
+ return lonLetters.has(second.hemisphere)
91
+ ? coordinates(first.degrees, second.degrees, "lat_lon")
92
+ : coordinates(second.degrees, first.degrees, "lon_lat");
93
+ }
94
+ return coordinates(first.degrees, second.degrees, "lat_lon") ?? coordinates(second.degrees, first.degrees, "lon_lat");
95
+ }
96
+ function coordinates(lat, lon, order) {
97
+ if (!isValidLatitude(lat) || !isValidLongitude(lon))
98
+ return null;
99
+ return { kind: "coordinates", lat, lon, order };
100
+ }
101
+ /**
102
+ * Whether a bare pair of numbers reads as a coordinate rather than two counts.
103
+ *
104
+ * `12 34` reads as a house number beside a postcode and as a position, so a bare pair
105
+ * needs a comma, a decimal point, a degree mark or a hemisphere letter.
106
+ */
107
+ const COORDINATE_MARK = /[,;.°º'′"″NSEW]/iu;
108
+ function parseCoordinatePair(text) {
109
+ if (!COORDINATE_MARK.test(text))
110
+ return null;
111
+ const halves = (/[,;]/u.test(text) ? text.split(/[,;]/u, 2) : null) ??
112
+ PAIR_AT_HEMISPHERE.exec(text)?.slice(1, 3) ??
113
+ PAIR_AT_SPACE.exec(text)?.slice(1, 3);
114
+ if (!halves || halves.length !== 2)
115
+ return null;
116
+ const first = parseAngle(halves[0]);
117
+ const second = parseAngle(halves[1]);
118
+ if (!first || !second)
119
+ return null;
120
+ return pairToPoint(first, second);
121
+ }
122
+ /**
123
+ * Reads a whole query as the point it names: a coordinate pair in decimal,
124
+ * degrees-minutes-seconds, `geo:` or Google Maps form, a full or short plus code,
125
+ * an H3 cell, a prefixed geohash, or a Who's On First id.
126
+ *
127
+ * Returns `null` for text that's none of these.
128
+ * Every address is such a text.
129
+ *
130
+ * A coordinate outside the valid range in both axis orders is also `null`, never clamped.
131
+ */
132
+ export function parsePointQuery(text) {
133
+ const trimmed = text.trim();
134
+ if (!trimmed)
135
+ return null;
136
+ const wof = WOF_REFERENCE.exec(trimmed) ?? SPELUNKER_URL.exec(trimmed);
137
+ if (wof) {
138
+ const id = Number(wof[1]);
139
+ return Number.isSafeInteger(id) && id > 0 ? { kind: "wof", id } : null;
140
+ }
141
+ const h3 = H3_CELL.exec(trimmed);
142
+ if (h3)
143
+ return { kind: "h3", cell: h3[1].toLowerCase() };
144
+ const geohash = GEOHASH_REFERENCE.exec(trimmed);
145
+ if (geohash)
146
+ return { kind: "geohash", hash: geohash[1].toLowerCase() };
147
+ if (isFullPlusCode(trimmed))
148
+ return { kind: "plus_code", code: trimmed.toUpperCase(), full: true };
149
+ if (isShortPlusCode(trimmed))
150
+ return { kind: "plus_code", code: trimmed.toUpperCase(), full: false };
151
+ const uri = GEO_URI.exec(trimmed) ?? MAPS_SEGMENT.exec(trimmed);
152
+ if (uri)
153
+ return coordinates(Number(uri[1]), Number(uri[2]), "lat_lon");
154
+ const labeled = LABELED_PAIR.exec(trimmed);
155
+ if (labeled) {
156
+ const [, firstLabel, firstValue, secondLabel, secondValue] = labeled;
157
+ const firstIsLat = /^lat/iu.test(firstLabel);
158
+ if (firstIsLat === /^lat/iu.test(secondLabel))
159
+ return null;
160
+ return firstIsLat
161
+ ? coordinates(Number(firstValue), Number(secondValue), "lat_lon")
162
+ : coordinates(Number(secondValue), Number(firstValue), "lon_lat");
163
+ }
164
+ return parseCoordinatePair(trimmed);
165
+ }
166
+ /**
167
+ * A coordinate pair as text, latitude first, in the form {@link parsePointQuery} reads back.
168
+ *
169
+ * Six decimals place a point within about 11 cm.
170
+ */
171
+ export function coordinatePairText(lat, lon, decimals = 6) {
172
+ return `${lat.toFixed(decimals)}, ${lon.toFixed(decimals)}`;
173
+ }
174
+ /**
175
+ * The label a point query is shown under, such as the tag column of a parse.
176
+ */
177
+ export const POINT_QUERY_LABEL = {
178
+ coordinates: "coordinates",
179
+ plus_code: "plus code",
180
+ h3: "H3 cell",
181
+ geohash: "geohash",
182
+ wof: "Who's On First id",
183
+ };
184
+ /**
185
+ * The same shapes as a noun phrase with its article, for a sentence: "this is a plus code".
186
+ */
187
+ export const POINT_QUERY_PHRASE = {
188
+ coordinates: "a coordinate pair",
189
+ plus_code: "a plus code",
190
+ h3: "an H3 cell",
191
+ geohash: "a geohash",
192
+ wof: "a Who's On First id",
193
+ };
194
+ //# sourceMappingURL=point-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point-query.js","sourceRoot":"","sources":["../lib/point-query.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAsDrE;;GAEG;AACH,MAAM,aAAa,GAAG,yCAAyC,CAAA;AAE/D;;GAEG;AACH,MAAM,aAAa,GAAG,+DAA+D,CAAA;AAErF;;GAEG;AACH,MAAM,OAAO,GAAG,6BAA6B,CAAA;AAE7C;;GAEG;AACH,MAAM,iBAAiB,GAAG,+CAA+C,CAAA;AAEzE;;GAEG;AACH,MAAM,OAAO,GAAG,0EAA0E,CAAA;AAE1F;;GAEG;AACH,MAAM,YAAY,GAAG,uDAAuD,CAAA;AAE5E;;GAEG;AACH,MAAM,YAAY,GACjB,8IAA8I,CAAA;AAE/I;;;GAGG;AACH,MAAM,KAAK,GACV,2IAA2I,CAAA;AAE5I;;;GAGG;AACH,MAAM,kBAAkB,GAAG,wBAAwB,CAAA;AACnD,MAAM,aAAa,GAAG,kBAAkB,CAAA;AAOxC,SAAS,UAAU,CAAC,IAAY;IAC/B,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IAErC,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAA;IAEvB,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,EAAE,MAAM,CAAC,GAAG,KAAK,CAAA;IACrE,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG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,WAAY,CAAC;YAAE,OAAO,IAAI,CAAA;QAE3D,OAAO,UAAU;YAChB,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;YACjE,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAA;IACnE,CAAC;IAED,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAA;AACpC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,GAAW,EAAE,QAAQ,GAAG,CAAC;IACxE,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAA;AAC5D,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAuC;IACpE,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,EAAE,EAAE,SAAS;IACb,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,mBAAmB;CACxB,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAuC;IACrE,WAAW,EAAE,mBAAmB;IAChC,SAAS,EAAE,aAAa;IACxB,EAAE,EAAE,YAAY;IAChB,OAAO,EAAE,WAAW;IACpB,GAAG,EAAE,qBAAqB;CAC1B,CAAA"}
package/out/polyline.d.ts CHANGED
@@ -1,21 +1,8 @@
1
- /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
- * Position along a polyline, by arc length.
7
- *
8
- * This is what house-number interpolation stands on: given a street segment's geometry and how far
9
- * along its house-number range an address sits, it answers where that is on the ground. The node
10
- * reader (`resolver-wof-sqlite/interpolation.ts`) and the browser twin
11
- * (`resolver-wof-wasm/httpvfs/street.ts`) both call it: the geometry never differs between them,
12
- * only the I/O around it does.
13
- */
14
1
  /**
15
2
  * Clamp a fraction into `[0, 1]`.
16
3
  *
17
4
  * NaN passes through deliberately.
18
- * An interpolation whose inputs were not numbers should produce NaN coordinates a
5
+ * An interpolation whose inputs weren't numbers should produce NaN coordinates a
19
6
  * caller can detect rather than silently snap to a segment's start.
20
7
  */
21
8
  export declare function clampFraction(t: number): number;
@@ -1 +1 @@
1
- {"version":3,"file":"polyline.d.ts","sourceRoot":"","sources":["../lib/polyline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACzB,QAAQ,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EACrC,CAAC,EAAE,MAAM,GACP,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAqC9C"}
1
+ {"version":3,"file":"polyline.d.ts","sourceRoot":"","sources":["../lib/polyline.ts"],"names":[],"mappings":"AAeA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACzB,QAAQ,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EACrC,CAAC,EAAE,MAAM,GACP,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAqC9C"}
package/out/polyline.js CHANGED
@@ -1,22 +1,20 @@
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
  * Position along a polyline, by arc length.
7
5
  *
8
- * This is what house-number interpolation stands on: given a street segment's geometry and how far
9
- * along its house-number range an address sits, it answers where that is on the ground. The node
10
- * reader (`resolver-wof-sqlite/interpolation.ts`) and the browser twin
11
- * (`resolver-wof-wasm/httpvfs/street.ts`) both call it: the geometry never differs between them,
12
- * only the I/O around it does.
6
+ * This is what house-number interpolation stands on: given a street segment's geometry
7
+ * and how far along its house-number range an address sits, it answers where that's on the ground.
8
+ * The node reader (`resolver-wof-sqlite/interpolation.ts`) and the browser twin
9
+ * (`resolver-wof-wasm/httpvfs/street.ts`) both call it: the geometry never
10
+ * differs between them, only the I/O around it does.
13
11
  */
14
12
  import { centralAngle, EARTH_RADII } from "#distance";
15
13
  /**
16
14
  * Clamp a fraction into `[0, 1]`.
17
15
  *
18
16
  * NaN passes through deliberately.
19
- * An interpolation whose inputs were not numbers should produce NaN coordinates a
17
+ * An interpolation whose inputs weren't numbers should produce NaN coordinates a
20
18
  * caller can detect rather than silently snap to a segment's start.
21
19
  */
22
20
  export function clampFraction(t) {
@@ -1 +1 @@
1
- {"version":3,"file":"polyline.js","sourceRoot":"","sources":["../lib/polyline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAErD;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,CAAS;IACtC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAClC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACzB,QAAqC,EACrC,CAAS;IAET,MAAM,IAAI,GAAa,EAAE,CAAA;IACzB,IAAI,KAAK,GAAG,CAAC,CAAA;IAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAA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zB,CAAC"}
package/out/position.d.ts CHANGED
@@ -1,11 +1,6 @@
1
1
  /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
2
  * This file contains types and utilities for working with geographic positions.
7
3
  */
8
- import type { LatLngLiteral } from "@googlemaps/google-maps-services-js";
9
4
  import type { PlanarPoint } from "@mailwoman/annotations";
10
5
  /**
11
6
  * A point in decimal degrees under the `latitude` and `longitude` keys.
@@ -128,13 +123,14 @@ export type InternalPointCoordinates = PlanarPoint;
128
123
  */
129
124
  export declare function isCoordPairLiteral(input: unknown): input is [number, number] | [number, number, number];
130
125
  /**
131
- * Type-predicate to determine if the given input is a {@linkcode LatLngLiteral} object.
126
+ * Type-predicate to determine if the given input is a
127
+ * {@linkcode google.maps.LatLngLiteral | LatLngLiteral} object.
132
128
  *
133
129
  * @category Position
134
130
  * @category Type Predicates
135
131
  * @see {@link https://developers.google.com/maps/documentation/javascript/reference/coordinates#LatLngLiteral Google Maps API Documentation}
136
132
  */
137
- export declare function isGoogleMapsLatLngLiteral(input: unknown): input is LatLngLiteral;
133
+ export declare function isGoogleMapsLatLngLiteral(input: unknown): input is google.maps.LatLngLiteral;
138
134
  /**
139
135
  * Type-predicate to determine if the given input is a {@linkcode InternalPointCoordinates} object.
140
136
  *
@@ -1 +1 @@
1
- {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../lib/position.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAIzD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACtB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACX;AAED;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AAC,SAAS,EAAE,QAAQ,CAAC,EAAE,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAE9F;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,aAAa,CAiBxF;AAED;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B;;;;;OAKG;IACH,SAAS,EAAE,MAAM;IACjB;;;;;OAKG;IACH,QAAQ,EAAE,MAAM;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM;CAChB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAA;AAElD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAMvG;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,CAM5F;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,wBAAwB,CAQ3F;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD"}
package/out/position.js CHANGED
@@ -1,10 +1,5 @@
1
- /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
- * This file contains types and utilities for working with geographic positions.
7
- */
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
8
3
  import { isValidLatitude, isValidLongitude } from "#coordinate/bounds";
9
4
  /**
10
5
  * Arity of a `[lon, lat]` coordinate tuple.
@@ -70,7 +65,8 @@ export function isCoordPairLiteral(input) {
70
65
  return input.every((coord) => typeof coord === "number");
71
66
  }
72
67
  /**
73
- * Type-predicate to determine if the given input is a {@linkcode LatLngLiteral} object.
68
+ * Type-predicate to determine if the given input is a
69
+ * {@linkcode google.maps.LatLngLiteral | LatLngLiteral} object.
74
70
  *
75
71
  * @category Position
76
72
  * @category Type Predicates
@@ -1 +1 @@
1
- {"version":3,"file":"position.js","sourceRoot":"","sources":["../lib/position.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAoCtE;;GAEG;AACH,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAE3B;;GAEG;AACH,MAAM,mBAAmB,GAAG,CAAC,CAAA;AA6B7B;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAmB;IAC9E,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;AAC7B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAgB;IAC3E,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;AAC7B,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,CAAC,MAAM,EAAE,MAAM,CAAmB;IACxE,MAAM,cAAc,GAAG,gBAAgB,CAAC,MAAM,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,CAAA;IAC1E,MAAM,aAAa,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAA;IAEzE,IAAI,cAAc,IAAI,CAAC,aAAa,EAAE,CAAC;QACtC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAA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,CAAA;AACZ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACvD,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAA;IAErD,IAAI,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IAEjC,IAAI,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IAEjC,OAAO,OAAO,KAAK,CAAC,CAAC,KAAK,QAAQ,IAAI,OAAO,KAAK,CAAC,CAAC,KAAK,QAAQ,CAAA;AAClE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,SAAiB;IAC9C,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA;AACvD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa;IAC1C,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAA;AAC1C,CAAC"}
@@ -1,29 +1,41 @@
1
1
  /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
2
+ * Ask PROJ which datum transformation it would choose.
3
+ * Refuse a ballpark operation.
5
4
  *
6
- * Ask PROJ which datum transformation it would choose. Refuse a ballpark operation.
5
+ * PROJ silently substitutes a ballpark datum shift when the accurate grid is absent.
6
+ * On the EA flood product, `ogr2ogr` placed the first feature's first vertex at
7
+ * `1.698151293, 52.648130027` without the OSGB36→WGS84 grid.
7
8
  *
8
- * PROJ silently substitutes a ballpark datum shift when the accurate grid is absent. On the EA flood product,
9
- * `ogr2ogr` placed the first feature's first vertex at `1.698151293, 52.648130027` without the OSGB36→WGS84 grid.
10
- * With `uk_os_OSTN15_NTv2_OSGBtoETRS.tif` present, it placed the vertex at `1.698174628, 52.648157259`, a distance
11
- * of 3.4 m. Both coordinates look like ordinary WGS84 values and pass a bounding-box check. The layer is offset.
12
- * The check found eight disagreements among 59 points against the authority's OGC service. Each point fell into a
13
- * neighboring sliver.
9
+ * With `uk_os_OSTN15_NTv2_OSGBtoETRS.tif` present, it placed the vertex at
10
+ * `1.698174628, 52.648157259`, a distance of 3.4 m.
11
+ * Both coordinates look like ordinary WGS84 values and pass a bounding-box check.
14
12
  *
15
- * GDAL 3.8 does not pass `--config PROJ_NETWORK on` through to PROJ. Tests also showed that `PROJ_ONLY_BEST=on`
16
- * does not refuse a ballpark shift. `projinfo` provides the usable check. Its output identifies the best candidate
17
- * operation and reports a missing grid.
13
+ * The layer is offset.
14
+ * The check found eight disagreements among 59 points against the authority's OGC service.
15
+ * Each point fell into a neighboring sliver.
16
+ *
17
+ * GDAL 3.8 doesn't pass `--config PROJ_NETWORK on` through to PROJ.
18
+ * Tests also showed that `PROJ_ONLY_BEST=on` doesn't refuse a ballpark shift.
19
+ *
20
+ * `projinfo` provides the usable check.
21
+ * Its output identifies the best candidate operation and reports a missing grid.
22
+ *
23
+ * The check runs even when a source needs no transformation.
24
+ * A source already in EPSG:4326 returns `Null geographic offset from WGS 84 to WGS 84, 0 m, World.`
25
+ *
26
+ * This operation is usable.
27
+ * The check costs one process.
18
28
  *
19
- * The check runs even when a source needs no transformation. A source already in EPSG:4326 returns
20
- * `Null geographic offset from WGS 84 to WGS 84, 0 m, World.` This operation is usable. The check costs one process.
21
29
  * A skipped case would leave a later source's required grid unchecked.
22
30
  *
23
- * Every vector ingest shares this check because the failure comes from PROJ rather than from a particular product.
24
- * Output parsing is separate from process execution so tests can use captured output. The two output states came from the
25
- * same command on the same machine before and after grid installation. One produced a meter-accurate layer. The
26
- * other produced a 3 m offset.
31
+ * Every vector ingest shares this check because the failure comes from PROJ
32
+ * rather than from a particular product.
33
+ * Output parsing is separate from process execution so tests can use captured output.
34
+ *
35
+ * The two output states came from the same command on the same machine before
36
+ * and after grid installation.
37
+ * One produced a meter-accurate layer.
38
+ * The other produced a 3 m offset.
27
39
  */
28
40
  /**
29
41
  * Reports the operation PROJ would choose and whether it can run it.
@@ -63,8 +75,8 @@ export interface AssertDatumTransformationOptions {
63
75
  /**
64
76
  * Refuse an ingest whose best available datum transformation is a ballpark one, or is missing its grid.
65
77
  *
66
- * @throws {Error} When proj names no candidate, would use a ballpark offset,
67
- * or would use an operation whose grid is not installed.
78
+ * @throws {Error} When proj identifies no candidate, would use a ballpark offset,
79
+ * or would use an operation whose grid isn't installed.
68
80
  */
69
81
  export declare function assertDatumTransformationAvailable(sourceEPSG: number, options: AssertDatumTransformationOptions): Promise<DatumTransformationVerdict>;
70
82
  //# sourceMappingURL=transform.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../lib/projection/transform.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,0BAA0B,CAgBrF;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,OAAO,CAAA;AAE9B,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,kCAAkC,CACvD,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,gCAAgC,GACvC,OAAO,CAAC,0BAA0B,CAAC,CAkBrC"}
1
+ {"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../lib/projection/transform.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,0BAA0B,CAgBrF;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,OAAO,CAAA;AAE9B,MAAM,WAAW,gCAAgC;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAsB,kCAAkC,CACvD,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,gCAAgC,GACvC,OAAO,CAAC,0BAA0B,CAAC,CAkBrC"}
@@ -1,3 +1,5 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
1
3
  import { runFile } from "@mailwoman/core/process";
2
4
  import { TextSpliterator } from "spliterator";
3
5
  /**
@@ -27,8 +29,8 @@ export const WGS84_EPSG = 4326;
27
29
  /**
28
30
  * Refuse an ingest whose best available datum transformation is a ballpark one, or is missing its grid.
29
31
  *
30
- * @throws {Error} When proj names no candidate, would use a ballpark offset,
31
- * or would use an operation whose grid is not installed.
32
+ * @throws {Error} When proj identifies no candidate, would use a ballpark offset,
33
+ * or would use an operation whose grid isn't installed.
32
34
  */
33
35
  export async function assertDatumTransformationAvailable(sourceEPSG, options) {
34
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OAAO,mBAAmB,UAAU,WAAW,UAAU,iCAAiC,OAAO,CAAC,MAAM,GAAG;QACrH,IAAI,OAAO,CAAC,IAAI,IAAI,6BAA6B,gEAAgE;QACjH,kDAAkD,MAAM,EAAE,CAC3D,CAAA;AACF,CAAC"}
@@ -1,8 +1,3 @@
1
- /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- */
6
1
  /**
7
2
  * A coordinate system used to represent the Earth's surface.
8
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../lib/projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAChC;;;;OAIG;aACH,KAAK,EAAE,MAAM;IACb;;OAEG;aACH,KAAK,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAA"}
1
+ {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../lib/projection.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAChC;;;;OAIG;aACH,KAAK,EAAE,MAAM;IACb;;OAEG;aACH,KAAK,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAA"}
package/out/projection.js CHANGED
@@ -1,8 +1,5 @@
1
- /**
2
- * @copyright Sister Software.
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
  * A coordinate system used to represent the Earth's surface.
8
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"projection.js","sourceRoot":"","sources":["../lib/projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;;;OAIG;IACH,KAAK,EAAE,MAAM;IACb;;OAEG;IACH,KAAK,EAAE,MAAM;CACJ,CAAA"}
1
+ {"version":3,"file":"projection.js","sourceRoot":"","sources":["../lib/projection.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;;;OAIG;IACH,KAAK,EAAE,MAAM;IACb;;OAEG;IACH,KAAK,EAAE,MAAM;CACJ,CAAA"}
@@ -1,8 +1,3 @@
1
- /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- */
6
1
  /**
7
2
  * M.49 region codes for continents.
8
3
  */
@@ -1 +1 @@
1
- {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../lib/regions/codes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;GAEG;AACH,eAAO,MAAM,WAAW,qDASc,CAAA;AAEtC;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;iBAC9B,QAAQ;iBACR,YAAY;iBACZ,MAAM;iBACN,QAAQ;iBACR,eAAe;iBACf,SAAS;iBACT,eAAe;CAC+B,CAAA"}
1
+ {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../lib/regions/codes.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,WAAW,qDASc,CAAA;AAEtC;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;iBAC9B,QAAQ;iBACR,YAAY;iBACZ,MAAM;iBACN,QAAQ;iBACR,eAAe;iBACf,SAAS;iBACT,eAAe;CAC+B,CAAA"}
@@ -1,8 +1,5 @@
1
- /**
2
- * @copyright Sister Software.
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
  * M.49 region codes for continents.
8
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"codes.js","sourceRoot":"","sources":["../../lib/regions/codes.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACiC,CAAA;AAStC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,eAAe;CAC+B,CAAA"}
1
+ {"version":3,"file":"codes.js","sourceRoot":"","sources":["../../lib/regions/codes.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAIlE;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACiC,CAAA;AAStC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACrC,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,eAAe;CAC+B,CAAA"}
@@ -1,8 +1,3 @@
1
- /**
2
- * @copyright Sister Software.
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- */
6
1
  /**
7
2
  * A list of geographic regions, i.e. continents.
8
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../lib/regions/names.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,eAAO,MAAM,WAAW,kGAQc,CAAA;AAEtC;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../lib/regions/names.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,WAAW,kGAQc,CAAA;AAEtC;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -1,8 +1,5 @@
1
- /**
2
- * @copyright Sister Software.
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
  * A list of geographic regions, i.e. continents.
8
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"names.js","sourceRoot":"","sources":["../../lib/regions/names.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,QAAQ;IACR,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,eAAe;IACf,SAAS;IACT,eAAe;CACsB,CAAA"}
1
+ {"version":3,"file":"names.js","sourceRoot":"","sources":["../../lib/regions/names.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,QAAQ;IACR,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,eAAe;IACf,SAAS;IACT,eAAe;CACsB,CAAA"}
package/out/regions.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
  export * from "#regions/codes";
7
2
  export * from "#regions/names";
8
3
  //# sourceMappingURL=regions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../lib/regions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../lib/regions.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
package/out/regions.js CHANGED
@@ -1,8 +1,5 @@
1
- /**
2
- * @copyright Sister Software.
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
  export * from "#regions/codes";
7
4
  export * from "#regions/names";
8
5
  //# sourceMappingURL=regions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"regions.js","sourceRoot":"","sources":["../lib/regions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"regions.js","sourceRoot":"","sources":["../lib/regions.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
@@ -1,9 +1,3 @@
1
- /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- * @file One ogr2ogr harness for every streaming extraction.
6
- */
7
1
  import type { PathBuilderLike } from "path-ts";
8
2
  export interface OGRProcess {
9
3
  stdout: NodeJS.ReadableStream;
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../tools/ogr/stream.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC,cAAc,CAAA;IAC7B;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAqC1F;AAED;;;;;;;;;;;GAWG;AACH,wBAAuB,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAoBhH"}
1
+ {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../tools/ogr/stream.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,MAAM,WAAW,UAAU;IAC1B,MAAM,EAAE,MAAM,CAAC,cAAc,CAAA;IAC7B;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,IAAI,CAAA;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAqC1F;AAED;;;;;;;;;;;GAWG;AACH,wBAAuB,iBAAiB,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,eAAe,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,CAoBhH"}