MCPcopy
hub / github.com/gee-community/geemap / get

Method get

geemap/ai.py:895–905  ·  view source on GitHub ↗

Matches dict's get by returning None if there is no item. Args: item: The key of the item to get. default: Value to return if the item is not found. Defaults to None. Returns: The value of the item or the default value.

(self, item: str, default: Any | None = None)

Source from the content-addressed store, hash-verified

893 return self.stac_json[item]
894
895 def get(self, item: str, default: Any | None = None) -> Any | None:
896 """Matches dict's get by returning None if there is no item.
897
898 Args:
899 item: The key of the item to get.
900 default: Value to return if the item is not found. Defaults to None.
901
902 Returns:
903 The value of the item or the default value.
904 """
905 return self.stac_json.get(item, default)
906
907 def public_id(self) -> str:
908 """Gets the public ID of the collection.

Callers 15

is_deprecatedMethod · 0.95
tree_node.tsFile · 0.45
updateMethod · 0.45
tab_panel.tsFile · 0.45
toolbar_item.tsFile · 0.45
toolbar.tsFile · 0.45
layer_editor.tsFile · 0.45
palette_editor.tsFile · 0.45
color_picker.tsFile · 0.45
legend.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected