@feltmaps/js-sdk 1.11.0-next.0 → 1.11.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/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/{controller-m5hIgJCz.d.cts → controller-YE0Hpi6u.d.cts} +63 -178
- package/dist/{controller-m5hIgJCz.d.ts → controller-YE0Hpi6u.d.ts} +63 -178
- package/dist/controller-bundled.d.ts +63 -178
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +27 -153
- package/dist/handler.d.ts +27 -153
- package/dist/handler.js +1 -1
- package/package.json +1 -1
|
@@ -7096,35 +7096,21 @@ interface GetLayerPrecomputedCalculationParams extends z.infer<typeof GetLayerPr
|
|
|
7096
7096
|
gridConfig: GridConfig;
|
|
7097
7097
|
}
|
|
7098
7098
|
|
|
7099
|
-
/**
|
|
7100
|
-
* The spatial boundary for a raster statistic.
|
|
7101
|
-
*
|
|
7102
|
-
* Raster statistics accept everything a vector statistic accepts, and also accept
|
|
7103
|
-
* a line. A polygon or bounding box selects the pixels whose centres fall inside
|
|
7104
|
-
* it. A line is sampled along its length instead, so its statistics are weighted
|
|
7105
|
-
* by distance rather than by area.
|
|
7106
|
-
*
|
|
7107
|
-
* @group Stats
|
|
7108
|
-
*/
|
|
7109
|
-
type RasterGeometryFilter = GeometryFilter | LineStringGeometry | MultiLineStringGeometry;
|
|
7110
7099
|
declare const RasterAggregationMethodSchema: z.ZodEnum<["avg", "min", "max", "sum", "median", "stddev", "majority", "area"]>;
|
|
7111
7100
|
/**
|
|
7112
7101
|
* A statistic that can be calculated for a raster band.
|
|
7113
7102
|
*
|
|
7114
|
-
* `area` is the ground area of the selected pixels, in square metres.
|
|
7115
|
-
* is the most common value, and applies only to a band holding whole numbers.
|
|
7103
|
+
* `area` is the ground area of the selected pixels, in square metres.
|
|
7116
7104
|
*
|
|
7117
|
-
*
|
|
7118
|
-
* ground area for each pixel and a line only samples points. A request for a
|
|
7119
|
-
* statistic that the band or the boundary cannot answer throws.
|
|
7105
|
+
* `majority`, the most common value, needs a band holding whole numbers.
|
|
7120
7106
|
*
|
|
7121
7107
|
* @group Stats
|
|
7122
7108
|
*/
|
|
7123
7109
|
type RasterAggregationMethod = z.infer<typeof RasterAggregationMethodSchema>;
|
|
7124
7110
|
declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7125
7111
|
layerId: z.ZodString;
|
|
7126
|
-
|
|
7127
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.
|
|
7112
|
+
bandId: z.ZodString;
|
|
7113
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
7128
7114
|
type: z.ZodLiteral<"Polygon">;
|
|
7129
7115
|
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
7130
7116
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7142,25 +7128,7 @@ declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7142
7128
|
}, {
|
|
7143
7129
|
type: "MultiPolygon";
|
|
7144
7130
|
coordinates: [number, number][][][];
|
|
7145
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]
|
|
7146
|
-
type: z.ZodLiteral<"LineString">;
|
|
7147
|
-
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
7148
|
-
}, "strip", z.ZodTypeAny, {
|
|
7149
|
-
type: "LineString";
|
|
7150
|
-
coordinates: [number, number][];
|
|
7151
|
-
}, {
|
|
7152
|
-
type: "LineString";
|
|
7153
|
-
coordinates: [number, number][];
|
|
7154
|
-
}>, z.ZodObject<{
|
|
7155
|
-
type: z.ZodLiteral<"MultiLineString">;
|
|
7156
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
7157
|
-
}, "strip", z.ZodTypeAny, {
|
|
7158
|
-
type: "MultiLineString";
|
|
7159
|
-
coordinates: [number, number][][];
|
|
7160
|
-
}, {
|
|
7161
|
-
type: "MultiLineString";
|
|
7162
|
-
coordinates: [number, number][][];
|
|
7163
|
-
}>]>>;
|
|
7131
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
7164
7132
|
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
7165
7133
|
}, {
|
|
7166
7134
|
aggregation: z.ZodObject<{
|
|
@@ -7179,7 +7147,7 @@ declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7179
7147
|
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
7180
7148
|
percentiles?: number[] | undefined;
|
|
7181
7149
|
};
|
|
7182
|
-
|
|
7150
|
+
bandId: string;
|
|
7183
7151
|
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
7184
7152
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
7185
7153
|
type: "Polygon";
|
|
@@ -7187,12 +7155,6 @@ declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7187
7155
|
} | {
|
|
7188
7156
|
type: "MultiPolygon";
|
|
7189
7157
|
coordinates: [number, number][][][];
|
|
7190
|
-
} | {
|
|
7191
|
-
type: "LineString";
|
|
7192
|
-
coordinates: [number, number][];
|
|
7193
|
-
} | {
|
|
7194
|
-
type: "MultiLineString";
|
|
7195
|
-
coordinates: [number, number][][];
|
|
7196
7158
|
} | undefined;
|
|
7197
7159
|
}, {
|
|
7198
7160
|
layerId: string;
|
|
@@ -7200,7 +7162,7 @@ declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7200
7162
|
methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
|
|
7201
7163
|
percentiles?: number[] | undefined;
|
|
7202
7164
|
};
|
|
7203
|
-
|
|
7165
|
+
bandId: string;
|
|
7204
7166
|
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
7205
7167
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
7206
7168
|
type: "Polygon";
|
|
@@ -7208,12 +7170,6 @@ declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7208
7170
|
} | {
|
|
7209
7171
|
type: "MultiPolygon";
|
|
7210
7172
|
coordinates: [number, number][][][];
|
|
7211
|
-
} | {
|
|
7212
|
-
type: "LineString";
|
|
7213
|
-
coordinates: [number, number][];
|
|
7214
|
-
} | {
|
|
7215
|
-
type: "MultiLineString";
|
|
7216
|
-
coordinates: [number, number][][];
|
|
7217
7173
|
} | undefined;
|
|
7218
7174
|
}>;
|
|
7219
7175
|
/**
|
|
@@ -7224,16 +7180,15 @@ declare const GetRasterAggregatesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7224
7180
|
*/
|
|
7225
7181
|
interface GetRasterAggregatesParams<T extends RasterAggregationMethod> extends zInfer<typeof GetRasterAggregatesParamsSchema> {
|
|
7226
7182
|
/**
|
|
7227
|
-
* The ID of the band to calculate statistics for,
|
|
7228
|
-
*
|
|
7229
|
-
* Read the available band IDs from the `bands` on a raster layer's source.
|
|
7183
|
+
* The ID of the band to calculate statistics for, read from the `bands` on a
|
|
7184
|
+
* raster layer's source.
|
|
7230
7185
|
*/
|
|
7231
|
-
|
|
7186
|
+
bandId: string;
|
|
7232
7187
|
/**
|
|
7233
7188
|
* The spatial boundary for the pixels to include. Omit this to cover the whole
|
|
7234
7189
|
* raster.
|
|
7235
7190
|
*/
|
|
7236
|
-
boundary?:
|
|
7191
|
+
boundary?: GeometryFilter;
|
|
7237
7192
|
/**
|
|
7238
7193
|
* Filters on band values for the pixels to include, such as
|
|
7239
7194
|
* `["band:1", "gt", 100]`.
|
|
@@ -7298,8 +7253,8 @@ interface GetRasterAggregatesResult<T extends RasterAggregationMethod> {
|
|
|
7298
7253
|
}
|
|
7299
7254
|
declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7300
7255
|
layerId: z.ZodString;
|
|
7301
|
-
|
|
7302
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.
|
|
7256
|
+
bandId: z.ZodString;
|
|
7257
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
7303
7258
|
type: z.ZodLiteral<"Polygon">;
|
|
7304
7259
|
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
7305
7260
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7317,25 +7272,7 @@ declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
7317
7272
|
}, {
|
|
7318
7273
|
type: "MultiPolygon";
|
|
7319
7274
|
coordinates: [number, number][][][];
|
|
7320
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]
|
|
7321
|
-
type: z.ZodLiteral<"LineString">;
|
|
7322
|
-
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
7323
|
-
}, "strip", z.ZodTypeAny, {
|
|
7324
|
-
type: "LineString";
|
|
7325
|
-
coordinates: [number, number][];
|
|
7326
|
-
}, {
|
|
7327
|
-
type: "LineString";
|
|
7328
|
-
coordinates: [number, number][];
|
|
7329
|
-
}>, z.ZodObject<{
|
|
7330
|
-
type: z.ZodLiteral<"MultiLineString">;
|
|
7331
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
7332
|
-
}, "strip", z.ZodTypeAny, {
|
|
7333
|
-
type: "MultiLineString";
|
|
7334
|
-
coordinates: [number, number][][];
|
|
7335
|
-
}, {
|
|
7336
|
-
type: "MultiLineString";
|
|
7337
|
-
coordinates: [number, number][][];
|
|
7338
|
-
}>]>>;
|
|
7275
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
7339
7276
|
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
7340
7277
|
}, {
|
|
7341
7278
|
steps: z.ZodUnion<[z.ZodObject<{
|
|
@@ -7354,7 +7291,7 @@ declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
7354
7291
|
type: "equal-intervals";
|
|
7355
7292
|
count: number;
|
|
7356
7293
|
};
|
|
7357
|
-
|
|
7294
|
+
bandId: string;
|
|
7358
7295
|
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
7359
7296
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
7360
7297
|
type: "Polygon";
|
|
@@ -7362,12 +7299,6 @@ declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
7362
7299
|
} | {
|
|
7363
7300
|
type: "MultiPolygon";
|
|
7364
7301
|
coordinates: [number, number][][][];
|
|
7365
|
-
} | {
|
|
7366
|
-
type: "LineString";
|
|
7367
|
-
coordinates: [number, number][];
|
|
7368
|
-
} | {
|
|
7369
|
-
type: "MultiLineString";
|
|
7370
|
-
coordinates: [number, number][][];
|
|
7371
7302
|
} | undefined;
|
|
7372
7303
|
}, {
|
|
7373
7304
|
layerId: string;
|
|
@@ -7375,7 +7306,7 @@ declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
7375
7306
|
type: "equal-intervals";
|
|
7376
7307
|
count: number;
|
|
7377
7308
|
};
|
|
7378
|
-
|
|
7309
|
+
bandId: string;
|
|
7379
7310
|
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
7380
7311
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
7381
7312
|
type: "Polygon";
|
|
@@ -7383,12 +7314,6 @@ declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
7383
7314
|
} | {
|
|
7384
7315
|
type: "MultiPolygon";
|
|
7385
7316
|
coordinates: [number, number][][][];
|
|
7386
|
-
} | {
|
|
7387
|
-
type: "LineString";
|
|
7388
|
-
coordinates: [number, number][];
|
|
7389
|
-
} | {
|
|
7390
|
-
type: "MultiLineString";
|
|
7391
|
-
coordinates: [number, number][][];
|
|
7392
7317
|
} | undefined;
|
|
7393
7318
|
}>;
|
|
7394
7319
|
/**
|
|
@@ -7399,16 +7324,14 @@ declare const GetRasterHistogramParamsSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
7399
7324
|
*/
|
|
7400
7325
|
interface GetRasterHistogramParams extends zInfer<typeof GetRasterHistogramParamsSchema> {
|
|
7401
7326
|
/**
|
|
7402
|
-
* The ID of the band to bin,
|
|
7403
|
-
*
|
|
7404
|
-
* Read the available band IDs from the `bands` on a raster layer's source.
|
|
7327
|
+
* The ID of the band to bin, read from the `bands` on a raster layer's source.
|
|
7405
7328
|
*/
|
|
7406
|
-
|
|
7329
|
+
bandId: string;
|
|
7407
7330
|
/**
|
|
7408
7331
|
* The spatial boundary for the pixels to include. Omit this to cover the whole
|
|
7409
7332
|
* raster.
|
|
7410
7333
|
*/
|
|
7411
|
-
boundary?:
|
|
7334
|
+
boundary?: GeometryFilter;
|
|
7412
7335
|
/**
|
|
7413
7336
|
* Filters on band values for the pixels to include.
|
|
7414
7337
|
*/
|
|
@@ -7465,8 +7388,8 @@ interface GetRasterHistogramResult {
|
|
|
7465
7388
|
}
|
|
7466
7389
|
declare const GetRasterCategoriesParamsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7467
7390
|
layerId: z.ZodString;
|
|
7468
|
-
|
|
7469
|
-
boundary: z.ZodOptional<z.ZodUnion<[z.
|
|
7391
|
+
bandId: z.ZodString;
|
|
7392
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
7470
7393
|
type: z.ZodLiteral<"Polygon">;
|
|
7471
7394
|
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
7472
7395
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7484,31 +7407,13 @@ declare const GetRasterCategoriesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7484
7407
|
}, {
|
|
7485
7408
|
type: "MultiPolygon";
|
|
7486
7409
|
coordinates: [number, number][][][];
|
|
7487
|
-
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]
|
|
7488
|
-
type: z.ZodLiteral<"LineString">;
|
|
7489
|
-
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
7490
|
-
}, "strip", z.ZodTypeAny, {
|
|
7491
|
-
type: "LineString";
|
|
7492
|
-
coordinates: [number, number][];
|
|
7493
|
-
}, {
|
|
7494
|
-
type: "LineString";
|
|
7495
|
-
coordinates: [number, number][];
|
|
7496
|
-
}>, z.ZodObject<{
|
|
7497
|
-
type: z.ZodLiteral<"MultiLineString">;
|
|
7498
|
-
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
7499
|
-
}, "strip", z.ZodTypeAny, {
|
|
7500
|
-
type: "MultiLineString";
|
|
7501
|
-
coordinates: [number, number][][];
|
|
7502
|
-
}, {
|
|
7503
|
-
type: "MultiLineString";
|
|
7504
|
-
coordinates: [number, number][][];
|
|
7505
|
-
}>]>>;
|
|
7410
|
+
}>, z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">]>>;
|
|
7506
7411
|
filters: z.ZodOptional<z.ZodUnion<[z.ZodType<FilterTernary, z.ZodTypeDef, FilterTernary>, z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["in", "ni"]>, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>, "many">, z.ZodNull]>], null>, z.ZodTuple<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodNull]>], null>]>, z.ZodNull, z.ZodBoolean]>>;
|
|
7507
7412
|
}, {
|
|
7508
7413
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
7509
7414
|
}>, "strip", z.ZodTypeAny, {
|
|
7510
7415
|
layerId: string;
|
|
7511
|
-
|
|
7416
|
+
bandId: string;
|
|
7512
7417
|
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
7513
7418
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
7514
7419
|
type: "Polygon";
|
|
@@ -7516,17 +7421,11 @@ declare const GetRasterCategoriesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7516
7421
|
} | {
|
|
7517
7422
|
type: "MultiPolygon";
|
|
7518
7423
|
coordinates: [number, number][][][];
|
|
7519
|
-
} | {
|
|
7520
|
-
type: "LineString";
|
|
7521
|
-
coordinates: [number, number][];
|
|
7522
|
-
} | {
|
|
7523
|
-
type: "MultiLineString";
|
|
7524
|
-
coordinates: [number, number][][];
|
|
7525
7424
|
} | undefined;
|
|
7526
7425
|
limit?: number | undefined;
|
|
7527
7426
|
}, {
|
|
7528
7427
|
layerId: string;
|
|
7529
|
-
|
|
7428
|
+
bandId: string;
|
|
7530
7429
|
filters?: boolean | FilterTernary | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | null | undefined;
|
|
7531
7430
|
boundary?: [number, number, number, number] | [number, number][] | {
|
|
7532
7431
|
type: "Polygon";
|
|
@@ -7534,12 +7433,6 @@ declare const GetRasterCategoriesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7534
7433
|
} | {
|
|
7535
7434
|
type: "MultiPolygon";
|
|
7536
7435
|
coordinates: [number, number][][][];
|
|
7537
|
-
} | {
|
|
7538
|
-
type: "LineString";
|
|
7539
|
-
coordinates: [number, number][];
|
|
7540
|
-
} | {
|
|
7541
|
-
type: "MultiLineString";
|
|
7542
|
-
coordinates: [number, number][][];
|
|
7543
7436
|
} | undefined;
|
|
7544
7437
|
limit?: number | undefined;
|
|
7545
7438
|
}>;
|
|
@@ -7551,16 +7444,15 @@ declare const GetRasterCategoriesParamsSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7551
7444
|
*/
|
|
7552
7445
|
interface GetRasterCategoriesParams extends zInfer<typeof GetRasterCategoriesParamsSchema> {
|
|
7553
7446
|
/**
|
|
7554
|
-
* The ID of the band to count values for,
|
|
7555
|
-
*
|
|
7556
|
-
* Read the available band IDs from the `bands` on a raster layer's source.
|
|
7447
|
+
* The ID of the band to count values for, read from the `bands` on a raster
|
|
7448
|
+
* layer's source.
|
|
7557
7449
|
*/
|
|
7558
|
-
|
|
7450
|
+
bandId: string;
|
|
7559
7451
|
/**
|
|
7560
7452
|
* The spatial boundary for the pixels to include. Omit this to cover the whole
|
|
7561
7453
|
* raster.
|
|
7562
7454
|
*/
|
|
7563
|
-
boundary?:
|
|
7455
|
+
boundary?: GeometryFilter;
|
|
7564
7456
|
/**
|
|
7565
7457
|
* Filters on band values for the pixels to include.
|
|
7566
7458
|
*/
|
|
@@ -7620,7 +7512,7 @@ interface GetRasterCategoriesResult {
|
|
|
7620
7512
|
}
|
|
7621
7513
|
declare const GetRasterProfileParamsSchema: z.ZodObject<{
|
|
7622
7514
|
layerId: z.ZodString;
|
|
7623
|
-
|
|
7515
|
+
bandId: z.ZodString;
|
|
7624
7516
|
boundary: z.ZodUnion<[z.ZodObject<{
|
|
7625
7517
|
type: z.ZodLiteral<"LineString">;
|
|
7626
7518
|
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
@@ -7649,7 +7541,7 @@ declare const GetRasterProfileParamsSchema: z.ZodObject<{
|
|
|
7649
7541
|
type: "MultiLineString";
|
|
7650
7542
|
coordinates: [number, number][][];
|
|
7651
7543
|
};
|
|
7652
|
-
|
|
7544
|
+
bandId: string;
|
|
7653
7545
|
}, {
|
|
7654
7546
|
layerId: string;
|
|
7655
7547
|
boundary: {
|
|
@@ -7659,7 +7551,7 @@ declare const GetRasterProfileParamsSchema: z.ZodObject<{
|
|
|
7659
7551
|
type: "MultiLineString";
|
|
7660
7552
|
coordinates: [number, number][][];
|
|
7661
7553
|
};
|
|
7662
|
-
|
|
7554
|
+
bandId: string;
|
|
7663
7555
|
}>;
|
|
7664
7556
|
/**
|
|
7665
7557
|
* The parameters for sampling a raster band along a line, passed to the
|
|
@@ -7669,11 +7561,10 @@ declare const GetRasterProfileParamsSchema: z.ZodObject<{
|
|
|
7669
7561
|
*/
|
|
7670
7562
|
interface GetRasterProfileParams extends zInfer<typeof GetRasterProfileParamsSchema> {
|
|
7671
7563
|
/**
|
|
7672
|
-
* The ID of the band to sample,
|
|
7673
|
-
*
|
|
7674
|
-
* Read the available band IDs from the `bands` on a raster layer's source.
|
|
7564
|
+
* The ID of the band to sample, read from the `bands` on a raster layer's
|
|
7565
|
+
* source.
|
|
7675
7566
|
*/
|
|
7676
|
-
|
|
7567
|
+
bandId: string;
|
|
7677
7568
|
/**
|
|
7678
7569
|
* The line to sample the band along. The band is sampled at roughly one sample
|
|
7679
7570
|
* per pixel along the line's length.
|
|
@@ -7716,11 +7607,6 @@ interface GetRasterProfileResult {
|
|
|
7716
7607
|
* The samples, ordered from the line's start.
|
|
7717
7608
|
*/
|
|
7718
7609
|
samples: Array<RasterProfileSample>;
|
|
7719
|
-
/**
|
|
7720
|
-
* The mean distance between consecutive samples, in ground metres. Absent when
|
|
7721
|
-
* the line was too short to walk.
|
|
7722
|
-
*/
|
|
7723
|
-
spacingM?: number;
|
|
7724
7610
|
}
|
|
7725
7611
|
|
|
7726
7612
|
/**
|
|
@@ -8547,33 +8433,37 @@ interface LayersController {
|
|
|
8547
8433
|
*
|
|
8548
8434
|
* @remarks
|
|
8549
8435
|
* Summarizes the pixel values of one band of a raster layer. Omit the boundary
|
|
8550
|
-
* to summarize the whole raster, or pass a bounding box
|
|
8551
|
-
*
|
|
8552
|
-
*
|
|
8436
|
+
* to summarize the whole raster, or pass a bounding box or polygon to summarize
|
|
8437
|
+
* part of it. Filters restrict the summary to pixels whose band values match a
|
|
8438
|
+
* condition.
|
|
8553
8439
|
*
|
|
8554
8440
|
* @example
|
|
8555
8441
|
* ```typescript
|
|
8556
|
-
* //
|
|
8442
|
+
* // Band IDs come from the layer, so read them rather than writing them out
|
|
8443
|
+
* const layer = await felt.getLayer("elevation");
|
|
8444
|
+
* const bandId = layer.source.bands[0].id;
|
|
8445
|
+
*
|
|
8446
|
+
* // The elevation range of the whole raster, since no boundary is given
|
|
8557
8447
|
* const elevation = await felt.getRasterAggregates({
|
|
8558
|
-
* layerId:
|
|
8559
|
-
*
|
|
8448
|
+
* layerId: layer.id,
|
|
8449
|
+
* bandId,
|
|
8560
8450
|
* aggregation: { methods: ["min", "max", "avg"] },
|
|
8561
8451
|
* });
|
|
8562
8452
|
*
|
|
8563
8453
|
* // How much ground inside a parcel sits above 2,000 metres
|
|
8564
8454
|
* const highGround = await felt.getRasterAggregates({
|
|
8565
|
-
* layerId:
|
|
8566
|
-
*
|
|
8455
|
+
* layerId: layer.id,
|
|
8456
|
+
* bandId,
|
|
8567
8457
|
* aggregation: { methods: ["area"] },
|
|
8568
8458
|
* boundary: parcel,
|
|
8569
|
-
* filters: [
|
|
8459
|
+
* filters: [bandId, "gt", 2000],
|
|
8570
8460
|
* });
|
|
8571
8461
|
*
|
|
8572
|
-
* // The steepest tenth of
|
|
8462
|
+
* // The elevation that the steepest tenth of the raster sits above
|
|
8573
8463
|
* const steep = await felt.getRasterAggregates({
|
|
8574
|
-
* layerId:
|
|
8575
|
-
*
|
|
8576
|
-
* aggregation: { methods: [
|
|
8464
|
+
* layerId: layer.id,
|
|
8465
|
+
* bandId,
|
|
8466
|
+
* aggregation: { methods: [], percentiles: [90] },
|
|
8577
8467
|
* });
|
|
8578
8468
|
* ```
|
|
8579
8469
|
*/
|
|
@@ -8586,26 +8476,21 @@ interface LayersController {
|
|
|
8586
8476
|
* You can pass a number of equal intervals, or the bin edges themselves when you
|
|
8587
8477
|
* already know how you want the values divided.
|
|
8588
8478
|
*
|
|
8589
|
-
* As with the vector histogram, filters apply in two ways. The top-level
|
|
8590
|
-
* boundary and filters decide both where the bins fall and what gets counted in
|
|
8591
|
-
* them. Filters in `values` only change what gets counted, so two histograms can
|
|
8592
|
-
* be compared against identical bins.
|
|
8593
|
-
*
|
|
8594
8479
|
* @example
|
|
8595
8480
|
* ```typescript
|
|
8596
|
-
* //
|
|
8481
|
+
* // The whole raster's elevation distribution in ten equal intervals
|
|
8597
8482
|
* const elevation = await felt.getRasterHistogramData({
|
|
8598
|
-
* layerId:
|
|
8599
|
-
*
|
|
8483
|
+
* layerId: layer.id,
|
|
8484
|
+
* bandId,
|
|
8600
8485
|
* steps: { type: "equal-intervals", count: 10 },
|
|
8601
8486
|
* });
|
|
8602
8487
|
*
|
|
8603
|
-
* // The same bins, counting only pixels inside a watershed
|
|
8488
|
+
* // The same bins, counting only the pixels inside a watershed
|
|
8604
8489
|
* const inWatershed = await felt.getRasterHistogramData({
|
|
8605
|
-
* layerId:
|
|
8606
|
-
*
|
|
8490
|
+
* layerId: layer.id,
|
|
8491
|
+
* bandId,
|
|
8607
8492
|
* steps: [0, 500, 1000, 1500, 2000, 3000],
|
|
8608
|
-
*
|
|
8493
|
+
* boundary: watershed,
|
|
8609
8494
|
* });
|
|
8610
8495
|
* ```
|
|
8611
8496
|
*/
|
|
@@ -8623,8 +8508,8 @@ interface LayersController {
|
|
|
8623
8508
|
* ```typescript
|
|
8624
8509
|
* // How much of a county each land cover class covers
|
|
8625
8510
|
* const landCover = await felt.getRasterCategoryData({
|
|
8626
|
-
* layerId:
|
|
8627
|
-
*
|
|
8511
|
+
* layerId: layer.id,
|
|
8512
|
+
* bandId,
|
|
8628
8513
|
* boundary: county,
|
|
8629
8514
|
* limit: 10,
|
|
8630
8515
|
* });
|
|
@@ -8642,8 +8527,8 @@ interface LayersController {
|
|
|
8642
8527
|
* @example
|
|
8643
8528
|
* ```typescript
|
|
8644
8529
|
* const profile = await felt.getRasterProfile({
|
|
8645
|
-
* layerId:
|
|
8646
|
-
*
|
|
8530
|
+
* layerId: layer.id,
|
|
8531
|
+
* bandId,
|
|
8647
8532
|
* boundary: route,
|
|
8648
8533
|
* });
|
|
8649
8534
|
* ```
|
|
@@ -15474,4 +15359,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
|
|
|
15474
15359
|
iframe: HTMLIFrameElement | null;
|
|
15475
15360
|
}
|
|
15476
15361
|
|
|
15477
|
-
export { type GeoJsonDataVectorSource as $, type PlaceElementRead as A, type BasemapsController as B, type ColorBasemap as C, type PlaceElementUpdate as D, type Element as E, type FeltController as F, type GetElementGroupsConstraint as G, type HighlighterElementCreate as H, type ImageElementCreate as I, type PolygonElementCreate as J, type PolygonElementRead as K, type LinkElementRead as L, type MarkerElementCreate as M, type NoteElementCreate as N, type PolygonElementUpdate as O, type PathElementCreate as P, type TextElementRead as Q, type TextElementUpdate as R, type ElementsController as S, type TextElementCreate as T, type UiControlsOptions as U, type ViewportCenterZoom as V, type MapInteractionEvent as W, type InteractionsController as X, type CreateLayersFromGeoJsonParams as Y, type DataOnlyLayer as Z, type FeltTiledVectorSource as _, type Basemap as a, type
|
|
15362
|
+
export { type GeoJsonDataVectorSource as $, type PlaceElementRead as A, type BasemapsController as B, type ColorBasemap as C, type PlaceElementUpdate as D, type Element as E, type FeltController as F, type GetElementGroupsConstraint as G, type HighlighterElementCreate as H, type ImageElementCreate as I, type PolygonElementCreate as J, type PolygonElementRead as K, type LinkElementRead as L, type MarkerElementCreate as M, type NoteElementCreate as N, type PolygonElementUpdate as O, type PathElementCreate as P, type TextElementRead as Q, type TextElementUpdate as R, type ElementsController as S, type TextElementCreate as T, type UiControlsOptions as U, type ViewportCenterZoom as V, type MapInteractionEvent as W, type InteractionsController as X, type CreateLayersFromGeoJsonParams as Y, type DataOnlyLayer as Z, type FeltTiledVectorSource as _, type Basemap as a, type RasterHistogramBin as a$, type GeoJsonFileVectorSource as a0, type GeoJsonUrlVectorSource as a1, type GetLayerGroupsConstraint as a2, type GetLayersConstraint as a3, type GetRenderedFeaturesConstraint as a4, type Layer as a5, type LayerChangeCallbackParams as a6, type LayerCommon as a7, type LayerGroup as a8, type LayerGroupChangeCallbackParams as a9, type LayerBoundaries as aA, type LayerFilters as aB, type AggregatedGridConfig as aC, type AggregationConfig as aD, type AggregationMethod as aE, type CountGridConfig as aF, type GetLayerCalculationParams as aG, type GetLayerCategoriesGroup as aH, type GetLayerCategoriesParams as aI, type GetLayerHistogramBin as aJ, type GetLayerHistogramParams as aK, type GetLayerPrecomputedCalculationParams as aL, type GridConfig as aM, type GridType as aN, type MultiAggregationConfig as aO, type PrecomputedAggregationMethod as aP, type ValueConfiguration as aQ, type GetRasterAggregatesParams as aR, type GetRasterAggregatesResult as aS, type GetRasterCategoriesParams as aT, type GetRasterCategoriesResult as aU, type GetRasterHistogramParams as aV, type GetRasterHistogramResult as aW, type GetRasterProfileParams as aX, type GetRasterProfileResult as aY, type RasterAggregationMethod as aZ, type RasterCategory as a_, type LayerProcessingStatus as aa, type LegendDisplay as ab, type LegendItem as ac, type LegendItemChangeCallbackParams as ad, type LegendItemIdentifier as ae, type LegendItemsConstraint as af, type RasterBand as ag, type RasterLayer as ah, type RasterLayerSource as ai, type UpdateLayerParams as aj, type VectorLayer as ak, type LayerFeature as al, type RasterValue as am, type LayerSchema as an, type LayerSchemaAttribute as ao, type LayerSchemaBooleanAttribute as ap, type LayerSchemaCommonAttribute as aq, type LayerSchemaDateAttribute as ar, type LayerSchemaDateTimeAttribute as as, type LayerSchemaNumericAttribute as at, type LayerSchemaTextAttribute as au, type FilterExpression as av, type FilterLogicGate as aw, type FilterTernary as ax, type Filters as ay, type GeometryFilter as az, type ColorBasemapInput as b, type UITextElementUpdate as b$, type RasterPercentile as b0, type RasterProfileSample as b1, type LayersController as b2, type MapDetails as b3, type MiscController as b4, type ElementGroupNode as b5, type ElementNode as b6, type EntityNode as b7, type FeatureNode as b8, type FeatureSelection as b9, type PinToolSettings as bA, type PlaceFrame as bB, type PlaceSymbol as bC, type PolygonToolSettings as bD, type RouteToolSettings as bE, type TextToolSettings as bF, type ToolSettingsChangeEvent as bG, type ToolSettingsMap as bH, type ToolType as bI, type ToolsController as bJ, type CreateActionTriggerParams as bK, type CreateFeatureActionParams as bL, type CreateOrUpdatePanelParams as bM, type CreatePanelElementsParams as bN, type DeletePanelElementsParams as bO, type UiOnMapInteractionsOptions as bP, type UpdateActionTriggerParams as bQ, type UpdateFeatureActionParams as bR, type UpdatePanelElementsParams as bS, type PlacementForUIElement as bT, type UIPanel as bU, type UIPanelCreateOrUpdate as bV, type UIButtonElement as bW, type UIButtonElementCreate as bX, type UIButtonElementUpdate as bY, type UITextElement as bZ, type UITextElementCreate as b_, type LayerGroupNode as ba, type LayerNode as bb, type SelectionController as bc, type FeltBoundary as bd, type FeltZoom as be, type GeoJsonFeature as bf, type GeoJsonGeometry as bg, type GeoJsonProperties as bh, type LatLng as bi, type LineStringGeometry as bj, type LngLatTuple as bk, type MultiLineStringGeometry as bl, type MultiPointGeometry as bm, type MultiPolygonGeometry as bn, type PointGeometry as bo, type PolygonGeometry as bp, type SetVisibilityRequest as bq, type SortConfig as br, type SortDirection as bs, type CircleToolSettings as bt, type ConfigurableToolType as bu, type HighlighterToolSettings as bv, type InputToolSettings as bw, type LineToolSettings as bx, type MarkerToolSettings as by, type NoteToolSettings as bz, type CustomTileBasemap as c, type UIFlexibleSpaceElement as c0, type UIFlexibleSpaceElementCreate as c1, type UIFlexibleSpaceElementUpdate as c2, type UIDividerElement as c3, type UIDividerElementCreate as c4, type UIDividerElementUpdate as c5, type UITextInputElement as c6, type UITextInputElementCreate as c7, type UITextInputElementUpdate as c8, type UISelectElement as c9, type UIFeatureActionCreate as cA, type UiController as cB, type SetViewportCenterZoomParams as cC, type ViewportConstraints as cD, type ViewportFitBoundsParams as cE, type ViewportState as cF, type ViewportController as cG, type UnwrapPromise as cH, uiActionTriggerSchema as cI, uiFeatureActionSchema as cJ, type UIPanelElementCreateClonable as cK, uiPanelCreateSchema as cL, type UIButtonElementCreateClonable as cM, type MakeClonableSchema as cN, type UIButtonRowElementCreateClonable as cO, type PromiseOrNot as cP, type UnionToIntersection as cQ, type UISelectElementCreate as ca, type UISelectElementUpdate as cb, type UIPanelElement as cc, type UIPanelElementCreate as cd, type UIPanelElementUpdate as ce, type UIGridContainerElement as cf, type UIGridContainerElementCreate as cg, type UIGridContainerElementUpdate as ch, type UIButtonRowElement as ci, type UIButtonRowElementCreate as cj, type UIButtonRowElementUpdate as ck, type UICheckboxGroupElement as cl, type UICheckboxGroupElementCreate as cm, type UICheckboxGroupElementUpdate as cn, type UIRadioGroupElement as co, type UIRadioGroupElementCreate as cp, type UIRadioGroupElementUpdate as cq, type UIToggleGroupElement as cr, type UIToggleGroupElementCreate as cs, type UIToggleGroupElementUpdate as ct, type UIIframeElement as cu, type UIIframeElementCreate as cv, type UIIframeElementUpdate as cw, type UIControlElementOption as cx, type UIActionTriggerCreate as cy, type UIFeatureAction as cz, type CustomTileBasemapInput as d, type FeltBasemap as e, type CircleElementCreate as f, type CircleElementRead as g, type CircleElementUpdate as h, type ElementChangeCallbackParams as i, type ElementCreate as j, type ElementGroup as k, type ElementGroupChangeCallbackParams as l, type ElementUpdate as m, type GetElementsConstraint as n, type HighlighterElementRead as o, type HighlighterElementUpdate as p, type ImageElementRead as q, type ImageElementUpdate as r, type MarkerElementRead as s, type MarkerElementUpdate as t, type NoteElementRead as u, type NoteElementUpdate as v, type PathElementRead as w, type PathElementUpdate as x, type PlaceElementCreate as y, type zInfer as z };
|