@mailwoman/ogc 11.2.0 → 11.3.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 +167 -28
- package/cli/geocoder.ts +50 -0
- package/cli/main.ts +303 -49
- package/lib/app.ts +9 -1
- package/lib/bbox.ts +69 -0
- package/lib/collections.ts +63 -9
- package/lib/engine.ts +72 -0
- package/lib/html.ts +64 -2
- package/lib/index.ts +4 -0
- package/lib/items.ts +169 -0
- package/lib/projection.ts +28 -8
- package/lib/provenance.ts +86 -0
- package/lib/refusal.ts +34 -0
- package/lib/routes.ts +326 -61
- package/lib/schema.ts +164 -3
- package/out/app.d.ts +8 -0
- package/out/app.d.ts.map +1 -1
- package/out/app.js +1 -1
- package/out/app.js.map +1 -1
- package/out/bbox.d.ts +23 -0
- package/out/bbox.d.ts.map +1 -0
- package/out/bbox.js +54 -0
- package/out/bbox.js.map +1 -0
- package/out/cli/geocoder.d.ts +24 -0
- package/out/cli/geocoder.d.ts.map +1 -0
- package/out/cli/geocoder.js +28 -0
- package/out/cli/geocoder.js.map +1 -0
- package/out/cli/main.js +225 -46
- package/out/cli/main.js.map +1 -1
- package/out/collections.d.ts +31 -4
- package/out/collections.d.ts.map +1 -1
- package/out/collections.js +32 -3
- package/out/collections.js.map +1 -1
- package/out/engine.d.ts +68 -0
- package/out/engine.d.ts.map +1 -1
- package/out/html.d.ts +11 -1
- package/out/html.d.ts.map +1 -1
- package/out/html.js +49 -2
- package/out/html.js.map +1 -1
- package/out/index.d.ts +4 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -0
- package/out/index.js.map +1 -1
- package/out/items.d.ts +38 -0
- package/out/items.d.ts.map +1 -0
- package/out/items.js +136 -0
- package/out/items.js.map +1 -0
- package/out/projection.d.ts +15 -1
- package/out/projection.d.ts.map +1 -1
- package/out/projection.js +21 -8
- package/out/projection.js.map +1 -1
- package/out/provenance.d.ts +41 -0
- package/out/provenance.d.ts.map +1 -0
- package/out/provenance.js +60 -0
- package/out/provenance.js.map +1 -0
- package/out/refusal.d.ts +18 -0
- package/out/refusal.d.ts.map +1 -0
- package/out/refusal.js +30 -0
- package/out/refusal.js.map +1 -0
- package/out/routes.d.ts +24 -22
- package/out/routes.d.ts.map +1 -1
- package/out/routes.js +246 -51
- package/out/routes.js.map +1 -1
- package/out/schema.d.ts +157 -2
- package/out/schema.d.ts.map +1 -1
- package/out/schema.js +140 -3
- package/out/schema.js.map +1 -1
- package/out/tools/ets.run.d.ts +2 -0
- package/out/tools/ets.run.d.ts.map +1 -0
- package/out/tools/ets.run.js +187 -0
- package/out/tools/ets.run.js.map +1 -0
- package/package.json +32 -10
- package/tools/ets.run.ts +258 -0
package/out/schema.d.ts
CHANGED
|
@@ -43,6 +43,11 @@ export declare const OGCLinkRelation: {
|
|
|
43
43
|
readonly Data: "data";
|
|
44
44
|
readonly OGCData: "http://www.opengis.net/def/rel/ogc/1.0/data";
|
|
45
45
|
readonly Search: "search";
|
|
46
|
+
readonly Items: "items";
|
|
47
|
+
readonly Next: "next";
|
|
48
|
+
readonly Collection: "collection";
|
|
49
|
+
readonly License: "license";
|
|
50
|
+
readonly Via: "via";
|
|
46
51
|
};
|
|
47
52
|
export type OGCLinkRelation = (typeof OGCLinkRelation)[keyof typeof OGCLinkRelation];
|
|
48
53
|
/**
|
|
@@ -57,6 +62,12 @@ export type OGCLinkRelation = (typeof OGCLinkRelation)[keyof typeof OGCLinkRelat
|
|
|
57
62
|
* - `oas30`: an OpenAPI 3.0 document as `service-desc` and its HTML form as `service-doc`.
|
|
58
63
|
* - `collections` (Common Part 2): `GET /collections` linked from the landing page as `data`,
|
|
59
64
|
* `GET /collections/{collectionId}` for every listed id, each with `self` and `alternate` links.
|
|
65
|
+
* - Features Part 1 `core`: `GET /collections/{collectionId}/items` with `limit`,
|
|
66
|
+
* `bbox` and `datetime`, and `GET /collections/{collectionId}/items/{featureId}`,
|
|
67
|
+
* for each collection whose description lists an `items` link.
|
|
68
|
+
* - Features Part 1 `geojson`: both items resources as `application/geo+json`.
|
|
69
|
+
* - Features Part 1 `html`: both items resources as HTML5, every link an `<a>`.
|
|
70
|
+
* - Features Part 1 `oas30`: the OpenAPI 3.0 definition declares both items resources and their parameters.
|
|
60
71
|
*/
|
|
61
72
|
export declare const OGCConformanceClass: {
|
|
62
73
|
readonly Core: "http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/core";
|
|
@@ -65,6 +76,10 @@ export declare const OGCConformanceClass: {
|
|
|
65
76
|
readonly HTML: "http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/html";
|
|
66
77
|
readonly OAS30: "http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/oas30";
|
|
67
78
|
readonly Collections: "http://www.opengis.net/spec/ogcapi-common-2/1.0/conf/collections";
|
|
79
|
+
readonly FeaturesCore: "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/core";
|
|
80
|
+
readonly FeaturesGeoJSON: "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/geojson";
|
|
81
|
+
readonly FeaturesHTML: "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/html";
|
|
82
|
+
readonly FeaturesOAS30: "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf/oas30";
|
|
68
83
|
};
|
|
69
84
|
export type OGCConformanceClass = (typeof OGCConformanceClass)[keyof typeof OGCConformanceClass];
|
|
70
85
|
/**
|
|
@@ -104,6 +119,20 @@ export declare const OGCConformanceSchema: z.ZodObject<{
|
|
|
104
119
|
}, z.core.$strip>>>;
|
|
105
120
|
}, z.core.$strip>;
|
|
106
121
|
export type OGCConformance = z.infer<typeof OGCConformanceSchema>;
|
|
122
|
+
/**
|
|
123
|
+
* The CRS84 coordinate reference system: WGS 84 longitude and latitude, in that order.
|
|
124
|
+
*/
|
|
125
|
+
export declare const OGC_CRS84 = "http://www.opengis.net/def/crs/OGC/1.3/CRS84";
|
|
126
|
+
/**
|
|
127
|
+
* A collection's extent, from OGC API Features Part 1's `extent.yaml`.
|
|
128
|
+
*/
|
|
129
|
+
export declare const OGCExtentSchema: z.ZodObject<{
|
|
130
|
+
spatial: z.ZodObject<{
|
|
131
|
+
bbox: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
132
|
+
crs: z.ZodLiteral<"http://www.opengis.net/def/crs/OGC/1.3/CRS84">;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
}, z.core.$strip>;
|
|
135
|
+
export type OGCExtent = z.infer<typeof OGCExtentSchema>;
|
|
107
136
|
/**
|
|
108
137
|
* The query every resource accepts.
|
|
109
138
|
*
|
|
@@ -120,8 +149,9 @@ export declare const OGCFormatQuerySchema: z.ZodObject<{
|
|
|
120
149
|
* One collection description, from OGC API Common Part 2's `collectionDesc.yaml`.
|
|
121
150
|
*
|
|
122
151
|
* `id` and `links` are the two members the schema requires.
|
|
123
|
-
*
|
|
124
|
-
*
|
|
152
|
+
* A collection that serves `/collections/{collectionId}/items` adds `itemType`,
|
|
153
|
+
* the `items` link and the `extent` OGC API Features Part 1 describes.
|
|
154
|
+
* Another collection omits all three.
|
|
125
155
|
*/
|
|
126
156
|
export declare const OGCCollectionSchema: z.ZodObject<{
|
|
127
157
|
id: z.ZodString;
|
|
@@ -133,6 +163,14 @@ export declare const OGCCollectionSchema: z.ZodObject<{
|
|
|
133
163
|
type: z.ZodOptional<z.ZodString>;
|
|
134
164
|
title: z.ZodOptional<z.ZodString>;
|
|
135
165
|
}, z.core.$strip>>;
|
|
166
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
167
|
+
itemType: z.ZodOptional<z.ZodLiteral<"feature">>;
|
|
168
|
+
extent: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
spatial: z.ZodObject<{
|
|
170
|
+
bbox: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
171
|
+
crs: z.ZodLiteral<"http://www.opengis.net/def/crs/OGC/1.3/CRS84">;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
136
174
|
geometryDimension: z.ZodLiteral<0>;
|
|
137
175
|
version: z.ZodNumber;
|
|
138
176
|
}, z.core.$strip>;
|
|
@@ -157,6 +195,14 @@ export declare const OGCCollectionsSchema: z.ZodObject<{
|
|
|
157
195
|
type: z.ZodOptional<z.ZodString>;
|
|
158
196
|
title: z.ZodOptional<z.ZodString>;
|
|
159
197
|
}, z.core.$strip>>;
|
|
198
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
199
|
+
itemType: z.ZodOptional<z.ZodLiteral<"feature">>;
|
|
200
|
+
extent: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
spatial: z.ZodObject<{
|
|
202
|
+
bbox: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
203
|
+
crs: z.ZodLiteral<"http://www.opengis.net/def/crs/OGC/1.3/CRS84">;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
160
206
|
geometryDimension: z.ZodLiteral<0>;
|
|
161
207
|
version: z.ZodNumber;
|
|
162
208
|
}, z.core.$strip>>;
|
|
@@ -178,6 +224,7 @@ export declare const OGCSearchPropertiesSchema: z.ZodObject<{
|
|
|
178
224
|
collection_id: z.ZodString;
|
|
179
225
|
place_id: z.ZodOptional<z.ZodString>;
|
|
180
226
|
placetype: z.ZodOptional<z.ZodString>;
|
|
227
|
+
href: z.ZodOptional<z.ZodString>;
|
|
181
228
|
}, z.core.$strip>;
|
|
182
229
|
export type OGCSearchProperties = z.infer<typeof OGCSearchPropertiesSchema>;
|
|
183
230
|
/**
|
|
@@ -196,6 +243,7 @@ export declare const OGCSearchFeatureSchema: z.ZodObject<{
|
|
|
196
243
|
collection_id: z.ZodString;
|
|
197
244
|
place_id: z.ZodOptional<z.ZodString>;
|
|
198
245
|
placetype: z.ZodOptional<z.ZodString>;
|
|
246
|
+
href: z.ZodOptional<z.ZodString>;
|
|
199
247
|
}, z.core.$strip>;
|
|
200
248
|
}, z.core.$strip>;
|
|
201
249
|
export type OGCSearchFeature = z.infer<typeof OGCSearchFeatureSchema>;
|
|
@@ -217,6 +265,7 @@ export declare const OGCSearchResponseSchema: z.ZodObject<{
|
|
|
217
265
|
collection_id: z.ZodString;
|
|
218
266
|
place_id: z.ZodOptional<z.ZodString>;
|
|
219
267
|
placetype: z.ZodOptional<z.ZodString>;
|
|
268
|
+
href: z.ZodOptional<z.ZodString>;
|
|
220
269
|
}, z.core.$strip>;
|
|
221
270
|
}, z.core.$strip>>;
|
|
222
271
|
timeStamp: z.ZodString;
|
|
@@ -264,4 +313,110 @@ export declare function searchQuerySchema(collectionIDs: readonly string[]): z.Z
|
|
|
264
313
|
json: "json";
|
|
265
314
|
}>>;
|
|
266
315
|
}, z.core.$strict>;
|
|
316
|
+
/**
|
|
317
|
+
* The number of items `/collections/{collectionId}/items` returns when the request omits `limit`.
|
|
318
|
+
*/
|
|
319
|
+
export declare const OGC_ITEMS_DEFAULT_LIMIT = 10;
|
|
320
|
+
/**
|
|
321
|
+
* The most items one `/collections/{collectionId}/items` page returns.
|
|
322
|
+
*
|
|
323
|
+
* A larger `limit` is served as this one, because OGC API Features Part 1 requires
|
|
324
|
+
* a `limit` above the maximum to succeed rather than fail.
|
|
325
|
+
*/
|
|
326
|
+
export declare const OGC_ITEMS_MAX_LIMIT = 1000;
|
|
327
|
+
/**
|
|
328
|
+
* The properties of one item.
|
|
329
|
+
*/
|
|
330
|
+
export declare const OGCItemPropertiesSchema: z.ZodObject<{
|
|
331
|
+
name: z.ZodString;
|
|
332
|
+
placetype: z.ZodString;
|
|
333
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
334
|
+
display_name: z.ZodString;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
export type OGCItemProperties = z.infer<typeof OGCItemPropertiesSchema>;
|
|
337
|
+
/**
|
|
338
|
+
* One item, a GeoJSON point feature with its gazetteer place ID as `id`.
|
|
339
|
+
*/
|
|
340
|
+
export declare const OGCItemFeatureSchema: z.ZodObject<{
|
|
341
|
+
type: z.ZodLiteral<"Feature">;
|
|
342
|
+
geometry: z.ZodObject<{
|
|
343
|
+
type: z.ZodLiteral<"Point">;
|
|
344
|
+
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
properties: z.ZodObject<{
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
placetype: z.ZodString;
|
|
349
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
350
|
+
display_name: z.ZodString;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
354
|
+
href: z.ZodString;
|
|
355
|
+
rel: z.ZodString;
|
|
356
|
+
type: z.ZodOptional<z.ZodString>;
|
|
357
|
+
title: z.ZodOptional<z.ZodString>;
|
|
358
|
+
}, z.core.$strip>>>;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
|
+
export type OGCItemFeature = z.infer<typeof OGCItemFeatureSchema>;
|
|
361
|
+
/**
|
|
362
|
+
* One page of items: a GeoJSON FeatureCollection with the members OGC API Features Part 1 adds.
|
|
363
|
+
*
|
|
364
|
+
* `numberMatched` is omitted, as the standard permits, because counting a box's places costs a scan.
|
|
365
|
+
*/
|
|
366
|
+
export declare const OGCItemsResponseSchema: z.ZodObject<{
|
|
367
|
+
type: z.ZodLiteral<"FeatureCollection">;
|
|
368
|
+
features: z.ZodArray<z.ZodObject<{
|
|
369
|
+
type: z.ZodLiteral<"Feature">;
|
|
370
|
+
geometry: z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"Point">;
|
|
372
|
+
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
properties: z.ZodObject<{
|
|
375
|
+
name: z.ZodString;
|
|
376
|
+
placetype: z.ZodString;
|
|
377
|
+
country_code: z.ZodNullable<z.ZodString>;
|
|
378
|
+
display_name: z.ZodString;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
|
+
href: z.ZodString;
|
|
383
|
+
rel: z.ZodString;
|
|
384
|
+
type: z.ZodOptional<z.ZodString>;
|
|
385
|
+
title: z.ZodOptional<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>>>;
|
|
387
|
+
}, z.core.$strip>>;
|
|
388
|
+
timeStamp: z.ZodString;
|
|
389
|
+
links: z.ZodArray<z.ZodObject<{
|
|
390
|
+
href: z.ZodString;
|
|
391
|
+
rel: z.ZodString;
|
|
392
|
+
type: z.ZodOptional<z.ZodString>;
|
|
393
|
+
title: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strip>>;
|
|
395
|
+
numberReturned: z.ZodNumber;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
export type OGCItemsResponse = z.infer<typeof OGCItemsResponseSchema>;
|
|
398
|
+
/**
|
|
399
|
+
* The path parameters of `/collections/{collectionId}/items/{featureId}`.
|
|
400
|
+
*/
|
|
401
|
+
export declare const OGCItemPathSchema: z.ZodObject<{
|
|
402
|
+
collectionId: z.ZodString;
|
|
403
|
+
featureId: z.ZodString;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
/**
|
|
406
|
+
* The query of `/collections/{collectionId}/items`.
|
|
407
|
+
*
|
|
408
|
+
* The parameter definitions follow OGC API Features Part 1, Requirements 21, 23 and 25,
|
|
409
|
+
* including the `form` style without `explode` that a client reads from the API definition.
|
|
410
|
+
* The values arrive as strings, and the route parses them.
|
|
411
|
+
*/
|
|
412
|
+
export declare const OGCItemsQuerySchema: z.ZodObject<{
|
|
413
|
+
limit: z.ZodOptional<z.ZodString>;
|
|
414
|
+
bbox: z.ZodOptional<z.ZodString>;
|
|
415
|
+
datetime: z.ZodOptional<z.ZodString>;
|
|
416
|
+
after: z.ZodOptional<z.ZodString>;
|
|
417
|
+
f: z.ZodOptional<z.ZodEnum<{
|
|
418
|
+
html: "html";
|
|
419
|
+
json: "json";
|
|
420
|
+
}>>;
|
|
421
|
+
}, z.core.$strict>;
|
|
267
422
|
//# sourceMappingURL=schema.d.ts.map
|
package/out/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AAGrC;;GAEG;AACH,eAAO,MAAM,YAAY;aACxB,IAAI,EAAE,kBAAkB;aACxB,OAAO,EAAE,sBAAsB;aAC/B,IAAI,EAAE,WAAW;aACjB,SAAS,EAAE,8CAA8C;CAChD,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAA;AAE3E;;GAEG;AACH,eAAO,MAAM,SAAS;aACrB,IAAI,EAAE,MAAM;aACZ,IAAI,EAAE,MAAM;CACH,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA;AAElE;;;;;GAKG;AACH,eAAO,MAAM,eAAe;aAC3B,IAAI,EAAE,MAAM;aACZ,SAAS,EAAE,WAAW;aACtB,WAAW,EAAE,cAAc;aAC3B,UAAU,EAAE,aAAa;aACzB,WAAW,EAAE,aAAa;aAC1B,cAAc,EAAE,oDAAoD;aACpE,IAAI,EAAE,MAAM;aACZ,OAAO,EAAE,6CAA6C;aACtD,MAAM,EAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAGA;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AM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;iBAE5B,CAAA;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;kBAuCtB,CAAA"}
|
package/out/schema.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Each schema is registered as a component, so the API definition references it by name.
|
|
12
12
|
*/
|
|
13
13
|
import { z } from "@hono/zod-openapi";
|
|
14
|
-
import { featureCollectionSchema, featureSchema } from "@mailwoman/api-kit";
|
|
14
|
+
import { BBoxSchema, featureCollectionSchema, featureSchema } from "@mailwoman/api-kit";
|
|
15
15
|
/**
|
|
16
16
|
* The media types this surface serves, keyed by their role.
|
|
17
17
|
*/
|
|
@@ -44,9 +44,15 @@ export const OGCLinkRelation = {
|
|
|
44
44
|
Data: "data",
|
|
45
45
|
OGCData: "http://www.opengis.net/def/rel/ogc/1.0/data",
|
|
46
46
|
Search: "search",
|
|
47
|
+
Items: "items",
|
|
48
|
+
Next: "next",
|
|
49
|
+
Collection: "collection",
|
|
50
|
+
License: "license",
|
|
51
|
+
Via: "via",
|
|
47
52
|
};
|
|
48
53
|
const COMMON_PART_1 = "http://www.opengis.net/spec/ogcapi-common-1/1.0/conf";
|
|
49
54
|
const COMMON_PART_2 = "http://www.opengis.net/spec/ogcapi-common-2/1.0/conf";
|
|
55
|
+
const FEATURES_PART_1 = "http://www.opengis.net/spec/ogcapi-features-1/1.0/conf";
|
|
50
56
|
/**
|
|
51
57
|
* The OGC API conformance classes this surface implements.
|
|
52
58
|
*
|
|
@@ -59,6 +65,12 @@ const COMMON_PART_2 = "http://www.opengis.net/spec/ogcapi-common-2/1.0/conf";
|
|
|
59
65
|
* - `oas30`: an OpenAPI 3.0 document as `service-desc` and its HTML form as `service-doc`.
|
|
60
66
|
* - `collections` (Common Part 2): `GET /collections` linked from the landing page as `data`,
|
|
61
67
|
* `GET /collections/{collectionId}` for every listed id, each with `self` and `alternate` links.
|
|
68
|
+
* - Features Part 1 `core`: `GET /collections/{collectionId}/items` with `limit`,
|
|
69
|
+
* `bbox` and `datetime`, and `GET /collections/{collectionId}/items/{featureId}`,
|
|
70
|
+
* for each collection whose description lists an `items` link.
|
|
71
|
+
* - Features Part 1 `geojson`: both items resources as `application/geo+json`.
|
|
72
|
+
* - Features Part 1 `html`: both items resources as HTML5, every link an `<a>`.
|
|
73
|
+
* - Features Part 1 `oas30`: the OpenAPI 3.0 definition declares both items resources and their parameters.
|
|
62
74
|
*/
|
|
63
75
|
export const OGCConformanceClass = {
|
|
64
76
|
Core: `${COMMON_PART_1}/core`,
|
|
@@ -67,6 +79,10 @@ export const OGCConformanceClass = {
|
|
|
67
79
|
HTML: `${COMMON_PART_1}/html`,
|
|
68
80
|
OAS30: `${COMMON_PART_1}/oas30`,
|
|
69
81
|
Collections: `${COMMON_PART_2}/collections`,
|
|
82
|
+
FeaturesCore: `${FEATURES_PART_1}/core`,
|
|
83
|
+
FeaturesGeoJSON: `${FEATURES_PART_1}/geojson`,
|
|
84
|
+
FeaturesHTML: `${FEATURES_PART_1}/html`,
|
|
85
|
+
FeaturesOAS30: `${FEATURES_PART_1}/oas30`,
|
|
70
86
|
};
|
|
71
87
|
/**
|
|
72
88
|
* A link object from OGC API Common's `link.yaml`.
|
|
@@ -98,6 +114,21 @@ export const OGCConformanceSchema = z
|
|
|
98
114
|
links: z.array(OGCLinkSchema).optional(),
|
|
99
115
|
})
|
|
100
116
|
.openapi("OGCConformance");
|
|
117
|
+
/**
|
|
118
|
+
* The CRS84 coordinate reference system: WGS 84 longitude and latitude, in that order.
|
|
119
|
+
*/
|
|
120
|
+
export const OGC_CRS84 = "http://www.opengis.net/def/crs/OGC/1.3/CRS84";
|
|
121
|
+
/**
|
|
122
|
+
* A collection's extent, from OGC API Features Part 1's `extent.yaml`.
|
|
123
|
+
*/
|
|
124
|
+
export const OGCExtentSchema = z
|
|
125
|
+
.object({
|
|
126
|
+
spatial: z.object({
|
|
127
|
+
bbox: z.array(BBoxSchema),
|
|
128
|
+
crs: z.literal(OGC_CRS84),
|
|
129
|
+
}),
|
|
130
|
+
})
|
|
131
|
+
.openapi("OGCExtent");
|
|
101
132
|
const formatParameter = z.enum([OGCFormat.JSON, OGCFormat.HTML]).optional().openapi({
|
|
102
133
|
description: "The response encoding. Without it the `Accept` header decides, and JSON is the default.",
|
|
103
134
|
});
|
|
@@ -112,8 +143,9 @@ export const OGCFormatQuerySchema = z.object({ f: formatParameter }).strict();
|
|
|
112
143
|
* One collection description, from OGC API Common Part 2's `collectionDesc.yaml`.
|
|
113
144
|
*
|
|
114
145
|
* `id` and `links` are the two members the schema requires.
|
|
115
|
-
*
|
|
116
|
-
*
|
|
146
|
+
* A collection that serves `/collections/{collectionId}/items` adds `itemType`,
|
|
147
|
+
* the `items` link and the `extent` OGC API Features Part 1 describes.
|
|
148
|
+
* Another collection omits all three.
|
|
117
149
|
*/
|
|
118
150
|
export const OGCCollectionSchema = z
|
|
119
151
|
.object({
|
|
@@ -121,6 +153,11 @@ export const OGCCollectionSchema = z
|
|
|
121
153
|
title: z.string(),
|
|
122
154
|
description: z.string(),
|
|
123
155
|
links: z.array(OGCLinkSchema),
|
|
156
|
+
attribution: z.string().optional().openapi({
|
|
157
|
+
description: "A short credit for the data, present when a layer's license requires attribution. OGC API Common Part 2 defines the member.",
|
|
158
|
+
}),
|
|
159
|
+
itemType: z.literal("feature").optional(),
|
|
160
|
+
extent: OGCExtentSchema.optional(),
|
|
124
161
|
geometryDimension: z.literal(0).openapi({ description: "Every feature in the collection is a point." }),
|
|
125
162
|
version: z.number().int().openapi({
|
|
126
163
|
description: "The collection version, the value `/search` takes in `<collectionId>[version]`, as on PDOK.",
|
|
@@ -161,6 +198,9 @@ export const OGCSearchPropertiesSchema = z
|
|
|
161
198
|
placetype: z.string().optional().openapi({
|
|
162
199
|
description: "The gazetteer placetype of a place or postcode, such as `locality`, `localadmin` or `postalcode`. Absent for an address, a street or a plus code.",
|
|
163
200
|
}),
|
|
201
|
+
href: z.string().optional().openapi({
|
|
202
|
+
description: "The URL of the same place at `/collections/{collectionId}/items/{featureId}`, as on PDOK. Absent when the collection serves no items or holds no item for the place.",
|
|
203
|
+
}),
|
|
164
204
|
})
|
|
165
205
|
.openapi("OGCSearchProperties");
|
|
166
206
|
/**
|
|
@@ -238,4 +278,101 @@ export function searchQuerySchema(collectionIDs) {
|
|
|
238
278
|
})
|
|
239
279
|
.strict();
|
|
240
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* The number of items `/collections/{collectionId}/items` returns when the request omits `limit`.
|
|
283
|
+
*/
|
|
284
|
+
export const OGC_ITEMS_DEFAULT_LIMIT = 10;
|
|
285
|
+
/**
|
|
286
|
+
* The most items one `/collections/{collectionId}/items` page returns.
|
|
287
|
+
*
|
|
288
|
+
* A larger `limit` is served as this one, because OGC API Features Part 1 requires
|
|
289
|
+
* a `limit` above the maximum to succeed rather than fail.
|
|
290
|
+
*/
|
|
291
|
+
export const OGC_ITEMS_MAX_LIMIT = 1000;
|
|
292
|
+
/**
|
|
293
|
+
* The properties of one item.
|
|
294
|
+
*/
|
|
295
|
+
export const OGCItemPropertiesSchema = z
|
|
296
|
+
.object({
|
|
297
|
+
name: z.string().openapi({ description: "The place's name, as the gazetteer records it." }),
|
|
298
|
+
placetype: z.string().openapi({ description: "The gazetteer placetype, such as `locality` or `region`." }),
|
|
299
|
+
country_code: z.string().nullable().openapi({
|
|
300
|
+
description: "The ISO 3166-1 alpha-2 country code the gazetteer records, or null when it records none.",
|
|
301
|
+
}),
|
|
302
|
+
display_name: z.string().openapi({
|
|
303
|
+
description: "The place's name, then its ancestors, most specific first, then its country, as `/search` labels it.",
|
|
304
|
+
}),
|
|
305
|
+
})
|
|
306
|
+
.openapi("OGCItemProperties");
|
|
307
|
+
/**
|
|
308
|
+
* One item, a GeoJSON point feature with its gazetteer place ID as `id`.
|
|
309
|
+
*/
|
|
310
|
+
export const OGCItemFeatureSchema = featureSchema(OGCItemPropertiesSchema)
|
|
311
|
+
.extend({
|
|
312
|
+
id: z.string().openapi({ description: "The gazetteer place ID, such as `wof:85975673`, as `/search` reports it." }),
|
|
313
|
+
links: z.array(OGCLinkSchema).optional(),
|
|
314
|
+
})
|
|
315
|
+
.openapi("OGCItemFeature");
|
|
316
|
+
/**
|
|
317
|
+
* One page of items: a GeoJSON FeatureCollection with the members OGC API Features Part 1 adds.
|
|
318
|
+
*
|
|
319
|
+
* `numberMatched` is omitted, as the standard permits, because counting a box's places costs a scan.
|
|
320
|
+
*/
|
|
321
|
+
export const OGCItemsResponseSchema = featureCollectionSchema(OGCItemFeatureSchema)
|
|
322
|
+
.extend({
|
|
323
|
+
timeStamp: z.string().openapi({ description: "When the response was generated, as an RFC 3339 UTC timestamp." }),
|
|
324
|
+
links: z.array(OGCLinkSchema),
|
|
325
|
+
numberReturned: z.number().int(),
|
|
326
|
+
})
|
|
327
|
+
.openapi("OGCItemsResponse");
|
|
328
|
+
/**
|
|
329
|
+
* The path parameters of `/collections/{collectionId}/items/{featureId}`.
|
|
330
|
+
*/
|
|
331
|
+
export const OGCItemPathSchema = OGCCollectionPathSchema.extend({
|
|
332
|
+
featureId: z.string().openapi({ param: { name: "featureId", in: "path" }, example: "wof:101751893" }),
|
|
333
|
+
});
|
|
334
|
+
/**
|
|
335
|
+
* The query of `/collections/{collectionId}/items`.
|
|
336
|
+
*
|
|
337
|
+
* The parameter definitions follow OGC API Features Part 1, Requirements 21, 23 and 25,
|
|
338
|
+
* including the `form` style without `explode` that a client reads from the API definition.
|
|
339
|
+
* The values arrive as strings, and the route parses them.
|
|
340
|
+
*/
|
|
341
|
+
export const OGCItemsQuerySchema = z
|
|
342
|
+
.object({
|
|
343
|
+
limit: z
|
|
344
|
+
.string()
|
|
345
|
+
.optional()
|
|
346
|
+
.openapi({
|
|
347
|
+
param: { style: "form", explode: false },
|
|
348
|
+
type: "integer",
|
|
349
|
+
minimum: 1,
|
|
350
|
+
maximum: OGC_ITEMS_MAX_LIMIT,
|
|
351
|
+
default: OGC_ITEMS_DEFAULT_LIMIT,
|
|
352
|
+
description: `The most features to return. The default is ${OGC_ITEMS_DEFAULT_LIMIT}, and a larger value than ${OGC_ITEMS_MAX_LIMIT} returns ${OGC_ITEMS_MAX_LIMIT}.`,
|
|
353
|
+
}),
|
|
354
|
+
bbox: z
|
|
355
|
+
.string()
|
|
356
|
+
.optional()
|
|
357
|
+
.openapi({
|
|
358
|
+
param: { style: "form", explode: false },
|
|
359
|
+
type: "array",
|
|
360
|
+
minItems: 4,
|
|
361
|
+
maxItems: 6,
|
|
362
|
+
items: { type: "number" },
|
|
363
|
+
description: "Keep only features whose point lies inside the box: `minLon,minLat,maxLon,maxLat` in WGS 84 longitude and latitude, or six numbers with a minimum and maximum height after each latitude. The features have no height, so the height bounds select nothing out. A minimum longitude above the maximum crosses the antimeridian.",
|
|
364
|
+
}),
|
|
365
|
+
datetime: z
|
|
366
|
+
.string()
|
|
367
|
+
.optional()
|
|
368
|
+
.openapi({
|
|
369
|
+
param: { style: "form", explode: false },
|
|
370
|
+
description: "An RFC 3339 date-time, or an interval of two separated by `/` with `..` or an empty string for an open end. The places carry no time, so every valid value matches every place, as OGC API Features Part 1 requires for features without a temporal geometry.",
|
|
371
|
+
}),
|
|
372
|
+
after: z.string().optional().openapi({
|
|
373
|
+
description: "Start after the item with this WOF id. The `next` link sets it, and a client follows that link rather than building the value.",
|
|
374
|
+
}),
|
|
375
|
+
f: formatParameter,
|
|
376
|
+
})
|
|
377
|
+
.strict();
|
|
241
378
|
//# sourceMappingURL=schema.js.map
|
package/out/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../lib/schema.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAA;AACrC,OAAO,E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