earthengine-api 1.7.10rc0__tar.gz → 1.7.10rc1__tar.gz
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.7.10rc0/earthengine_api.egg-info → earthengine_api-1.7.10rc1}/PKG-INFO +1 -1
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1/earthengine_api.egg-info}/PKG-INFO +1 -1
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/__init__.py +1 -1
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/data.py +1 -1
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/data_test.py +38 -12
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/pyproject.toml +1 -1
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/LICENSE +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/MANIFEST.in +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/README.md +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/SOURCES.txt +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/dependency_links.txt +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/entry_points.txt +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/requires.txt +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/top_level.txt +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/_arg_types.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/_cloud_api_utils.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/_helpers.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/_state.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/_utils.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/apifunction.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/apitestcase.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/batch.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/blob.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/classifier.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/cli/__init__.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/cli/commands.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/cli/eecli.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/cli/eecli_wrapper.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/cli/utils.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/clusterer.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/collection.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/computedobject.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/confusionmatrix.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/customfunction.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/daterange.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/deprecation.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/deserializer.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/dictionary.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_array.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_date.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_exception.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_list.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_number.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_string.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/ee_types.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/element.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/encodable.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/errormargin.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/feature.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/featurecollection.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/filter.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/function.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/geometry.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/image.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/image_converter.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/imagecollection.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/join.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/kernel.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/mapclient.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/model.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/oauth.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/pixeltype.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/projection.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/py.typed +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/reducer.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/serializer.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/table_converter.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/terrain.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/_cloud_api_utils_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/_helpers_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/_state_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/_utils_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/algorithms.json +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/apifunction_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/batch_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/blob_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/classifier_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/cloud_api_discovery_document.json +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/clusterer_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/collection_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/computedobject_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/confusionmatrix_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/daterange_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/deprecation_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/deserializer_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/dictionary_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_array_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_date_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_list_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_number_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_string_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/ee_types_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/element_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/encodable_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/errormargin_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/feature_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/featurecollection_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/filter_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/function_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/geometry_point_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/geometry_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/image_converter_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/image_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/imagecollection_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/join_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/kernel_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/model_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/oauth_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/pixeltype_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/projection_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/reducer_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/serializer_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/table_converter_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/terrain_test.py +0 -0
- {earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/setup.cfg +0 -0
|
@@ -691,7 +691,7 @@ def getMapId(params: dict[str, Any]) -> dict[str, Any]:
|
|
|
691
691
|
map_name = result['name']
|
|
692
692
|
version = _cloud_api_utils.VERSION
|
|
693
693
|
url_format = (
|
|
694
|
-
'{state.tile_base_url}/{version}/{map_name
|
|
694
|
+
f'{state.tile_base_url}/{version}/{map_name}/tiles/{{z}}/{{x}}/{{y}}'
|
|
695
695
|
)
|
|
696
696
|
if state.cloud_api_key:
|
|
697
697
|
url_format += f'?key={state.cloud_api_key}'
|
|
@@ -565,23 +565,22 @@ class DataTest(unittest.TestCase):
|
|
|
565
565
|
def test_set_asset_properties(self):
|
|
566
566
|
mock_http = mock.MagicMock(httplib2.Http)
|
|
567
567
|
with apitestcase.UsingCloudApi(mock_http=mock_http), mock.patch.object(
|
|
568
|
-
ee.data, 'updateAsset', autospec=True
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
'system:time_start': 1
|
|
572
|
-
|
|
568
|
+
ee.data, 'updateAsset', autospec=True
|
|
569
|
+
) as mock_update_asset:
|
|
570
|
+
ee.data.setAssetProperties(
|
|
571
|
+
'foo', {'mYPropErTy': 'Value', 'system:time_start': 1}
|
|
572
|
+
)
|
|
573
573
|
asset_id = mock_update_asset.call_args[0][0]
|
|
574
574
|
self.assertEqual(asset_id, 'foo')
|
|
575
575
|
asset = mock_update_asset.call_args[0][1]
|
|
576
|
-
self.assertEqual(
|
|
577
|
-
'mYPropErTy': 'Value',
|
|
578
|
-
|
|
579
|
-
})
|
|
576
|
+
self.assertEqual(
|
|
577
|
+
asset['properties'], {'mYPropErTy': 'Value', 'system:time_start': 1}
|
|
578
|
+
)
|
|
580
579
|
update_mask = mock_update_asset.call_args[0][2]
|
|
581
580
|
self.assertSetEqual(
|
|
582
581
|
set(update_mask),
|
|
583
|
-
{'properties
|
|
584
|
-
|
|
582
|
+
{'properties."mYPropErTy"', 'properties."system:time_start"'},
|
|
583
|
+
)
|
|
585
584
|
|
|
586
585
|
def test_update_asset(self):
|
|
587
586
|
cloud_api_resource = mock.MagicMock()
|
|
@@ -895,7 +894,10 @@ class DataTest(unittest.TestCase):
|
|
|
895
894
|
def test_get_map_id_with_cloud_api_key(self):
|
|
896
895
|
cloud_api_resource = mock.MagicMock()
|
|
897
896
|
with apitestcase.UsingCloudApi(cloud_api_resource=cloud_api_resource):
|
|
897
|
+
custom_url = 'https://example.test'
|
|
898
898
|
ee.data._get_state().cloud_api_key = 'my-api-key'
|
|
899
|
+
ee.data._get_state().tile_base_url = custom_url
|
|
900
|
+
|
|
899
901
|
mock_result = {
|
|
900
902
|
'name': 'projects/earthengine-legacy/maps/DOCID',
|
|
901
903
|
}
|
|
@@ -905,7 +907,31 @@ class DataTest(unittest.TestCase):
|
|
|
905
907
|
actual_result = ee.data.getMapId({
|
|
906
908
|
'image': image.Image('my-image'),
|
|
907
909
|
})
|
|
908
|
-
|
|
910
|
+
expected_url = (
|
|
911
|
+
custom_url
|
|
912
|
+
+ '/v1/projects/earthengine-legacy/maps/DOCID/tiles/{z}/{x}/{y}'
|
|
913
|
+
'?key=my-api-key'
|
|
914
|
+
)
|
|
915
|
+
self.assertEqual(expected_url, actual_result['tile_fetcher'].url_format)
|
|
916
|
+
|
|
917
|
+
def test_get_map_id_no_cloud_api_key(self):
|
|
918
|
+
cloud_api_resource = mock.MagicMock()
|
|
919
|
+
with apitestcase.UsingCloudApi(cloud_api_resource=cloud_api_resource):
|
|
920
|
+
custom_url = 'https://example.test'
|
|
921
|
+
ee.data._get_state().cloud_api_key = None
|
|
922
|
+
ee.data._get_state().tile_base_url = custom_url
|
|
923
|
+
mock_result = {
|
|
924
|
+
'name': 'projects/earthengine-legacy/maps/DOCID',
|
|
925
|
+
}
|
|
926
|
+
cloud_api_resource.projects().maps().create().execute.return_value = (
|
|
927
|
+
mock_result
|
|
928
|
+
)
|
|
929
|
+
actual_result = ee.data.getMapId({'image': image.Image('my-image')})
|
|
930
|
+
expected_url = (
|
|
931
|
+
custom_url
|
|
932
|
+
+ '/v1/projects/earthengine-legacy/maps/DOCID/tiles/{z}/{x}/{y}'
|
|
933
|
+
)
|
|
934
|
+
self.assertEqual(expected_url, actual_result['tile_fetcher'].url_format)
|
|
909
935
|
|
|
910
936
|
def test_get_thumbnail_default(self):
|
|
911
937
|
cloud_api_resource_raw = mock.MagicMock()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/requires.txt
RENAMED
|
File without changes
|
{earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/earthengine_api.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{earthengine_api-1.7.10rc0 → earthengine_api-1.7.10rc1}/ee/tests/cloud_api_discovery_document.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|