MCPcopy
hub / github.com/google/earthengine-api / fetch_tile

Method fetch_tile

python/ee/data.py:1044–1065  ·  view source on GitHub ↗

Fetches the map tile specified by (x, y, z). This method uses any credentials that were specified to ee.Initialize(). Args: x: The tile x coordinate. y: The tile y coordinate. z: The tile zoom level. Returns: The map tile image data bytes. Raises: EE

(self, x: float, y: float, z: float)

Source from the content-addressed store, hash-verified

1042 return self.url_format.format(x=x, y=y, z=z)
1043
1044 def fetch_tile(self, x: float, y: float, z: float) -> Any:
1045 """Fetches the map tile specified by (x, y, z).
1046
1047 This method uses any credentials that were specified to ee.Initialize().
1048
1049 Args:
1050 x: The tile x coordinate.
1051 y: The tile y coordinate.
1052 z: The tile zoom level.
1053
1054 Returns:
1055 The map tile image data bytes.
1056
1057 Raises:
1058 EEException if the fetch fails.
1059 """
1060 return _execute_cloud_call(
1061 _get_cloud_projects_raw()
1062 .maps()
1063 .tiles()
1064 .get(parent=self._map_name, x=x, y=y, zoom=z)
1065 )
1066
1067
1068def computeValue(obj: computedobject.ComputedObject) -> Any:

Callers 1

runMethod · 0.80

Calls 4

_execute_cloud_callFunction · 0.85
_get_cloud_projects_rawFunction · 0.85
mapsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected