@honua/sdk-esri-compat 0.0.6-alpha.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 +5 -0
- package/contract/edit-session.d.ts +203 -0
- package/contract/edit-session.d.ts.map +1 -0
- package/contract/edit-session.js +717 -0
- package/contract/index.d.ts +20 -0
- package/contract/index.d.ts.map +1 -0
- package/contract/index.js +15 -0
- package/contract/jobs.d.ts +115 -0
- package/contract/jobs.d.ts.map +1 -0
- package/contract/jobs.js +22 -0
- package/contract/source.d.ts +138 -0
- package/contract/source.d.ts.map +1 -0
- package/contract/source.js +3364 -0
- package/contract/spatial-aggregation.d.ts +312 -0
- package/contract/spatial-aggregation.d.ts.map +1 -0
- package/contract/spatial-aggregation.js +196 -0
- package/contract/types.d.ts +542 -0
- package/contract/types.d.ts.map +1 -0
- package/contract/types.js +171 -0
- package/core/batch.d.ts +37 -0
- package/core/batch.d.ts.map +1 -0
- package/core/batch.js +78 -0
- package/core/cache-state.d.ts +76 -0
- package/core/cache-state.d.ts.map +1 -0
- package/core/cache-state.js +84 -0
- package/core/client.d.ts +289 -0
- package/core/client.d.ts.map +1 -0
- package/core/client.js +2625 -0
- package/core/errors.d.ts +68 -0
- package/core/errors.d.ts.map +1 -0
- package/core/errors.js +116 -0
- package/core/grpc-adapter.d.ts +23 -0
- package/core/grpc-adapter.d.ts.map +1 -0
- package/core/grpc-adapter.js +704 -0
- package/core/odata.d.ts +347 -0
- package/core/odata.d.ts.map +1 -0
- package/core/odata.js +837 -0
- package/core/ogc-conformance.d.ts +35 -0
- package/core/ogc-conformance.d.ts.map +1 -0
- package/core/ogc-conformance.js +121 -0
- package/core/ogc-maps.d.ts +45 -0
- package/core/ogc-maps.d.ts.map +1 -0
- package/core/ogc-maps.js +53 -0
- package/core/ogc-processes.d.ts +92 -0
- package/core/ogc-processes.d.ts.map +1 -0
- package/core/ogc-processes.js +325 -0
- package/core/ogc-tiles.d.ts +55 -0
- package/core/ogc-tiles.d.ts.map +1 -0
- package/core/ogc-tiles.js +81 -0
- package/core/pbf-decoder.d.ts +28 -0
- package/core/pbf-decoder.d.ts.map +1 -0
- package/core/pbf-decoder.js +627 -0
- package/core/query-builder.d.ts +261 -0
- package/core/query-builder.d.ts.map +1 -0
- package/core/query-builder.js +538 -0
- package/core/spatial-filter.d.ts +93 -0
- package/core/spatial-filter.d.ts.map +1 -0
- package/core/spatial-filter.js +153 -0
- package/core/stac.d.ts +43 -0
- package/core/stac.d.ts.map +1 -0
- package/core/stac.js +116 -0
- package/core/surfaces.d.ts +464 -0
- package/core/surfaces.d.ts.map +1 -0
- package/core/surfaces.js +1322 -0
- package/core/types.d.ts +1238 -0
- package/core/types.d.ts.map +1 -0
- package/core/types.js +13 -0
- package/core/wfs-capabilities.d.ts +143 -0
- package/core/wfs-capabilities.d.ts.map +1 -0
- package/core/wfs-capabilities.js +478 -0
- package/core/wfs-filter.d.ts +118 -0
- package/core/wfs-filter.d.ts.map +1 -0
- package/core/wfs-filter.js +586 -0
- package/core/wfs.d.ts +219 -0
- package/core/wfs.d.ts.map +1 -0
- package/core/wfs.js +406 -0
- package/core/wms-capabilities.d.ts +110 -0
- package/core/wms-capabilities.d.ts.map +1 -0
- package/core/wms-capabilities.js +566 -0
- package/core/wms-types.d.ts +128 -0
- package/core/wms-types.d.ts.map +1 -0
- package/core/wms-types.js +32 -0
- package/core/wms.d.ts +108 -0
- package/core/wms.d.ts.map +1 -0
- package/core/wms.js +182 -0
- package/core/wmts-capabilities.d.ts +82 -0
- package/core/wmts-capabilities.d.ts.map +1 -0
- package/core/wmts-capabilities.js +409 -0
- package/core/wmts.d.ts +80 -0
- package/core/wmts.d.ts.map +1 -0
- package/core/wmts.js +173 -0
- package/esri-compat/basemap-gallery.d.ts +38 -0
- package/esri-compat/basemap-gallery.d.ts.map +1 -0
- package/esri-compat/basemap-gallery.js +159 -0
- package/esri-compat/basemap-layer-list.d.ts +35 -0
- package/esri-compat/basemap-layer-list.d.ts.map +1 -0
- package/esri-compat/basemap-layer-list.js +139 -0
- package/esri-compat/basemap.d.ts +32 -0
- package/esri-compat/basemap.d.ts.map +1 -0
- package/esri-compat/basemap.js +84 -0
- package/esri-compat/bookmarks.d.ts +36 -0
- package/esri-compat/bookmarks.d.ts.map +1 -0
- package/esri-compat/bookmarks.js +108 -0
- package/esri-compat/class-breaks-renderer.d.ts +50 -0
- package/esri-compat/class-breaks-renderer.d.ts.map +1 -0
- package/esri-compat/class-breaks-renderer.js +164 -0
- package/esri-compat/color.d.ts +22 -0
- package/esri-compat/color.d.ts.map +1 -0
- package/esri-compat/color.js +106 -0
- package/esri-compat/controls.d.ts +174 -0
- package/esri-compat/controls.d.ts.map +1 -0
- package/esri-compat/controls.js +479 -0
- package/esri-compat/coordinate-conversion.d.ts +41 -0
- package/esri-compat/coordinate-conversion.d.ts.map +1 -0
- package/esri-compat/coordinate-conversion.js +125 -0
- package/esri-compat/directions.d.ts +45 -0
- package/esri-compat/directions.d.ts.map +1 -0
- package/esri-compat/directions.js +123 -0
- package/esri-compat/editor.d.ts +47 -0
- package/esri-compat/editor.d.ts.map +1 -0
- package/esri-compat/editor.js +170 -0
- package/esri-compat/esri-config.d.ts +16 -0
- package/esri-compat/esri-config.d.ts.map +1 -0
- package/esri-compat/esri-config.js +23 -0
- package/esri-compat/esri-request.d.ts +17 -0
- package/esri-compat/esri-request.d.ts.map +1 -0
- package/esri-compat/esri-request.js +66 -0
- package/esri-compat/event-bus.d.ts +106 -0
- package/esri-compat/event-bus.d.ts.map +1 -0
- package/esri-compat/event-bus.js +90 -0
- package/esri-compat/expand.d.ts +36 -0
- package/esri-compat/expand.d.ts.map +1 -0
- package/esri-compat/expand.js +97 -0
- package/esri-compat/extent.d.ts +43 -0
- package/esri-compat/extent.d.ts.map +1 -0
- package/esri-compat/extent.js +140 -0
- package/esri-compat/feature-form.d.ts +64 -0
- package/esri-compat/feature-form.d.ts.map +1 -0
- package/esri-compat/feature-form.js +137 -0
- package/esri-compat/feature-layer.d.ts +173 -0
- package/esri-compat/feature-layer.d.ts.map +1 -0
- package/esri-compat/feature-layer.js +655 -0
- package/esri-compat/feature-set.d.ts +32 -0
- package/esri-compat/feature-set.d.ts.map +1 -0
- package/esri-compat/feature-set.js +80 -0
- package/esri-compat/feature-table.d.ts +141 -0
- package/esri-compat/feature-table.d.ts.map +1 -0
- package/esri-compat/feature-table.js +500 -0
- package/esri-compat/feature-templates.d.ts +41 -0
- package/esri-compat/feature-templates.d.ts.map +1 -0
- package/esri-compat/feature-templates.js +97 -0
- package/esri-compat/feature.d.ts +33 -0
- package/esri-compat/feature.d.ts.map +1 -0
- package/esri-compat/feature.js +83 -0
- package/esri-compat/graphic.d.ts +46 -0
- package/esri-compat/graphic.d.ts.map +1 -0
- package/esri-compat/graphic.js +103 -0
- package/esri-compat/graphics-layer.d.ts +49 -0
- package/esri-compat/graphics-layer.d.ts.map +1 -0
- package/esri-compat/graphics-layer.js +185 -0
- package/esri-compat/group-layer.d.ts +48 -0
- package/esri-compat/group-layer.d.ts.map +1 -0
- package/esri-compat/group-layer.js +212 -0
- package/esri-compat/identify.d.ts +71 -0
- package/esri-compat/identify.d.ts.map +1 -0
- package/esri-compat/identify.js +299 -0
- package/esri-compat/identity-manager.d.ts +31 -0
- package/esri-compat/identity-manager.d.ts.map +1 -0
- package/esri-compat/identity-manager.js +115 -0
- package/esri-compat/label-class.d.ts +31 -0
- package/esri-compat/label-class.d.ts.map +1 -0
- package/esri-compat/label-class.js +102 -0
- package/esri-compat/layer-list.d.ts +77 -0
- package/esri-compat/layer-list.d.ts.map +1 -0
- package/esri-compat/layer-list.js +342 -0
- package/esri-compat/legend.d.ts +53 -0
- package/esri-compat/legend.d.ts.map +1 -0
- package/esri-compat/legend.js +254 -0
- package/esri-compat/map-image-layer.d.ts +162 -0
- package/esri-compat/map-image-layer.d.ts.map +1 -0
- package/esri-compat/map-image-layer.js +704 -0
- package/esri-compat/map-view.d.ts +315 -0
- package/esri-compat/map-view.d.ts.map +1 -0
- package/esri-compat/map-view.js +1110 -0
- package/esri-compat/map.d.ts +47 -0
- package/esri-compat/map.d.ts.map +1 -0
- package/esri-compat/map.js +209 -0
- package/esri-compat/measurement-2d.d.ts +61 -0
- package/esri-compat/measurement-2d.d.ts.map +1 -0
- package/esri-compat/measurement-2d.js +184 -0
- package/esri-compat/measurement.d.ts +45 -0
- package/esri-compat/measurement.d.ts.map +1 -0
- package/esri-compat/measurement.js +193 -0
- package/esri-compat/oauth-info.d.ts +35 -0
- package/esri-compat/oauth-info.d.ts.map +1 -0
- package/esri-compat/oauth-info.js +115 -0
- package/esri-compat/picture-marker-symbol.d.ts +35 -0
- package/esri-compat/picture-marker-symbol.d.ts.map +1 -0
- package/esri-compat/picture-marker-symbol.js +126 -0
- package/esri-compat/point.d.ts +31 -0
- package/esri-compat/point.d.ts.map +1 -0
- package/esri-compat/point.js +102 -0
- package/esri-compat/polygon.d.ts +31 -0
- package/esri-compat/polygon.d.ts.map +1 -0
- package/esri-compat/polygon.js +107 -0
- package/esri-compat/polyline.d.ts +31 -0
- package/esri-compat/polyline.d.ts.map +1 -0
- package/esri-compat/polyline.js +107 -0
- package/esri-compat/popup-template.d.ts +55 -0
- package/esri-compat/popup-template.d.ts.map +1 -0
- package/esri-compat/popup-template.js +128 -0
- package/esri-compat/popup.d.ts +54 -0
- package/esri-compat/popup.d.ts.map +1 -0
- package/esri-compat/popup.js +312 -0
- package/esri-compat/print.d.ts +47 -0
- package/esri-compat/print.d.ts.map +1 -0
- package/esri-compat/print.js +105 -0
- package/esri-compat/query.d.ts +46 -0
- package/esri-compat/query.d.ts.map +1 -0
- package/esri-compat/query.js +119 -0
- package/esri-compat/reactive-utils.d.ts +23 -0
- package/esri-compat/reactive-utils.d.ts.map +1 -0
- package/esri-compat/reactive-utils.js +178 -0
- package/esri-compat/request.d.ts +41 -0
- package/esri-compat/request.d.ts.map +1 -0
- package/esri-compat/request.js +253 -0
- package/esri-compat/route-layer.d.ts +59 -0
- package/esri-compat/route-layer.d.ts.map +1 -0
- package/esri-compat/route-layer.js +223 -0
- package/esri-compat/route-task.d.ts +88 -0
- package/esri-compat/route-task.d.ts.map +1 -0
- package/esri-compat/route-task.js +225 -0
- package/esri-compat/scene-view.d.ts +41 -0
- package/esri-compat/scene-view.d.ts.map +1 -0
- package/esri-compat/scene-view.js +68 -0
- package/esri-compat/search.d.ts +112 -0
- package/esri-compat/search.d.ts.map +1 -0
- package/esri-compat/search.js +820 -0
- package/esri-compat/simple-fill-symbol.d.ts +27 -0
- package/esri-compat/simple-fill-symbol.d.ts.map +1 -0
- package/esri-compat/simple-fill-symbol.js +85 -0
- package/esri-compat/simple-line-symbol.d.ts +27 -0
- package/esri-compat/simple-line-symbol.d.ts.map +1 -0
- package/esri-compat/simple-line-symbol.js +85 -0
- package/esri-compat/simple-marker-symbol.d.ts +29 -0
- package/esri-compat/simple-marker-symbol.d.ts.map +1 -0
- package/esri-compat/simple-marker-symbol.js +92 -0
- package/esri-compat/simple-renderer.d.ts +29 -0
- package/esri-compat/simple-renderer.d.ts.map +1 -0
- package/esri-compat/simple-renderer.js +92 -0
- package/esri-compat/sketch.d.ts +64 -0
- package/esri-compat/sketch.d.ts.map +1 -0
- package/esri-compat/sketch.js +227 -0
- package/esri-compat/spatial-reference.d.ts +31 -0
- package/esri-compat/spatial-reference.d.ts.map +1 -0
- package/esri-compat/spatial-reference.js +102 -0
- package/esri-compat/swipe.d.ts +34 -0
- package/esri-compat/swipe.d.ts.map +1 -0
- package/esri-compat/swipe.js +93 -0
- package/esri-compat/table-list.d.ts +36 -0
- package/esri-compat/table-list.d.ts.map +1 -0
- package/esri-compat/table-list.js +126 -0
- package/esri-compat/text-symbol.d.ts +37 -0
- package/esri-compat/text-symbol.d.ts.map +1 -0
- package/esri-compat/text-symbol.js +123 -0
- package/esri-compat/tile-layer.d.ts +52 -0
- package/esri-compat/tile-layer.d.ts.map +1 -0
- package/esri-compat/tile-layer.js +167 -0
- package/esri-compat/time-slider.d.ts +70 -0
- package/esri-compat/time-slider.d.ts.map +1 -0
- package/esri-compat/time-slider.js +208 -0
- package/esri-compat/track.d.ts +51 -0
- package/esri-compat/track.d.ts.map +1 -0
- package/esri-compat/track.js +174 -0
- package/esri-compat/unique-value-renderer.d.ts +41 -0
- package/esri-compat/unique-value-renderer.d.ts.map +1 -0
- package/esri-compat/unique-value-renderer.js +127 -0
- package/esri-compat/url.d.ts +12 -0
- package/esri-compat/url.d.ts.map +1 -0
- package/esri-compat/url.js +54 -0
- package/esri-compat/web-map.d.ts +14 -0
- package/esri-compat/web-map.d.ts.map +1 -0
- package/esri-compat/web-map.js +24 -0
- package/gen/honua/v1/feature_service_pb.d.ts +918 -0
- package/gen/honua/v1/feature_service_pb.d.ts.map +1 -0
- package/gen/honua/v1/feature_service_pb.js +375 -0
- package/index.d.ts +130 -0
- package/index.js +65 -0
- package/package.json +22 -0
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fluent builder for constructing `QueryFeaturesRequest` objects.
|
|
3
|
+
*
|
|
4
|
+
* Create via `QueryBuilder.from(serviceId, layerId)` (standalone) or
|
|
5
|
+
* `QueryBuilder.for(client, serviceId, layerId)` (bound to a client for `.run()`).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // Standalone — build request object
|
|
10
|
+
* const req = QueryBuilder.from("myService", 0)
|
|
11
|
+
* .where("POP > 1000")
|
|
12
|
+
* .outFields("NAME", "POP")
|
|
13
|
+
* .limit(100)
|
|
14
|
+
* .build();
|
|
15
|
+
*
|
|
16
|
+
* const result = await client.queryFeatures(req);
|
|
17
|
+
*
|
|
18
|
+
* // Bound — build and execute in one chain
|
|
19
|
+
* const result = await QueryBuilder.for(client, "myService", 0)
|
|
20
|
+
* .where("POP > 1000")
|
|
21
|
+
* .outFields("NAME", "POP")
|
|
22
|
+
* .limit(100)
|
|
23
|
+
* .run();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export class QueryBuilder {
|
|
27
|
+
serviceId;
|
|
28
|
+
layerId;
|
|
29
|
+
boundClient;
|
|
30
|
+
whereClause;
|
|
31
|
+
fields;
|
|
32
|
+
geometryFilter;
|
|
33
|
+
geometryTypeValue;
|
|
34
|
+
spatialRelValue;
|
|
35
|
+
returnGeometryValue;
|
|
36
|
+
orderByFieldsValue;
|
|
37
|
+
resultOffsetValue;
|
|
38
|
+
resultRecordCountValue;
|
|
39
|
+
objectIdsValue;
|
|
40
|
+
returnDistinctValuesValue;
|
|
41
|
+
returnCentroidValue;
|
|
42
|
+
groupByFieldsValue;
|
|
43
|
+
outStatisticsValue;
|
|
44
|
+
methodValue;
|
|
45
|
+
signalValue;
|
|
46
|
+
extraParamsValue;
|
|
47
|
+
constructor(serviceId, layerId, client) {
|
|
48
|
+
this.serviceId = serviceId;
|
|
49
|
+
this.layerId = layerId;
|
|
50
|
+
this.boundClient = client;
|
|
51
|
+
}
|
|
52
|
+
/** Create a standalone builder (call `.build()` to get the request object). */
|
|
53
|
+
static from(serviceId, layerId) {
|
|
54
|
+
return new QueryBuilder(serviceId, layerId);
|
|
55
|
+
}
|
|
56
|
+
/** Create a builder bound to a client (enables `.run()` to execute the query). */
|
|
57
|
+
static for(client, serviceId, layerId) {
|
|
58
|
+
return new QueryBuilder(serviceId, layerId, client);
|
|
59
|
+
}
|
|
60
|
+
/** Set the WHERE clause for filtering features. */
|
|
61
|
+
where(clause) {
|
|
62
|
+
this.whereClause = clause;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
/** Set the output fields to return. Accepts individual field names. */
|
|
66
|
+
outFields(...fieldNames) {
|
|
67
|
+
this.fields = fieldNames;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
/** Set a geometry filter. Accepts a geometry object or JSON string. */
|
|
71
|
+
geometry(geom) {
|
|
72
|
+
this.geometryFilter = geom;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
/** Set the geometry type for the geometry filter. */
|
|
76
|
+
geometryType(type) {
|
|
77
|
+
this.geometryTypeValue = type;
|
|
78
|
+
return this;
|
|
79
|
+
}
|
|
80
|
+
/** Set the spatial relationship for the geometry filter. */
|
|
81
|
+
spatialRel(rel) {
|
|
82
|
+
this.spatialRelValue = rel;
|
|
83
|
+
return this;
|
|
84
|
+
}
|
|
85
|
+
/** Whether to include geometry in the response. */
|
|
86
|
+
returnGeometry(value) {
|
|
87
|
+
this.returnGeometryValue = value;
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
/** Set the fields to order results by (e.g. `"NAME ASC"`). */
|
|
91
|
+
orderBy(fields) {
|
|
92
|
+
this.orderByFieldsValue = fields;
|
|
93
|
+
return this;
|
|
94
|
+
}
|
|
95
|
+
/** Set the maximum number of features to return. */
|
|
96
|
+
limit(count) {
|
|
97
|
+
this.resultRecordCountValue = count;
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
/** Set the number of features to skip (for pagination). */
|
|
101
|
+
offset(count) {
|
|
102
|
+
this.resultOffsetValue = count;
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
105
|
+
/** Filter by specific object IDs. */
|
|
106
|
+
objectIds(ids) {
|
|
107
|
+
this.objectIdsValue = ids;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
/** Return only distinct values. */
|
|
111
|
+
distinct(value = true) {
|
|
112
|
+
this.returnDistinctValuesValue = value;
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
/** Return centroids instead of full geometries. */
|
|
116
|
+
returnCentroid(value = true) {
|
|
117
|
+
this.returnCentroidValue = value;
|
|
118
|
+
return this;
|
|
119
|
+
}
|
|
120
|
+
/** Set group-by fields for statistics queries. */
|
|
121
|
+
groupBy(fields) {
|
|
122
|
+
this.groupByFieldsValue = fields;
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
/** Set output statistics definitions. */
|
|
126
|
+
outStatistics(stats) {
|
|
127
|
+
this.outStatisticsValue = stats;
|
|
128
|
+
return this;
|
|
129
|
+
}
|
|
130
|
+
/** Set the HTTP method (GET or POST). */
|
|
131
|
+
method(m) {
|
|
132
|
+
this.methodValue = m;
|
|
133
|
+
return this;
|
|
134
|
+
}
|
|
135
|
+
/** Attach an AbortSignal for cancellation. */
|
|
136
|
+
signal(s) {
|
|
137
|
+
this.signalValue = s;
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
/** Set extra query parameters. */
|
|
141
|
+
extraParams(params) {
|
|
142
|
+
this.extraParamsValue = params;
|
|
143
|
+
return this;
|
|
144
|
+
}
|
|
145
|
+
/** Build the `QueryFeaturesRequest` object without executing it. */
|
|
146
|
+
build() {
|
|
147
|
+
const request = {
|
|
148
|
+
serviceId: this.serviceId,
|
|
149
|
+
layerId: this.layerId,
|
|
150
|
+
};
|
|
151
|
+
if (this.whereClause !== undefined)
|
|
152
|
+
request.where = this.whereClause;
|
|
153
|
+
if (this.fields !== undefined)
|
|
154
|
+
request.outFields = this.fields;
|
|
155
|
+
if (this.geometryFilter !== undefined)
|
|
156
|
+
request.geometry = this.geometryFilter;
|
|
157
|
+
if (this.geometryTypeValue !== undefined)
|
|
158
|
+
request.geometryType = this.geometryTypeValue;
|
|
159
|
+
if (this.spatialRelValue !== undefined)
|
|
160
|
+
request.spatialRel = this.spatialRelValue;
|
|
161
|
+
if (this.returnGeometryValue !== undefined)
|
|
162
|
+
request.returnGeometry = this.returnGeometryValue;
|
|
163
|
+
if (this.orderByFieldsValue !== undefined)
|
|
164
|
+
request.orderByFields = this.orderByFieldsValue;
|
|
165
|
+
if (this.resultOffsetValue !== undefined)
|
|
166
|
+
request.resultOffset = this.resultOffsetValue;
|
|
167
|
+
if (this.resultRecordCountValue !== undefined)
|
|
168
|
+
request.resultRecordCount = this.resultRecordCountValue;
|
|
169
|
+
if (this.objectIdsValue !== undefined)
|
|
170
|
+
request.objectIds = this.objectIdsValue;
|
|
171
|
+
if (this.returnDistinctValuesValue !== undefined)
|
|
172
|
+
request.returnDistinctValues = this.returnDistinctValuesValue;
|
|
173
|
+
if (this.returnCentroidValue !== undefined)
|
|
174
|
+
request.returnCentroid = this.returnCentroidValue;
|
|
175
|
+
if (this.groupByFieldsValue !== undefined)
|
|
176
|
+
request.groupByFieldsForStatistics = this.groupByFieldsValue;
|
|
177
|
+
if (this.outStatisticsValue !== undefined)
|
|
178
|
+
request.outStatistics = this.outStatisticsValue;
|
|
179
|
+
if (this.methodValue !== undefined)
|
|
180
|
+
request.method = this.methodValue;
|
|
181
|
+
if (this.signalValue !== undefined)
|
|
182
|
+
request.signal = this.signalValue;
|
|
183
|
+
if (this.extraParamsValue !== undefined)
|
|
184
|
+
request.extraParams = this.extraParamsValue;
|
|
185
|
+
return request;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Build the request and execute it via the bound client.
|
|
189
|
+
* Throws if the builder was created with `QueryBuilder.from()` (no client).
|
|
190
|
+
*/
|
|
191
|
+
async run() {
|
|
192
|
+
if (!this.boundClient) {
|
|
193
|
+
throw new Error("QueryBuilder.run() requires a bound client. Use QueryBuilder.for(client, ...) or call .build() and pass to client.queryFeatures().");
|
|
194
|
+
}
|
|
195
|
+
return this.boundClient.queryFeatures(this.build());
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Fluent builder for constructing `MapLayerQueryRequest` objects.
|
|
200
|
+
*
|
|
201
|
+
* Create via `MapLayerQueryBuilder.from(serviceId, layerId)` (standalone) or
|
|
202
|
+
* `MapLayerQueryBuilder.for(client, serviceId, layerId)` (bound to a client for `.run()`).
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```ts
|
|
206
|
+
* // Standalone — build request object
|
|
207
|
+
* const req = MapLayerQueryBuilder.from("myService", 0)
|
|
208
|
+
* .where("POP > 1000")
|
|
209
|
+
* .outFields("NAME", "POP")
|
|
210
|
+
* .limit(100)
|
|
211
|
+
* .build();
|
|
212
|
+
*
|
|
213
|
+
* const result = await client.queryMapLayer(req);
|
|
214
|
+
*
|
|
215
|
+
* // Bound — build and execute in one chain
|
|
216
|
+
* const result = await MapLayerQueryBuilder.for(client, "myService", 0)
|
|
217
|
+
* .where("POP > 1000")
|
|
218
|
+
* .outFields("NAME", "POP")
|
|
219
|
+
* .limit(100)
|
|
220
|
+
* .run();
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
export class MapLayerQueryBuilder {
|
|
224
|
+
serviceId;
|
|
225
|
+
layerId;
|
|
226
|
+
boundClient;
|
|
227
|
+
whereClause;
|
|
228
|
+
fields;
|
|
229
|
+
geometryFilter;
|
|
230
|
+
geometryTypeValue;
|
|
231
|
+
spatialRelValue;
|
|
232
|
+
returnGeometryValue;
|
|
233
|
+
orderByFieldsValue;
|
|
234
|
+
resultOffsetValue;
|
|
235
|
+
resultRecordCountValue;
|
|
236
|
+
objectIdsValue;
|
|
237
|
+
returnDistinctValuesValue;
|
|
238
|
+
returnCentroidValue;
|
|
239
|
+
groupByFieldsValue;
|
|
240
|
+
outStatisticsValue;
|
|
241
|
+
methodValue;
|
|
242
|
+
signalValue;
|
|
243
|
+
extraParamsValue;
|
|
244
|
+
constructor(serviceId, layerId, client) {
|
|
245
|
+
this.serviceId = serviceId;
|
|
246
|
+
this.layerId = layerId;
|
|
247
|
+
this.boundClient = client;
|
|
248
|
+
}
|
|
249
|
+
/** Create a standalone builder (call `.build()` to get the request object). */
|
|
250
|
+
static from(serviceId, layerId) {
|
|
251
|
+
return new MapLayerQueryBuilder(serviceId, layerId);
|
|
252
|
+
}
|
|
253
|
+
/** Create a builder bound to a client (enables `.run()` to execute the query). */
|
|
254
|
+
static for(client, serviceId, layerId) {
|
|
255
|
+
return new MapLayerQueryBuilder(serviceId, layerId, client);
|
|
256
|
+
}
|
|
257
|
+
/** Set the WHERE clause for filtering features. */
|
|
258
|
+
where(clause) {
|
|
259
|
+
this.whereClause = clause;
|
|
260
|
+
return this;
|
|
261
|
+
}
|
|
262
|
+
/** Set the output fields to return. Accepts individual field names. */
|
|
263
|
+
outFields(...fieldNames) {
|
|
264
|
+
this.fields = fieldNames;
|
|
265
|
+
return this;
|
|
266
|
+
}
|
|
267
|
+
/** Set a geometry filter. Accepts a geometry object or JSON string. */
|
|
268
|
+
geometry(geom) {
|
|
269
|
+
this.geometryFilter = geom;
|
|
270
|
+
return this;
|
|
271
|
+
}
|
|
272
|
+
/** Set the geometry type for the geometry filter. */
|
|
273
|
+
geometryType(type) {
|
|
274
|
+
this.geometryTypeValue = type;
|
|
275
|
+
return this;
|
|
276
|
+
}
|
|
277
|
+
/** Set the spatial relationship for the geometry filter. */
|
|
278
|
+
spatialRel(rel) {
|
|
279
|
+
this.spatialRelValue = rel;
|
|
280
|
+
return this;
|
|
281
|
+
}
|
|
282
|
+
/** Whether to include geometry in the response. */
|
|
283
|
+
returnGeometry(value) {
|
|
284
|
+
this.returnGeometryValue = value;
|
|
285
|
+
return this;
|
|
286
|
+
}
|
|
287
|
+
/** Set the fields to order results by (e.g. `"NAME ASC"`). */
|
|
288
|
+
orderBy(fields) {
|
|
289
|
+
this.orderByFieldsValue = fields;
|
|
290
|
+
return this;
|
|
291
|
+
}
|
|
292
|
+
/** Set the maximum number of features to return. */
|
|
293
|
+
limit(count) {
|
|
294
|
+
this.resultRecordCountValue = count;
|
|
295
|
+
return this;
|
|
296
|
+
}
|
|
297
|
+
/** Set the number of features to skip (for pagination). */
|
|
298
|
+
offset(count) {
|
|
299
|
+
this.resultOffsetValue = count;
|
|
300
|
+
return this;
|
|
301
|
+
}
|
|
302
|
+
/** Filter by specific object IDs. */
|
|
303
|
+
objectIds(ids) {
|
|
304
|
+
this.objectIdsValue = ids;
|
|
305
|
+
return this;
|
|
306
|
+
}
|
|
307
|
+
/** Return only distinct values. */
|
|
308
|
+
distinct(value = true) {
|
|
309
|
+
this.returnDistinctValuesValue = value;
|
|
310
|
+
return this;
|
|
311
|
+
}
|
|
312
|
+
/** Return centroids instead of full geometries. */
|
|
313
|
+
returnCentroid(value = true) {
|
|
314
|
+
this.returnCentroidValue = value;
|
|
315
|
+
return this;
|
|
316
|
+
}
|
|
317
|
+
/** Set group-by fields for statistics queries. */
|
|
318
|
+
groupBy(fields) {
|
|
319
|
+
this.groupByFieldsValue = fields;
|
|
320
|
+
return this;
|
|
321
|
+
}
|
|
322
|
+
/** Set output statistics definitions. */
|
|
323
|
+
outStatistics(stats) {
|
|
324
|
+
this.outStatisticsValue = stats;
|
|
325
|
+
return this;
|
|
326
|
+
}
|
|
327
|
+
/** Set the HTTP method (GET or POST). */
|
|
328
|
+
method(m) {
|
|
329
|
+
this.methodValue = m;
|
|
330
|
+
return this;
|
|
331
|
+
}
|
|
332
|
+
/** Attach an AbortSignal for cancellation. */
|
|
333
|
+
signal(s) {
|
|
334
|
+
this.signalValue = s;
|
|
335
|
+
return this;
|
|
336
|
+
}
|
|
337
|
+
/** Set extra query parameters. */
|
|
338
|
+
extraParams(params) {
|
|
339
|
+
this.extraParamsValue = params;
|
|
340
|
+
return this;
|
|
341
|
+
}
|
|
342
|
+
/** Build the `MapLayerQueryRequest` object without executing it. */
|
|
343
|
+
build() {
|
|
344
|
+
const request = {
|
|
345
|
+
serviceId: this.serviceId,
|
|
346
|
+
layerId: this.layerId,
|
|
347
|
+
};
|
|
348
|
+
if (this.whereClause !== undefined)
|
|
349
|
+
request.where = this.whereClause;
|
|
350
|
+
if (this.fields !== undefined)
|
|
351
|
+
request.outFields = this.fields;
|
|
352
|
+
if (this.geometryFilter !== undefined)
|
|
353
|
+
request.geometry = this.geometryFilter;
|
|
354
|
+
if (this.geometryTypeValue !== undefined)
|
|
355
|
+
request.geometryType = this.geometryTypeValue;
|
|
356
|
+
if (this.spatialRelValue !== undefined)
|
|
357
|
+
request.spatialRel = this.spatialRelValue;
|
|
358
|
+
if (this.returnGeometryValue !== undefined)
|
|
359
|
+
request.returnGeometry = this.returnGeometryValue;
|
|
360
|
+
if (this.orderByFieldsValue !== undefined)
|
|
361
|
+
request.orderByFields = this.orderByFieldsValue;
|
|
362
|
+
if (this.resultOffsetValue !== undefined)
|
|
363
|
+
request.resultOffset = this.resultOffsetValue;
|
|
364
|
+
if (this.resultRecordCountValue !== undefined)
|
|
365
|
+
request.resultRecordCount = this.resultRecordCountValue;
|
|
366
|
+
if (this.objectIdsValue !== undefined)
|
|
367
|
+
request.objectIds = this.objectIdsValue;
|
|
368
|
+
if (this.returnDistinctValuesValue !== undefined)
|
|
369
|
+
request.returnDistinctValues = this.returnDistinctValuesValue;
|
|
370
|
+
if (this.returnCentroidValue !== undefined)
|
|
371
|
+
request.returnCentroid = this.returnCentroidValue;
|
|
372
|
+
if (this.groupByFieldsValue !== undefined)
|
|
373
|
+
request.groupByFieldsForStatistics = this.groupByFieldsValue;
|
|
374
|
+
if (this.outStatisticsValue !== undefined)
|
|
375
|
+
request.outStatistics = this.outStatisticsValue;
|
|
376
|
+
if (this.methodValue !== undefined)
|
|
377
|
+
request.method = this.methodValue;
|
|
378
|
+
if (this.signalValue !== undefined)
|
|
379
|
+
request.signal = this.signalValue;
|
|
380
|
+
if (this.extraParamsValue !== undefined)
|
|
381
|
+
request.extraParams = this.extraParamsValue;
|
|
382
|
+
return request;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Build the request and execute it via the bound client.
|
|
386
|
+
* Throws if the builder was created with `MapLayerQueryBuilder.from()` (no client).
|
|
387
|
+
*/
|
|
388
|
+
async run() {
|
|
389
|
+
if (!this.boundClient) {
|
|
390
|
+
throw new Error("MapLayerQueryBuilder.run() requires a bound client. Use MapLayerQueryBuilder.for(client, ...) or call .build() and pass to client.queryMapLayer().");
|
|
391
|
+
}
|
|
392
|
+
return this.boundClient.queryMapLayer(this.build());
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Fluent builder for constructing `OgcItemsRequest` objects.
|
|
397
|
+
*
|
|
398
|
+
* Create via `OgcQueryBuilder.from(collectionId)` (standalone) or
|
|
399
|
+
* `OgcQueryBuilder.for(client, collectionId)` (bound to a client for `.run()`).
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* ```ts
|
|
403
|
+
* // Standalone — build request object
|
|
404
|
+
* const req = OgcQueryBuilder.from("rivers")
|
|
405
|
+
* .limit(50)
|
|
406
|
+
* .bbox("-180,-90,180,90")
|
|
407
|
+
* .build();
|
|
408
|
+
*
|
|
409
|
+
* const result = await client.listOgcItems(req);
|
|
410
|
+
*
|
|
411
|
+
* // Bound — build and execute in one chain
|
|
412
|
+
* const result = await OgcQueryBuilder.for(client, "rivers")
|
|
413
|
+
* .limit(50)
|
|
414
|
+
* .bbox("-180,-90,180,90")
|
|
415
|
+
* .run();
|
|
416
|
+
* ```
|
|
417
|
+
*/
|
|
418
|
+
export class OgcQueryBuilder {
|
|
419
|
+
collectionId;
|
|
420
|
+
boundClient;
|
|
421
|
+
limitValue;
|
|
422
|
+
offsetValue;
|
|
423
|
+
bboxValue;
|
|
424
|
+
datetimeValue;
|
|
425
|
+
filterValue;
|
|
426
|
+
idsValue;
|
|
427
|
+
propertiesValue;
|
|
428
|
+
sortbyValue;
|
|
429
|
+
crsValue;
|
|
430
|
+
signalValue;
|
|
431
|
+
responseFormatValue;
|
|
432
|
+
constructor(collectionId, client) {
|
|
433
|
+
this.collectionId = collectionId;
|
|
434
|
+
this.boundClient = client;
|
|
435
|
+
}
|
|
436
|
+
/** Create a standalone builder (call `.build()` to get the request object). */
|
|
437
|
+
static from(collectionId) {
|
|
438
|
+
return new OgcQueryBuilder(collectionId);
|
|
439
|
+
}
|
|
440
|
+
/** Create a builder bound to a client (enables `.run()` to execute the query). */
|
|
441
|
+
static for(client, collectionId) {
|
|
442
|
+
return new OgcQueryBuilder(collectionId, client);
|
|
443
|
+
}
|
|
444
|
+
/** Set the maximum number of items to return. */
|
|
445
|
+
limit(n) {
|
|
446
|
+
this.limitValue = n;
|
|
447
|
+
return this;
|
|
448
|
+
}
|
|
449
|
+
/** Set the number of items to skip (for pagination). */
|
|
450
|
+
offset(n) {
|
|
451
|
+
this.offsetValue = n;
|
|
452
|
+
return this;
|
|
453
|
+
}
|
|
454
|
+
/** Set the bounding box filter (e.g. `"-180,-90,180,90"`). */
|
|
455
|
+
bbox(value) {
|
|
456
|
+
this.bboxValue = value;
|
|
457
|
+
return this;
|
|
458
|
+
}
|
|
459
|
+
/** Set the datetime filter (e.g. `"2020-01-01T00:00:00Z/.."`). */
|
|
460
|
+
datetime(value) {
|
|
461
|
+
this.datetimeValue = value;
|
|
462
|
+
return this;
|
|
463
|
+
}
|
|
464
|
+
/** Set the CQL2 filter expression. */
|
|
465
|
+
filter(value) {
|
|
466
|
+
this.filterValue = value;
|
|
467
|
+
return this;
|
|
468
|
+
}
|
|
469
|
+
/** Filter by specific feature IDs. */
|
|
470
|
+
ids(...idValues) {
|
|
471
|
+
this.idsValue = idValues;
|
|
472
|
+
return this;
|
|
473
|
+
}
|
|
474
|
+
/** Set the properties to return. */
|
|
475
|
+
properties(...props) {
|
|
476
|
+
this.propertiesValue = props;
|
|
477
|
+
return this;
|
|
478
|
+
}
|
|
479
|
+
/** Set the sort order (e.g. `"+name"` or `"-pop"`). */
|
|
480
|
+
sortby(value) {
|
|
481
|
+
this.sortbyValue = value;
|
|
482
|
+
return this;
|
|
483
|
+
}
|
|
484
|
+
/** Set the coordinate reference system URI. */
|
|
485
|
+
crs(value) {
|
|
486
|
+
this.crsValue = value;
|
|
487
|
+
return this;
|
|
488
|
+
}
|
|
489
|
+
/** Attach an AbortSignal for cancellation. */
|
|
490
|
+
signal(s) {
|
|
491
|
+
this.signalValue = s;
|
|
492
|
+
return this;
|
|
493
|
+
}
|
|
494
|
+
/** Set the response format (e.g. `"json"`, `"geojson"`). */
|
|
495
|
+
responseFormat(fmt) {
|
|
496
|
+
this.responseFormatValue = fmt;
|
|
497
|
+
return this;
|
|
498
|
+
}
|
|
499
|
+
/** Build the `OgcItemsRequest` object without executing it. */
|
|
500
|
+
build() {
|
|
501
|
+
const request = {
|
|
502
|
+
collectionId: this.collectionId,
|
|
503
|
+
};
|
|
504
|
+
if (this.limitValue !== undefined)
|
|
505
|
+
request.limit = this.limitValue;
|
|
506
|
+
if (this.offsetValue !== undefined)
|
|
507
|
+
request.offset = this.offsetValue;
|
|
508
|
+
if (this.bboxValue !== undefined)
|
|
509
|
+
request.bbox = this.bboxValue;
|
|
510
|
+
if (this.datetimeValue !== undefined)
|
|
511
|
+
request.datetime = this.datetimeValue;
|
|
512
|
+
if (this.filterValue !== undefined)
|
|
513
|
+
request.filter = this.filterValue;
|
|
514
|
+
if (this.idsValue !== undefined)
|
|
515
|
+
request.ids = this.idsValue;
|
|
516
|
+
if (this.propertiesValue !== undefined)
|
|
517
|
+
request.properties = this.propertiesValue;
|
|
518
|
+
if (this.sortbyValue !== undefined)
|
|
519
|
+
request.sortby = this.sortbyValue;
|
|
520
|
+
if (this.crsValue !== undefined)
|
|
521
|
+
request.crs = this.crsValue;
|
|
522
|
+
if (this.signalValue !== undefined)
|
|
523
|
+
request.signal = this.signalValue;
|
|
524
|
+
if (this.responseFormatValue !== undefined)
|
|
525
|
+
request.responseFormat = this.responseFormatValue;
|
|
526
|
+
return request;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Build the request and execute it via the bound client.
|
|
530
|
+
* Throws if the builder was created with `OgcQueryBuilder.from()` (no client).
|
|
531
|
+
*/
|
|
532
|
+
async run() {
|
|
533
|
+
if (!this.boundClient) {
|
|
534
|
+
throw new Error("OgcQueryBuilder.run() requires a bound client. Use OgcQueryBuilder.for(client, ...) or call .build() and pass to client.listOgcItems().");
|
|
535
|
+
}
|
|
536
|
+
return this.boundClient.listOgcItems(this.build());
|
|
537
|
+
}
|
|
538
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { EsriGeometryType, EsriSpatialRel, HonuaSpatialReference } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* A spatial filter fragment that can be spread into a `QueryFeaturesRequest`
|
|
4
|
+
* or applied via `QueryBuilder.geometry()` / `.geometryType()` / `.spatialRel()`.
|
|
5
|
+
*/
|
|
6
|
+
export interface SpatialFilter {
|
|
7
|
+
geometry: Record<string, unknown>;
|
|
8
|
+
geometryType: EsriGeometryType;
|
|
9
|
+
spatialRel?: EsriSpatialRel;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create an envelope (bounding box) spatial filter.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const req: QueryFeaturesRequest = {
|
|
17
|
+
* serviceId: "svc", layerId: 0,
|
|
18
|
+
* ...envelope(-118.5, 33.7, -117.5, 34.2),
|
|
19
|
+
* };
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function envelope(xmin: number, ymin: number, xmax: number, ymax: number, spatialReference?: HonuaSpatialReference): SpatialFilter;
|
|
23
|
+
/**
|
|
24
|
+
* Create a point spatial filter.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const req: QueryFeaturesRequest = {
|
|
29
|
+
* serviceId: "svc", layerId: 0,
|
|
30
|
+
* ...point(-118.24, 34.05),
|
|
31
|
+
* };
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function point(x: number, y: number, spatialReference?: HonuaSpatialReference): SpatialFilter;
|
|
35
|
+
/**
|
|
36
|
+
* Create a polygon spatial filter from an array of rings.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const req: QueryFeaturesRequest = {
|
|
41
|
+
* serviceId: "svc", layerId: 0,
|
|
42
|
+
* ...polygon([[[-118, 34], [-117, 34], [-117, 35], [-118, 35], [-118, 34]]]),
|
|
43
|
+
* };
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare function polygon(rings: number[][][], spatialReference?: HonuaSpatialReference): SpatialFilter;
|
|
47
|
+
/**
|
|
48
|
+
* Create an envelope spatial filter centered on a point, approximating a
|
|
49
|
+
* circular buffer as a bounding box.
|
|
50
|
+
*
|
|
51
|
+
* @param x - Center x coordinate
|
|
52
|
+
* @param y - Center y coordinate
|
|
53
|
+
* @param distance - Half-width of the envelope in coordinate units
|
|
54
|
+
* @param spatialReference - Optional spatial reference
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* // 0.5-degree bounding box around a point
|
|
59
|
+
* const req: QueryFeaturesRequest = {
|
|
60
|
+
* serviceId: "svc", layerId: 0,
|
|
61
|
+
* ...buffer(-118.24, 34.05, 0.5),
|
|
62
|
+
* };
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function buffer(x: number, y: number, distance: number, spatialReference?: HonuaSpatialReference): SpatialFilter;
|
|
66
|
+
/**
|
|
67
|
+
* Wrap an existing geometry with `esriSpatialRelIntersects`.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const filter = spatialIntersects({ xmin: -180, ymin: -90, xmax: 180, ymax: 90 });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function spatialIntersects(geometry: Record<string, unknown>): SpatialFilter;
|
|
75
|
+
/**
|
|
76
|
+
* Wrap an existing geometry with `esriSpatialRelContains`.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const filter = spatialContains({ rings: [[[-118, 34], [-117, 34], [-117, 35], [-118, 35], [-118, 34]]] });
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
export declare function spatialContains(geometry: Record<string, unknown>): SpatialFilter;
|
|
84
|
+
/**
|
|
85
|
+
* Wrap an existing geometry with `esriSpatialRelWithin`.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* const filter = spatialWithin({ rings: [[[-118, 34], [-117, 34], [-117, 35], [-118, 35], [-118, 34]]] });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function spatialWithin(geometry: Record<string, unknown>): SpatialFilter;
|
|
93
|
+
//# sourceMappingURL=spatial-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial-filter.d.ts","sourceRoot":"","sources":["../../../src/core/spatial-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE1F;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,gBAAgB,CAAC,EAAE,qBAAqB,GACvC,aAAa,CAQf;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,aAAa,CAQnG;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,aAAa,CAQpG;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,QAAQ,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,qBAAqB,GACvC,aAAa,CAEf;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,CAMlF;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,CAMhF;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,CAM9E"}
|