@feltmaps/js-sdk 1.11.0-next.0 → 1.11.0-next.1

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.
@@ -8204,35 +8204,21 @@ interface GetLayerPrecomputedCalculationParams extends TypeOf<typeof GetLayerPre
8204
8204
  gridConfig: GridConfig;
8205
8205
  }
8206
8206
 
8207
- /**
8208
- * The spatial boundary for a raster statistic.
8209
- *
8210
- * Raster statistics accept everything a vector statistic accepts, and also accept
8211
- * a line. A polygon or bounding box selects the pixels whose centres fall inside
8212
- * it. A line is sampled along its length instead, so its statistics are weighted
8213
- * by distance rather than by area.
8214
- *
8215
- * @group Stats
8216
- */
8217
- type RasterGeometryFilter = GeometryFilter | LineStringGeometry | MultiLineStringGeometry;
8218
8207
  declare const RasterAggregationMethodSchema: ZodEnum<["avg", "min", "max", "sum", "median", "stddev", "majority", "area"]>;
8219
8208
  /**
8220
8209
  * A statistic that can be calculated for a raster band.
8221
8210
  *
8222
- * `area` is the ground area of the selected pixels, in square metres. `majority`
8223
- * is the most common value, and applies only to a band holding whole numbers.
8211
+ * `area` is the ground area of the selected pixels, in square metres.
8224
8212
  *
8225
- * Neither `sum` nor `area` is available for a line boundary, because both need a
8226
- * ground area for each pixel and a line only samples points. A request for a
8227
- * statistic that the band or the boundary cannot answer throws.
8213
+ * `majority`, the most common value, needs a band holding whole numbers.
8228
8214
  *
8229
8215
  * @group Stats
8230
8216
  */
8231
8217
  type RasterAggregationMethod = TypeOf<typeof RasterAggregationMethodSchema>;
8232
8218
  declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<{
8233
8219
  layerId: ZodString;
8234
- band: ZodString;
8235
- boundary: ZodOptional<ZodUnion<[ZodUnion<[ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>, ZodObject<{
8220
+ bandId: ZodString;
8221
+ boundary: ZodOptional<ZodUnion<[ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>, ZodObject<{
8236
8222
  type: ZodLiteral<"Polygon">;
8237
8223
  coordinates: ZodArray<ZodEffects<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
8238
8224
  }, "strip", ZodTypeAny, {
@@ -8250,25 +8236,7 @@ declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<
8250
8236
  }, {
8251
8237
  type: "MultiPolygon";
8252
8238
  coordinates: [number, number][][][];
8253
- }>, ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">]>, ZodObject<{
8254
- type: ZodLiteral<"LineString">;
8255
- coordinates: ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">;
8256
- }, "strip", ZodTypeAny, {
8257
- type: "LineString";
8258
- coordinates: [number, number][];
8259
- }, {
8260
- type: "LineString";
8261
- coordinates: [number, number][];
8262
- }>, ZodObject<{
8263
- type: ZodLiteral<"MultiLineString">;
8264
- coordinates: ZodArray<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">, "many">;
8265
- }, "strip", ZodTypeAny, {
8266
- type: "MultiLineString";
8267
- coordinates: [number, number][][];
8268
- }, {
8269
- type: "MultiLineString";
8270
- coordinates: [number, number][][];
8271
- }>]>>;
8239
+ }>, ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">]>>;
8272
8240
  filters: ZodOptional<ZodUnion<[ZodType<FilterTernary, ZodTypeDef, FilterTernary>, ZodUnion<[ZodTuple<[ZodUnion<[ZodString, ZodNull]>, ZodEnum<["in", "ni"]>, ZodUnion<[ZodArray<ZodUnion<[ZodNumber, ZodString, ZodBoolean, ZodNull]>, "many">, ZodNull]>], null>, ZodTuple<[ZodUnion<[ZodString, ZodNull]>, ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, ZodUnion<[ZodNumber, ZodString, ZodBoolean, ZodNull]>], null>]>, ZodNull, ZodBoolean]>>;
8273
8241
  }, {
8274
8242
  aggregation: ZodObject<{
@@ -8287,7 +8255,7 @@ declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<
8287
8255
  methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
8288
8256
  percentiles?: number[] | undefined;
8289
8257
  };
8290
- band: string;
8258
+ bandId: string;
8291
8259
  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;
8292
8260
  boundary?: [number, number, number, number] | [number, number][] | {
8293
8261
  type: "Polygon";
@@ -8295,12 +8263,6 @@ declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<
8295
8263
  } | {
8296
8264
  type: "MultiPolygon";
8297
8265
  coordinates: [number, number][][][];
8298
- } | {
8299
- type: "LineString";
8300
- coordinates: [number, number][];
8301
- } | {
8302
- type: "MultiLineString";
8303
- coordinates: [number, number][][];
8304
8266
  } | undefined;
8305
8267
  }, {
8306
8268
  layerId: string;
@@ -8308,7 +8270,7 @@ declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<
8308
8270
  methods: ("avg" | "max" | "min" | "sum" | "median" | "stddev" | "majority" | "area")[];
8309
8271
  percentiles?: number[] | undefined;
8310
8272
  };
8311
- band: string;
8273
+ bandId: string;
8312
8274
  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;
8313
8275
  boundary?: [number, number, number, number] | [number, number][] | {
8314
8276
  type: "Polygon";
@@ -8316,12 +8278,6 @@ declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<
8316
8278
  } | {
8317
8279
  type: "MultiPolygon";
8318
8280
  coordinates: [number, number][][][];
8319
- } | {
8320
- type: "LineString";
8321
- coordinates: [number, number][];
8322
- } | {
8323
- type: "MultiLineString";
8324
- coordinates: [number, number][][];
8325
8281
  } | undefined;
8326
8282
  }>;
8327
8283
  /**
@@ -8332,16 +8288,15 @@ declare const GetRasterAggregatesParamsSchema: ZodObject<objectUtil.extendShape<
8332
8288
  */
8333
8289
  interface GetRasterAggregatesParams<T extends RasterAggregationMethod> extends zInfer<typeof GetRasterAggregatesParamsSchema> {
8334
8290
  /**
8335
- * The ID of the band to calculate statistics for, such as `"band:1"`.
8336
- *
8337
- * Read the available band IDs from the `bands` on a raster layer's source.
8291
+ * The ID of the band to calculate statistics for, read from the `bands` on a
8292
+ * raster layer's source.
8338
8293
  */
8339
- band: string;
8294
+ bandId: string;
8340
8295
  /**
8341
8296
  * The spatial boundary for the pixels to include. Omit this to cover the whole
8342
8297
  * raster.
8343
8298
  */
8344
- boundary?: RasterGeometryFilter;
8299
+ boundary?: GeometryFilter;
8345
8300
  /**
8346
8301
  * Filters on band values for the pixels to include, such as
8347
8302
  * `["band:1", "gt", 100]`.
@@ -8406,8 +8361,8 @@ interface GetRasterAggregatesResult<T extends RasterAggregationMethod> {
8406
8361
  }
8407
8362
  declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8408
8363
  layerId: ZodString;
8409
- band: ZodString;
8410
- boundary: ZodOptional<ZodUnion<[ZodUnion<[ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>, ZodObject<{
8364
+ bandId: ZodString;
8365
+ boundary: ZodOptional<ZodUnion<[ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>, ZodObject<{
8411
8366
  type: ZodLiteral<"Polygon">;
8412
8367
  coordinates: ZodArray<ZodEffects<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
8413
8368
  }, "strip", ZodTypeAny, {
@@ -8425,25 +8380,7 @@ declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8425
8380
  }, {
8426
8381
  type: "MultiPolygon";
8427
8382
  coordinates: [number, number][][][];
8428
- }>, ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">]>, ZodObject<{
8429
- type: ZodLiteral<"LineString">;
8430
- coordinates: ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">;
8431
- }, "strip", ZodTypeAny, {
8432
- type: "LineString";
8433
- coordinates: [number, number][];
8434
- }, {
8435
- type: "LineString";
8436
- coordinates: [number, number][];
8437
- }>, ZodObject<{
8438
- type: ZodLiteral<"MultiLineString">;
8439
- coordinates: ZodArray<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">, "many">;
8440
- }, "strip", ZodTypeAny, {
8441
- type: "MultiLineString";
8442
- coordinates: [number, number][][];
8443
- }, {
8444
- type: "MultiLineString";
8445
- coordinates: [number, number][][];
8446
- }>]>>;
8383
+ }>, ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">]>>;
8447
8384
  filters: ZodOptional<ZodUnion<[ZodType<FilterTernary, ZodTypeDef, FilterTernary>, ZodUnion<[ZodTuple<[ZodUnion<[ZodString, ZodNull]>, ZodEnum<["in", "ni"]>, ZodUnion<[ZodArray<ZodUnion<[ZodNumber, ZodString, ZodBoolean, ZodNull]>, "many">, ZodNull]>], null>, ZodTuple<[ZodUnion<[ZodString, ZodNull]>, ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, ZodUnion<[ZodNumber, ZodString, ZodBoolean, ZodNull]>], null>]>, ZodNull, ZodBoolean]>>;
8448
8385
  }, {
8449
8386
  steps: ZodUnion<[ZodObject<{
@@ -8462,7 +8399,7 @@ declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8462
8399
  type: "equal-intervals";
8463
8400
  count: number;
8464
8401
  };
8465
- band: string;
8402
+ bandId: string;
8466
8403
  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;
8467
8404
  boundary?: [number, number, number, number] | [number, number][] | {
8468
8405
  type: "Polygon";
@@ -8470,12 +8407,6 @@ declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8470
8407
  } | {
8471
8408
  type: "MultiPolygon";
8472
8409
  coordinates: [number, number][][][];
8473
- } | {
8474
- type: "LineString";
8475
- coordinates: [number, number][];
8476
- } | {
8477
- type: "MultiLineString";
8478
- coordinates: [number, number][][];
8479
8410
  } | undefined;
8480
8411
  }, {
8481
8412
  layerId: string;
@@ -8483,7 +8414,7 @@ declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8483
8414
  type: "equal-intervals";
8484
8415
  count: number;
8485
8416
  };
8486
- band: string;
8417
+ bandId: string;
8487
8418
  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;
8488
8419
  boundary?: [number, number, number, number] | [number, number][] | {
8489
8420
  type: "Polygon";
@@ -8491,12 +8422,6 @@ declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8491
8422
  } | {
8492
8423
  type: "MultiPolygon";
8493
8424
  coordinates: [number, number][][][];
8494
- } | {
8495
- type: "LineString";
8496
- coordinates: [number, number][];
8497
- } | {
8498
- type: "MultiLineString";
8499
- coordinates: [number, number][][];
8500
8425
  } | undefined;
8501
8426
  }>;
8502
8427
  /**
@@ -8507,16 +8432,14 @@ declare const GetRasterHistogramParamsSchema: ZodObject<objectUtil.extendShape<{
8507
8432
  */
8508
8433
  interface GetRasterHistogramParams extends zInfer<typeof GetRasterHistogramParamsSchema> {
8509
8434
  /**
8510
- * The ID of the band to bin, such as `"band:1"`.
8511
- *
8512
- * Read the available band IDs from the `bands` on a raster layer's source.
8435
+ * The ID of the band to bin, read from the `bands` on a raster layer's source.
8513
8436
  */
8514
- band: string;
8437
+ bandId: string;
8515
8438
  /**
8516
8439
  * The spatial boundary for the pixels to include. Omit this to cover the whole
8517
8440
  * raster.
8518
8441
  */
8519
- boundary?: RasterGeometryFilter;
8442
+ boundary?: GeometryFilter;
8520
8443
  /**
8521
8444
  * Filters on band values for the pixels to include.
8522
8445
  */
@@ -8573,8 +8496,8 @@ interface GetRasterHistogramResult {
8573
8496
  }
8574
8497
  declare const GetRasterCategoriesParamsSchema: ZodObject<objectUtil.extendShape<{
8575
8498
  layerId: ZodString;
8576
- band: ZodString;
8577
- boundary: ZodOptional<ZodUnion<[ZodUnion<[ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>, ZodObject<{
8499
+ bandId: ZodString;
8500
+ boundary: ZodOptional<ZodUnion<[ZodTuple<[ZodNumber, ZodNumber, ZodNumber, ZodNumber], null>, ZodObject<{
8578
8501
  type: ZodLiteral<"Polygon">;
8579
8502
  coordinates: ZodArray<ZodEffects<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
8580
8503
  }, "strip", ZodTypeAny, {
@@ -8592,31 +8515,13 @@ declare const GetRasterCategoriesParamsSchema: ZodObject<objectUtil.extendShape<
8592
8515
  }, {
8593
8516
  type: "MultiPolygon";
8594
8517
  coordinates: [number, number][][][];
8595
- }>, ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">]>, ZodObject<{
8596
- type: ZodLiteral<"LineString">;
8597
- coordinates: ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">;
8598
- }, "strip", ZodTypeAny, {
8599
- type: "LineString";
8600
- coordinates: [number, number][];
8601
- }, {
8602
- type: "LineString";
8603
- coordinates: [number, number][];
8604
- }>, ZodObject<{
8605
- type: ZodLiteral<"MultiLineString">;
8606
- coordinates: ZodArray<ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">, "many">;
8607
- }, "strip", ZodTypeAny, {
8608
- type: "MultiLineString";
8609
- coordinates: [number, number][][];
8610
- }, {
8611
- type: "MultiLineString";
8612
- coordinates: [number, number][][];
8613
- }>]>>;
8518
+ }>, ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">]>>;
8614
8519
  filters: ZodOptional<ZodUnion<[ZodType<FilterTernary, ZodTypeDef, FilterTernary>, ZodUnion<[ZodTuple<[ZodUnion<[ZodString, ZodNull]>, ZodEnum<["in", "ni"]>, ZodUnion<[ZodArray<ZodUnion<[ZodNumber, ZodString, ZodBoolean, ZodNull]>, "many">, ZodNull]>], null>, ZodTuple<[ZodUnion<[ZodString, ZodNull]>, ZodEnum<["lt", "gt", "le", "ge", "eq", "ne", "cn", "nc", "is", "isnt"]>, ZodUnion<[ZodNumber, ZodString, ZodBoolean, ZodNull]>], null>]>, ZodNull, ZodBoolean]>>;
8615
8520
  }, {
8616
8521
  limit: ZodOptional<ZodNumber>;
8617
8522
  }>, "strip", ZodTypeAny, {
8618
8523
  layerId: string;
8619
- band: string;
8524
+ bandId: string;
8620
8525
  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;
8621
8526
  boundary?: [number, number, number, number] | [number, number][] | {
8622
8527
  type: "Polygon";
@@ -8624,17 +8529,11 @@ declare const GetRasterCategoriesParamsSchema: ZodObject<objectUtil.extendShape<
8624
8529
  } | {
8625
8530
  type: "MultiPolygon";
8626
8531
  coordinates: [number, number][][][];
8627
- } | {
8628
- type: "LineString";
8629
- coordinates: [number, number][];
8630
- } | {
8631
- type: "MultiLineString";
8632
- coordinates: [number, number][][];
8633
8532
  } | undefined;
8634
8533
  limit?: number | undefined;
8635
8534
  }, {
8636
8535
  layerId: string;
8637
- band: string;
8536
+ bandId: string;
8638
8537
  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;
8639
8538
  boundary?: [number, number, number, number] | [number, number][] | {
8640
8539
  type: "Polygon";
@@ -8642,12 +8541,6 @@ declare const GetRasterCategoriesParamsSchema: ZodObject<objectUtil.extendShape<
8642
8541
  } | {
8643
8542
  type: "MultiPolygon";
8644
8543
  coordinates: [number, number][][][];
8645
- } | {
8646
- type: "LineString";
8647
- coordinates: [number, number][];
8648
- } | {
8649
- type: "MultiLineString";
8650
- coordinates: [number, number][][];
8651
8544
  } | undefined;
8652
8545
  limit?: number | undefined;
8653
8546
  }>;
@@ -8659,16 +8552,15 @@ declare const GetRasterCategoriesParamsSchema: ZodObject<objectUtil.extendShape<
8659
8552
  */
8660
8553
  interface GetRasterCategoriesParams extends zInfer<typeof GetRasterCategoriesParamsSchema> {
8661
8554
  /**
8662
- * The ID of the band to count values for, such as `"band:1"`.
8663
- *
8664
- * Read the available band IDs from the `bands` on a raster layer's source.
8555
+ * The ID of the band to count values for, read from the `bands` on a raster
8556
+ * layer's source.
8665
8557
  */
8666
- band: string;
8558
+ bandId: string;
8667
8559
  /**
8668
8560
  * The spatial boundary for the pixels to include. Omit this to cover the whole
8669
8561
  * raster.
8670
8562
  */
8671
- boundary?: RasterGeometryFilter;
8563
+ boundary?: GeometryFilter;
8672
8564
  /**
8673
8565
  * Filters on band values for the pixels to include.
8674
8566
  */
@@ -8728,7 +8620,7 @@ interface GetRasterCategoriesResult {
8728
8620
  }
8729
8621
  declare const GetRasterProfileParamsSchema: ZodObject<{
8730
8622
  layerId: ZodString;
8731
- band: ZodString;
8623
+ bandId: ZodString;
8732
8624
  boundary: ZodUnion<[ZodObject<{
8733
8625
  type: ZodLiteral<"LineString">;
8734
8626
  coordinates: ZodArray<ZodTuple<[ZodNumber, ZodNumber], null>, "many">;
@@ -8757,7 +8649,7 @@ declare const GetRasterProfileParamsSchema: ZodObject<{
8757
8649
  type: "MultiLineString";
8758
8650
  coordinates: [number, number][][];
8759
8651
  };
8760
- band: string;
8652
+ bandId: string;
8761
8653
  }, {
8762
8654
  layerId: string;
8763
8655
  boundary: {
@@ -8767,7 +8659,7 @@ declare const GetRasterProfileParamsSchema: ZodObject<{
8767
8659
  type: "MultiLineString";
8768
8660
  coordinates: [number, number][][];
8769
8661
  };
8770
- band: string;
8662
+ bandId: string;
8771
8663
  }>;
8772
8664
  /**
8773
8665
  * The parameters for sampling a raster band along a line, passed to the
@@ -8777,11 +8669,10 @@ declare const GetRasterProfileParamsSchema: ZodObject<{
8777
8669
  */
8778
8670
  interface GetRasterProfileParams extends zInfer<typeof GetRasterProfileParamsSchema> {
8779
8671
  /**
8780
- * The ID of the band to sample, such as `"band:1"`.
8781
- *
8782
- * Read the available band IDs from the `bands` on a raster layer's source.
8672
+ * The ID of the band to sample, read from the `bands` on a raster layer's
8673
+ * source.
8783
8674
  */
8784
- band: string;
8675
+ bandId: string;
8785
8676
  /**
8786
8677
  * The line to sample the band along. The band is sampled at roughly one sample
8787
8678
  * per pixel along the line's length.
@@ -8824,11 +8715,6 @@ interface GetRasterProfileResult {
8824
8715
  * The samples, ordered from the line's start.
8825
8716
  */
8826
8717
  samples: Array<RasterProfileSample>;
8827
- /**
8828
- * The mean distance between consecutive samples, in ground metres. Absent when
8829
- * the line was too short to walk.
8830
- */
8831
- spacingM?: number;
8832
8718
  }
8833
8719
 
8834
8720
  /**
@@ -9655,33 +9541,37 @@ interface LayersController {
9655
9541
  *
9656
9542
  * @remarks
9657
9543
  * Summarizes the pixel values of one band of a raster layer. Omit the boundary
9658
- * to summarize the whole raster, or pass a bounding box, a polygon, or a line to
9659
- * summarize part of it. Filters restrict the summary to pixels whose band values
9660
- * match a condition.
9544
+ * to summarize the whole raster, or pass a bounding box or polygon to summarize
9545
+ * part of it. Filters restrict the summary to pixels whose band values match a
9546
+ * condition.
9661
9547
  *
9662
9548
  * @example
9663
9549
  * ```typescript
9664
- * // The elevation range of a whole raster
9550
+ * // Band IDs come from the layer, so read them rather than writing them out
9551
+ * const layer = await felt.getLayer("elevation");
9552
+ * const bandId = layer.source.bands[0].id;
9553
+ *
9554
+ * // The elevation range of the whole raster, since no boundary is given
9665
9555
  * const elevation = await felt.getRasterAggregates({
9666
- * layerId: "elevation",
9667
- * band: "band:1",
9556
+ * layerId: layer.id,
9557
+ * bandId,
9668
9558
  * aggregation: { methods: ["min", "max", "avg"] },
9669
9559
  * });
9670
9560
  *
9671
9561
  * // How much ground inside a parcel sits above 2,000 metres
9672
9562
  * const highGround = await felt.getRasterAggregates({
9673
- * layerId: "elevation",
9674
- * band: "band:1",
9563
+ * layerId: layer.id,
9564
+ * bandId,
9675
9565
  * aggregation: { methods: ["area"] },
9676
9566
  * boundary: parcel,
9677
- * filters: ["band:1", "gt", 2000],
9567
+ * filters: [bandId, "gt", 2000],
9678
9568
  * });
9679
9569
  *
9680
- * // The steepest tenth of a slope raster
9570
+ * // The elevation that the steepest tenth of the raster sits above
9681
9571
  * const steep = await felt.getRasterAggregates({
9682
- * layerId: "slope",
9683
- * band: "band:1",
9684
- * aggregation: { methods: ["avg"], percentiles: [90] },
9572
+ * layerId: layer.id,
9573
+ * bandId,
9574
+ * aggregation: { methods: [], percentiles: [90] },
9685
9575
  * });
9686
9576
  * ```
9687
9577
  */
@@ -9694,26 +9584,21 @@ interface LayersController {
9694
9584
  * You can pass a number of equal intervals, or the bin edges themselves when you
9695
9585
  * already know how you want the values divided.
9696
9586
  *
9697
- * As with the vector histogram, filters apply in two ways. The top-level
9698
- * boundary and filters decide both where the bins fall and what gets counted in
9699
- * them. Filters in `values` only change what gets counted, so two histograms can
9700
- * be compared against identical bins.
9701
- *
9702
9587
  * @example
9703
9588
  * ```typescript
9704
- * // Elevation distribution in ten equal intervals
9589
+ * // The whole raster's elevation distribution in ten equal intervals
9705
9590
  * const elevation = await felt.getRasterHistogramData({
9706
- * layerId: "elevation",
9707
- * band: "band:1",
9591
+ * layerId: layer.id,
9592
+ * bandId,
9708
9593
  * steps: { type: "equal-intervals", count: 10 },
9709
9594
  * });
9710
9595
  *
9711
- * // The same bins, counting only pixels inside a watershed
9596
+ * // The same bins, counting only the pixels inside a watershed
9712
9597
  * const inWatershed = await felt.getRasterHistogramData({
9713
- * layerId: "elevation",
9714
- * band: "band:1",
9598
+ * layerId: layer.id,
9599
+ * bandId,
9715
9600
  * steps: [0, 500, 1000, 1500, 2000, 3000],
9716
- * values: { boundary: watershed },
9601
+ * boundary: watershed,
9717
9602
  * });
9718
9603
  * ```
9719
9604
  */
@@ -9731,8 +9616,8 @@ interface LayersController {
9731
9616
  * ```typescript
9732
9617
  * // How much of a county each land cover class covers
9733
9618
  * const landCover = await felt.getRasterCategoryData({
9734
- * layerId: "land-cover",
9735
- * band: "band:1",
9619
+ * layerId: layer.id,
9620
+ * bandId,
9736
9621
  * boundary: county,
9737
9622
  * limit: 10,
9738
9623
  * });
@@ -9750,8 +9635,8 @@ interface LayersController {
9750
9635
  * @example
9751
9636
  * ```typescript
9752
9637
  * const profile = await felt.getRasterProfile({
9753
- * layerId: "elevation",
9754
- * band: "band:1",
9638
+ * layerId: layer.id,
9639
+ * bandId,
9755
9640
  * boundary: route,
9756
9641
  * });
9757
9642
  * ```
@@ -16582,4 +16467,4 @@ interface FeltController extends ViewportController, UiController, LayersControl
16582
16467
  iframe: HTMLIFrameElement | null;
16583
16468
  }
16584
16469
 
16585
- 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 RasterGeometryFilter 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 UITextElementCreate as b$, type RasterHistogramBin as b0, type RasterPercentile as b1, type RasterProfileSample as b2, type LayersController as b3, type MapDetails as b4, type MiscController as b5, type ElementGroupNode as b6, type ElementNode as b7, type EntityNode as b8, type FeatureNode as b9, type NoteToolSettings as bA, type PinToolSettings as bB, type PlaceFrame as bC, type PlaceSymbol as bD, type PolygonToolSettings as bE, type RouteToolSettings as bF, type TextToolSettings as bG, type ToolSettingsChangeEvent as bH, type ToolSettingsMap as bI, type ToolType as bJ, type ToolsController as bK, type CreateActionTriggerParams as bL, type CreateFeatureActionParams as bM, type CreateOrUpdatePanelParams as bN, type CreatePanelElementsParams as bO, type DeletePanelElementsParams as bP, type UiOnMapInteractionsOptions as bQ, type UpdateActionTriggerParams as bR, type UpdateFeatureActionParams as bS, type UpdatePanelElementsParams as bT, type PlacementForUIElement as bU, type UIPanel as bV, type UIPanelCreateOrUpdate as bW, type UIButtonElement as bX, type UIButtonElementCreate as bY, type UIButtonElementUpdate as bZ, type UITextElement as b_, type FeatureSelection as ba, type LayerGroupNode as bb, type LayerNode as bc, type SelectionController as bd, type FeltBoundary as be, type FeltZoom as bf, type GeoJsonFeature as bg, type GeoJsonGeometry as bh, type GeoJsonProperties as bi, type LatLng as bj, type LineStringGeometry as bk, type LngLatTuple as bl, type MultiLineStringGeometry as bm, type MultiPointGeometry as bn, type MultiPolygonGeometry as bo, type PointGeometry as bp, type PolygonGeometry as bq, type SetVisibilityRequest as br, type SortConfig as bs, type SortDirection as bt, type CircleToolSettings as bu, type ConfigurableToolType as bv, type HighlighterToolSettings as bw, type InputToolSettings as bx, type LineToolSettings as by, type MarkerToolSettings as bz, type CustomTileBasemap as c, type UITextElementUpdate as c0, type UIFlexibleSpaceElement as c1, type UIFlexibleSpaceElementCreate as c2, type UIFlexibleSpaceElementUpdate as c3, type UIDividerElement as c4, type UIDividerElementCreate as c5, type UIDividerElementUpdate as c6, type UITextInputElement as c7, type UITextInputElementCreate as c8, type UITextInputElementUpdate as c9, type UIFeatureAction as cA, type UIFeatureActionCreate as cB, type UiController as cC, type SetViewportCenterZoomParams as cD, type ViewportConstraints as cE, type ViewportFitBoundsParams as cF, type ViewportState as cG, type ViewportController as cH, type UnwrapPromise as cI, uiActionTriggerSchema as cJ, uiFeatureActionSchema as cK, type UIPanelElementCreateClonable as cL, uiPanelCreateSchema as cM, type UIButtonElementCreateClonable as cN, type MakeClonableSchema as cO, type UIButtonRowElementCreateClonable as cP, type PromiseOrNot as cQ, type UnionToIntersection as cR, type UISelectElement as ca, type UISelectElementCreate as cb, type UISelectElementUpdate as cc, type UIPanelElement as cd, type UIPanelElementCreate as ce, type UIPanelElementUpdate as cf, type UIGridContainerElement as cg, type UIGridContainerElementCreate as ch, type UIGridContainerElementUpdate as ci, type UIButtonRowElement as cj, type UIButtonRowElementCreate as ck, type UIButtonRowElementUpdate as cl, type UICheckboxGroupElement as cm, type UICheckboxGroupElementCreate as cn, type UICheckboxGroupElementUpdate as co, type UIRadioGroupElement as cp, type UIRadioGroupElementCreate as cq, type UIRadioGroupElementUpdate as cr, type UIToggleGroupElement as cs, type UIToggleGroupElementCreate as ct, type UIToggleGroupElementUpdate as cu, type UIIframeElement as cv, type UIIframeElementCreate as cw, type UIIframeElementUpdate as cx, type UIControlElementOption as cy, type UIActionTriggerCreate 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 };
16470
+ 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 };