earthengine-api 1.5.24__py3-none-any.whl → 1.6.0__py3-none-any.whl
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.
Potentially problematic release.
This version of earthengine-api might be problematic. Click here for more details.
- {earthengine_api-1.5.24.dist-info → earthengine_api-1.6.0.dist-info}/METADATA +1 -1
- earthengine_api-1.6.0.dist-info/RECORD +107 -0
- ee/__init__.py +11 -10
- ee/_arg_types.py +2 -1
- ee/_cloud_api_utils.py +7 -6
- ee/_helpers.py +3 -2
- ee/apifunction.py +11 -9
- ee/apitestcase.py +2 -1
- ee/batch.py +46 -42
- ee/blob.py +2 -2
- ee/classifier.py +57 -59
- ee/cli/commands.py +9 -7
- ee/cli/utils.py +13 -9
- ee/clusterer.py +39 -41
- ee/collection.py +42 -42
- ee/computedobject.py +10 -10
- ee/confusionmatrix.py +8 -8
- ee/customfunction.py +2 -2
- ee/data.py +15 -14
- ee/daterange.py +9 -9
- ee/deprecation.py +13 -11
- ee/deserializer.py +5 -5
- ee/dictionary.py +11 -11
- ee/ee_array.py +17 -17
- ee/ee_date.py +22 -22
- ee/ee_list.py +15 -15
- ee/ee_number.py +5 -5
- ee/ee_string.py +6 -6
- ee/ee_types.py +2 -2
- ee/element.py +14 -14
- ee/errormargin.py +3 -3
- ee/feature.py +67 -70
- ee/featurecollection.py +30 -32
- ee/filter.py +88 -90
- ee/function.py +3 -3
- ee/geometry.py +61 -62
- ee/image.py +216 -209
- ee/image_converter.py +2 -2
- ee/imagecollection.py +23 -20
- ee/join.py +13 -15
- ee/kernel.py +55 -57
- ee/oauth.py +26 -20
- ee/pixeltype.py +5 -5
- ee/projection.py +4 -3
- ee/reducer.py +39 -41
- ee/serializer.py +4 -4
- ee/table_converter.py +3 -2
- ee/terrain.py +6 -8
- ee/tests/_cloud_api_utils_test.py +1 -1
- ee/tests/_helpers_test.py +1 -1
- ee/tests/batch_test.py +1 -1
- ee/tests/data_test.py +2 -2
- ee/tests/ee_test.py +3 -3
- ee/tests/errormargin_test.py +1 -1
- ee/tests/image_converter_test.py +2 -2
- ee/tests/pixeltype_test.py +1 -2
- ee/tests/projection_test.py +2 -3
- ee/tests/table_converter_test.py +2 -2
- earthengine_api-1.5.24.dist-info/RECORD +0 -107
- {earthengine_api-1.5.24.dist-info → earthengine_api-1.6.0.dist-info}/WHEEL +0 -0
- {earthengine_api-1.5.24.dist-info → earthengine_api-1.6.0.dist-info}/entry_points.txt +0 -0
- {earthengine_api-1.5.24.dist-info → earthengine_api-1.6.0.dist-info}/licenses/LICENSE +0 -0
- {earthengine_api-1.5.24.dist-info → earthengine_api-1.6.0.dist-info}/top_level.txt +0 -0
ee/feature.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""An object representing EE Features."""
|
|
2
2
|
from __future__ import annotations
|
|
3
3
|
|
|
4
|
-
from typing import Any
|
|
4
|
+
from typing import Any
|
|
5
5
|
|
|
6
6
|
from ee import _arg_types
|
|
7
7
|
from ee import _utils
|
|
@@ -10,7 +10,6 @@ from ee import computedobject
|
|
|
10
10
|
from ee import dictionary
|
|
11
11
|
from ee import ee_array
|
|
12
12
|
from ee import ee_exception
|
|
13
|
-
from ee import ee_list
|
|
14
13
|
from ee import ee_number
|
|
15
14
|
from ee import ee_string
|
|
16
15
|
from ee import element
|
|
@@ -28,17 +27,15 @@ class Feature(element.Element):
|
|
|
28
27
|
@_utils.accept_opt_prefix('opt_properties')
|
|
29
28
|
def __init__(
|
|
30
29
|
self,
|
|
31
|
-
geom:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Union[dict[str, Any], computedobject.ComputedObject]
|
|
41
|
-
] = None,
|
|
30
|
+
geom: None | (
|
|
31
|
+
Feature |
|
|
32
|
+
geometry.Geometry |
|
|
33
|
+
dict[str, Any] |
|
|
34
|
+
computedobject.ComputedObject
|
|
35
|
+
),
|
|
36
|
+
properties: None | (
|
|
37
|
+
dict[str, Any] | computedobject.ComputedObject
|
|
38
|
+
) = None,
|
|
42
39
|
):
|
|
43
40
|
"""Creates a feature a geometry or computed object.
|
|
44
41
|
|
|
@@ -113,7 +110,7 @@ class Feature(element.Element):
|
|
|
113
110
|
cls._initialized = False
|
|
114
111
|
|
|
115
112
|
def getMapId(
|
|
116
|
-
self, vis_params:
|
|
113
|
+
self, vis_params: dict[str, Any] | None = None
|
|
117
114
|
) -> dict[str, Any]:
|
|
118
115
|
"""Fetch and return a map id and token, suitable for use in a Map overlay.
|
|
119
116
|
|
|
@@ -137,8 +134,8 @@ class Feature(element.Element):
|
|
|
137
134
|
def area(
|
|
138
135
|
self,
|
|
139
136
|
# pylint: disable-next=invalid-name
|
|
140
|
-
maxError:
|
|
141
|
-
proj:
|
|
137
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
138
|
+
proj: _arg_types.Projection | None = None,
|
|
142
139
|
) -> ee_number.Number:
|
|
143
140
|
"""Returns the area of the feature's default geometry.
|
|
144
141
|
|
|
@@ -160,8 +157,8 @@ class Feature(element.Element):
|
|
|
160
157
|
def bounds(
|
|
161
158
|
self,
|
|
162
159
|
# pylint: disable-next=invalid-name
|
|
163
|
-
maxError:
|
|
164
|
-
proj:
|
|
160
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
161
|
+
proj: _arg_types.Projection | None = None,
|
|
165
162
|
) -> Feature:
|
|
166
163
|
"""Returns a feature containing the bounding box of the geometry.
|
|
167
164
|
|
|
@@ -180,8 +177,8 @@ class Feature(element.Element):
|
|
|
180
177
|
self,
|
|
181
178
|
distance: _arg_types.Number,
|
|
182
179
|
# pylint: disable-next=invalid-name
|
|
183
|
-
maxError:
|
|
184
|
-
proj:
|
|
180
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
181
|
+
proj: _arg_types.Projection | None = None,
|
|
185
182
|
) -> Feature:
|
|
186
183
|
"""Returns the input buffered by a given distance.
|
|
187
184
|
|
|
@@ -208,8 +205,8 @@ class Feature(element.Element):
|
|
|
208
205
|
def centroid(
|
|
209
206
|
self,
|
|
210
207
|
# pylint: disable-next=invalid-name
|
|
211
|
-
maxError:
|
|
212
|
-
proj:
|
|
208
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
209
|
+
proj: _arg_types.Projection | None = None,
|
|
213
210
|
) -> Feature:
|
|
214
211
|
"""Returns a point at the center.
|
|
215
212
|
|
|
@@ -234,8 +231,8 @@ class Feature(element.Element):
|
|
|
234
231
|
self,
|
|
235
232
|
right: _arg_types.Element,
|
|
236
233
|
# pylint: disable-next=invalid-name
|
|
237
|
-
maxError:
|
|
238
|
-
proj:
|
|
234
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
235
|
+
proj: _arg_types.Projection | None = None,
|
|
239
236
|
) -> computedobject.ComputedObject:
|
|
240
237
|
"""Returns the point on the right input that is nearest to the left input.
|
|
241
238
|
|
|
@@ -261,8 +258,8 @@ class Feature(element.Element):
|
|
|
261
258
|
self,
|
|
262
259
|
right: _arg_types.Element,
|
|
263
260
|
# pylint: disable-next=invalid-name
|
|
264
|
-
maxError:
|
|
265
|
-
proj:
|
|
261
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
262
|
+
proj: _arg_types.Projection | None = None,
|
|
266
263
|
) -> computedobject.ComputedObject:
|
|
267
264
|
"""Returns the points on the right input that are nearest to the left input.
|
|
268
265
|
|
|
@@ -292,8 +289,8 @@ class Feature(element.Element):
|
|
|
292
289
|
self,
|
|
293
290
|
right: _arg_types.Any,
|
|
294
291
|
# pylint: disable-next=invalid-name
|
|
295
|
-
maxError:
|
|
296
|
-
proj:
|
|
292
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
293
|
+
proj: _arg_types.Projection | None = None,
|
|
297
294
|
) -> computedobject.ComputedObject:
|
|
298
295
|
"""Returns true if the geometry is contained in the geometry of another.
|
|
299
296
|
|
|
@@ -318,8 +315,8 @@ class Feature(element.Element):
|
|
|
318
315
|
self,
|
|
319
316
|
right: _arg_types.Any,
|
|
320
317
|
# pylint: disable-next=invalid-name
|
|
321
|
-
maxError:
|
|
322
|
-
proj:
|
|
318
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
319
|
+
proj: _arg_types.Projection | None = None,
|
|
323
320
|
) -> computedobject.ComputedObject:
|
|
324
321
|
"""Returns true if the geometry contains the geometry of another.
|
|
325
322
|
|
|
@@ -343,8 +340,8 @@ class Feature(element.Element):
|
|
|
343
340
|
def convexHull(
|
|
344
341
|
self,
|
|
345
342
|
# pylint: disable-next=invalid-name
|
|
346
|
-
maxError:
|
|
347
|
-
proj:
|
|
343
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
344
|
+
proj: _arg_types.Projection | None = None,
|
|
348
345
|
) -> Feature:
|
|
349
346
|
"""Returns the convex hull of the original geometry.
|
|
350
347
|
|
|
@@ -369,8 +366,8 @@ class Feature(element.Element):
|
|
|
369
366
|
self,
|
|
370
367
|
distances: _arg_types.List,
|
|
371
368
|
# pylint: disable-next=invalid-name
|
|
372
|
-
maxError:
|
|
373
|
-
proj:
|
|
369
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
370
|
+
proj: _arg_types.Projection | None = None,
|
|
374
371
|
) -> Feature:
|
|
375
372
|
"""Returns a feature containing the cut lines.
|
|
376
373
|
|
|
@@ -398,8 +395,8 @@ class Feature(element.Element):
|
|
|
398
395
|
self,
|
|
399
396
|
right: _arg_types.Any,
|
|
400
397
|
# pylint: disable-next=invalid-name
|
|
401
|
-
maxError:
|
|
402
|
-
proj:
|
|
398
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
399
|
+
proj: _arg_types.Projection | None = None,
|
|
403
400
|
) -> Feature:
|
|
404
401
|
"""Returns the geometry of the feature minus the 'right' geometry.
|
|
405
402
|
|
|
@@ -425,8 +422,8 @@ class Feature(element.Element):
|
|
|
425
422
|
self,
|
|
426
423
|
right: _arg_types.Any,
|
|
427
424
|
# pylint: disable-next=invalid-name
|
|
428
|
-
maxError:
|
|
429
|
-
proj:
|
|
425
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
426
|
+
proj: _arg_types.Projection | None = None,
|
|
430
427
|
) -> computedobject.ComputedObject:
|
|
431
428
|
"""Returns true if and only if the feature geometries are disjoint.
|
|
432
429
|
|
|
@@ -450,8 +447,8 @@ class Feature(element.Element):
|
|
|
450
447
|
def dissolve(
|
|
451
448
|
self,
|
|
452
449
|
# pylint: disable-next=invalid-name
|
|
453
|
-
maxError:
|
|
454
|
-
proj:
|
|
450
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
451
|
+
proj: _arg_types.Projection | None = None,
|
|
455
452
|
) -> Feature:
|
|
456
453
|
"""Returns a feature containing the union of the geometry of a feature.
|
|
457
454
|
|
|
@@ -472,9 +469,9 @@ class Feature(element.Element):
|
|
|
472
469
|
self,
|
|
473
470
|
right: _arg_types.Any,
|
|
474
471
|
# pylint: disable-next=invalid-name
|
|
475
|
-
maxError:
|
|
476
|
-
proj:
|
|
477
|
-
spherical:
|
|
472
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
473
|
+
proj: _arg_types.Projection | None = None,
|
|
474
|
+
spherical: _arg_types.Bool | None = None,
|
|
478
475
|
) -> ee_number.Number:
|
|
479
476
|
"""Returns the minimum distance between the geometries of two features.
|
|
480
477
|
|
|
@@ -498,10 +495,10 @@ class Feature(element.Element):
|
|
|
498
495
|
def geometry(
|
|
499
496
|
self,
|
|
500
497
|
# pylint: disable-next=invalid-name
|
|
501
|
-
maxError:
|
|
502
|
-
proj:
|
|
503
|
-
geodesics:
|
|
504
|
-
) ->
|
|
498
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
499
|
+
proj: _arg_types.Projection | None = None,
|
|
500
|
+
geodesics: _arg_types.Bool | None = None,
|
|
501
|
+
) -> geometry.Geometry:
|
|
505
502
|
"""Returns the geometry of a given feature in a given projection.
|
|
506
503
|
|
|
507
504
|
Args:
|
|
@@ -521,10 +518,10 @@ class Feature(element.Element):
|
|
|
521
518
|
|
|
522
519
|
def hersDescriptor(
|
|
523
520
|
self,
|
|
524
|
-
selectors:
|
|
525
|
-
buckets:
|
|
521
|
+
selectors: _arg_types.List | None = None,
|
|
522
|
+
buckets: _arg_types.Integer | None = None,
|
|
526
523
|
# pylint: disable-next=invalid-name
|
|
527
|
-
peakWidthScale:
|
|
524
|
+
peakWidthScale: _arg_types.Number | None = None,
|
|
528
525
|
) -> dictionary.Dictionary:
|
|
529
526
|
"""Returns a dictionary of Histogram Error Ring Statistic (HERS) arrays.
|
|
530
527
|
|
|
@@ -560,8 +557,8 @@ class Feature(element.Element):
|
|
|
560
557
|
self,
|
|
561
558
|
right: _arg_types.Any,
|
|
562
559
|
# pylint: disable-next=invalid-name
|
|
563
|
-
maxError:
|
|
564
|
-
proj:
|
|
560
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
561
|
+
proj: _arg_types.Projection | None = None,
|
|
565
562
|
) -> Feature:
|
|
566
563
|
"""Returns the intersection of the geometries with right.
|
|
567
564
|
|
|
@@ -589,8 +586,8 @@ class Feature(element.Element):
|
|
|
589
586
|
self,
|
|
590
587
|
right: _arg_types.Any,
|
|
591
588
|
# pylint: disable-next=invalid-name
|
|
592
|
-
maxError:
|
|
593
|
-
proj:
|
|
589
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
590
|
+
proj: _arg_types.Projection | None = None,
|
|
594
591
|
) -> computedobject.ComputedObject:
|
|
595
592
|
"""Returns true if and only if the feature geometries intersect.
|
|
596
593
|
|
|
@@ -614,8 +611,8 @@ class Feature(element.Element):
|
|
|
614
611
|
def length(
|
|
615
612
|
self,
|
|
616
613
|
# pylint: disable-next=invalid-name
|
|
617
|
-
maxError:
|
|
618
|
-
proj:
|
|
614
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
615
|
+
proj: _arg_types.Projection | None = None,
|
|
619
616
|
) -> ee_number.Number:
|
|
620
617
|
"""Returns the length of the linear parts of the geometry of a feature.
|
|
621
618
|
|
|
@@ -636,8 +633,8 @@ class Feature(element.Element):
|
|
|
636
633
|
def perimeter(
|
|
637
634
|
self,
|
|
638
635
|
# pylint: disable-next=invalid-name
|
|
639
|
-
maxError:
|
|
640
|
-
proj:
|
|
636
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
637
|
+
proj: _arg_types.Projection | None = None,
|
|
641
638
|
) -> ee_number.Number:
|
|
642
639
|
"""Returns the length of the perimeter of the polygonal parts of the geometry of a given feature.
|
|
643
640
|
|
|
@@ -659,8 +656,8 @@ class Feature(element.Element):
|
|
|
659
656
|
self,
|
|
660
657
|
# pylint: disable=invalid-name
|
|
661
658
|
propertySelectors: _arg_types.List,
|
|
662
|
-
newProperties:
|
|
663
|
-
retainGeometry:
|
|
659
|
+
newProperties: _arg_types.List | None = None,
|
|
660
|
+
retainGeometry: _arg_types.Bool | None = None,
|
|
664
661
|
# pylint: enable=invalid-name
|
|
665
662
|
) -> Feature:
|
|
666
663
|
"""Returns a feature with the selected properties.
|
|
@@ -685,7 +682,7 @@ class Feature(element.Element):
|
|
|
685
682
|
)
|
|
686
683
|
|
|
687
684
|
def setGeometry(
|
|
688
|
-
self, geometry:
|
|
685
|
+
self, geometry: _arg_types.Geometry | None = None
|
|
689
686
|
) -> Feature:
|
|
690
687
|
"""Returns the feature with the geometry replaced by the specified geometry.
|
|
691
688
|
|
|
@@ -701,7 +698,7 @@ class Feature(element.Element):
|
|
|
701
698
|
self,
|
|
702
699
|
# pylint: disable-next=invalid-name
|
|
703
700
|
maxError: _arg_types.ErrorMargin,
|
|
704
|
-
proj:
|
|
701
|
+
proj: _arg_types.Projection | None = None,
|
|
705
702
|
) -> Feature:
|
|
706
703
|
"""Returns a feature with geometry simplified to within an error margin.
|
|
707
704
|
|
|
@@ -732,8 +729,8 @@ class Feature(element.Element):
|
|
|
732
729
|
self,
|
|
733
730
|
right: _arg_types.Any,
|
|
734
731
|
# pylint: disable-next=invalid-name
|
|
735
|
-
maxError:
|
|
736
|
-
proj:
|
|
732
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
733
|
+
proj: _arg_types.Projection | None = None,
|
|
737
734
|
) -> Feature:
|
|
738
735
|
"""Returns a feature containing the symmetric difference with right.
|
|
739
736
|
|
|
@@ -766,9 +763,9 @@ class Feature(element.Element):
|
|
|
766
763
|
|
|
767
764
|
def transform(
|
|
768
765
|
self,
|
|
769
|
-
proj:
|
|
766
|
+
proj: _arg_types.Projection | None = None,
|
|
770
767
|
# pylint: disable-next=invalid-name
|
|
771
|
-
maxError:
|
|
768
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
772
769
|
) -> Feature:
|
|
773
770
|
"""Transforms the geometry of a feature to a specific projection.
|
|
774
771
|
|
|
@@ -791,8 +788,8 @@ class Feature(element.Element):
|
|
|
791
788
|
self,
|
|
792
789
|
right: _arg_types.Any,
|
|
793
790
|
# pylint: disable-next=invalid-name
|
|
794
|
-
maxError:
|
|
795
|
-
proj:
|
|
791
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
792
|
+
proj: _arg_types.Projection | None = None,
|
|
796
793
|
) -> Feature:
|
|
797
794
|
"""Returns a feature containing the union of the geometries of two features.
|
|
798
795
|
|
|
@@ -815,8 +812,8 @@ class Feature(element.Element):
|
|
|
815
812
|
right: _arg_types.Any,
|
|
816
813
|
distance: _arg_types.Number,
|
|
817
814
|
# pylint: disable-next=invalid-name
|
|
818
|
-
maxError:
|
|
819
|
-
proj:
|
|
815
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
816
|
+
proj: _arg_types.Projection | None = None,
|
|
820
817
|
) -> computedobject.ComputedObject:
|
|
821
818
|
"""Returns true if the geometries of right are within a specified distance.
|
|
822
819
|
|
ee/featurecollection.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
from __future__ import annotations
|
|
7
7
|
|
|
8
|
-
from typing import Any
|
|
8
|
+
from typing import Any
|
|
9
9
|
|
|
10
10
|
from ee import _arg_types
|
|
11
11
|
from ee import _utils
|
|
@@ -34,17 +34,15 @@ class FeatureCollection(collection.Collection):
|
|
|
34
34
|
@deprecation.WarnForDeprecatedAsset('args')
|
|
35
35
|
def __init__(
|
|
36
36
|
self,
|
|
37
|
-
args:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
],
|
|
47
|
-
column: Optional[Any] = None,
|
|
37
|
+
args: None | (
|
|
38
|
+
dict[str, Any] |
|
|
39
|
+
list[Any] |
|
|
40
|
+
str |
|
|
41
|
+
feature.Feature |
|
|
42
|
+
geometry.Geometry |
|
|
43
|
+
computedobject.ComputedObject
|
|
44
|
+
),
|
|
45
|
+
column: Any | None = None,
|
|
48
46
|
):
|
|
49
47
|
"""Constructs a collection features.
|
|
50
48
|
|
|
@@ -116,7 +114,7 @@ class FeatureCollection(collection.Collection):
|
|
|
116
114
|
cls._initialized = False
|
|
117
115
|
|
|
118
116
|
def getMapId(
|
|
119
|
-
self, vis_params:
|
|
117
|
+
self, vis_params: dict[str, Any] | None = None
|
|
120
118
|
) -> dict[str, Any]:
|
|
121
119
|
"""Fetch and return a map id and token, suitable for use in a Map overlay.
|
|
122
120
|
|
|
@@ -137,9 +135,9 @@ class FeatureCollection(collection.Collection):
|
|
|
137
135
|
|
|
138
136
|
def getDownloadURL(
|
|
139
137
|
self,
|
|
140
|
-
filetype:
|
|
141
|
-
selectors:
|
|
142
|
-
filename:
|
|
138
|
+
filetype: str | None = None,
|
|
139
|
+
selectors: Any | None = None,
|
|
140
|
+
filename: str | None = None,
|
|
143
141
|
) -> str:
|
|
144
142
|
"""Gets a download URL.
|
|
145
143
|
|
|
@@ -179,8 +177,8 @@ class FeatureCollection(collection.Collection):
|
|
|
179
177
|
def select(
|
|
180
178
|
self,
|
|
181
179
|
propertySelectors: Any,
|
|
182
|
-
newProperties:
|
|
183
|
-
retainGeometry:
|
|
180
|
+
newProperties: Any | None = None,
|
|
181
|
+
retainGeometry: bool | str = True,
|
|
184
182
|
*args,
|
|
185
183
|
) -> FeatureCollection:
|
|
186
184
|
"""Select properties from each feature in a collection.
|
|
@@ -218,14 +216,14 @@ class FeatureCollection(collection.Collection):
|
|
|
218
216
|
return 'FeatureCollection'
|
|
219
217
|
|
|
220
218
|
@staticmethod
|
|
221
|
-
def elementType() ->
|
|
219
|
+
def elementType() -> type[feature.Feature]:
|
|
222
220
|
return feature.Feature
|
|
223
221
|
|
|
224
222
|
def classify(
|
|
225
223
|
self,
|
|
226
224
|
classifier: _arg_types.Classifier,
|
|
227
225
|
# pylint: disable-next=invalid-name
|
|
228
|
-
outputName:
|
|
226
|
+
outputName: _arg_types.String | None = None,
|
|
229
227
|
) -> FeatureCollection:
|
|
230
228
|
"""Returns the result of classifying each feature in a collection.
|
|
231
229
|
|
|
@@ -246,7 +244,7 @@ class FeatureCollection(collection.Collection):
|
|
|
246
244
|
self,
|
|
247
245
|
clusterer: _arg_types.Clusterer,
|
|
248
246
|
# pylint: disable-next=invalid-name
|
|
249
|
-
outputName:
|
|
247
|
+
outputName: _arg_types.String | None = None,
|
|
250
248
|
) -> FeatureCollection:
|
|
251
249
|
"""Returns the results of clustering each feature in a collection.
|
|
252
250
|
|
|
@@ -268,8 +266,8 @@ class FeatureCollection(collection.Collection):
|
|
|
268
266
|
propertyName: _arg_types.String, # pylint: disable=invalid-name
|
|
269
267
|
mean: _arg_types.Number,
|
|
270
268
|
stdDev: _arg_types.Number, # pylint: disable=invalid-name
|
|
271
|
-
gamma:
|
|
272
|
-
reducer:
|
|
269
|
+
gamma: _arg_types.Number | None = None,
|
|
270
|
+
reducer: _arg_types.Reducer | None = None,
|
|
273
271
|
) -> image.Image:
|
|
274
272
|
"""Returns an inverse-distance weighted estimate of the value at each pixel.
|
|
275
273
|
|
|
@@ -302,8 +300,8 @@ class FeatureCollection(collection.Collection):
|
|
|
302
300
|
sill: _arg_types.Number,
|
|
303
301
|
nugget: _arg_types.Number,
|
|
304
302
|
# pylint: disable-next=invalid-name
|
|
305
|
-
maxDistance:
|
|
306
|
-
reducer:
|
|
303
|
+
maxDistance: _arg_types.Number | None = None,
|
|
304
|
+
reducer: _arg_types.Reducer | None = None,
|
|
307
305
|
) -> image.Image:
|
|
308
306
|
"""Returns the results of sampling a Kriging estimator at each pixel.
|
|
309
307
|
|
|
@@ -334,7 +332,7 @@ class FeatureCollection(collection.Collection):
|
|
|
334
332
|
@staticmethod
|
|
335
333
|
def loadBigQueryTable(
|
|
336
334
|
table: _arg_types.String,
|
|
337
|
-
geometryColumn:
|
|
335
|
+
geometryColumn: _arg_types.String | None = None,
|
|
338
336
|
) -> FeatureCollection:
|
|
339
337
|
"""Returns a FeatureCollection containing data read from a BigQuery table.
|
|
340
338
|
|
|
@@ -353,7 +351,7 @@ class FeatureCollection(collection.Collection):
|
|
|
353
351
|
def makeArray(
|
|
354
352
|
self,
|
|
355
353
|
properties: _arg_types.List,
|
|
356
|
-
name:
|
|
354
|
+
name: _arg_types.String | None = None,
|
|
357
355
|
) -> FeatureCollection:
|
|
358
356
|
"""Returns a collection with a 1-D Array property for each feature.
|
|
359
357
|
|
|
@@ -376,10 +374,10 @@ class FeatureCollection(collection.Collection):
|
|
|
376
374
|
@staticmethod
|
|
377
375
|
def randomPoints(
|
|
378
376
|
region: geometry.Geometry,
|
|
379
|
-
points:
|
|
380
|
-
seed:
|
|
377
|
+
points: _arg_types.Integer | None = None,
|
|
378
|
+
seed: _arg_types.Integer | None = None,
|
|
381
379
|
# pylint: disable-next=invalid-name
|
|
382
|
-
maxError:
|
|
380
|
+
maxError: _arg_types.ErrorMargin | None = None,
|
|
383
381
|
) -> FeatureCollection:
|
|
384
382
|
"""Returns a collection of random points.
|
|
385
383
|
|
|
@@ -407,8 +405,8 @@ class FeatureCollection(collection.Collection):
|
|
|
407
405
|
@staticmethod
|
|
408
406
|
def runBigQuery(
|
|
409
407
|
query: _arg_types.String,
|
|
410
|
-
geometryColumn:
|
|
411
|
-
maxBytesBilled:
|
|
408
|
+
geometryColumn: _arg_types.String | None = None,
|
|
409
|
+
maxBytesBilled: _arg_types.Integer | None = int(1e11),
|
|
412
410
|
) -> FeatureCollection:
|
|
413
411
|
"""Returns a FeatureCollection containing result of a BigQuery query.
|
|
414
412
|
|