mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
29 lines
646 B
Python
29 lines
646 B
Python
#!/usr/bin/env python
|
|
"""A namespace for Terrain."""
|
|
|
|
|
|
|
|
from . import apifunction
|
|
|
|
# Using lowercase function naming to match the JavaScript names.
|
|
# pylint: disable=g-bad-name
|
|
|
|
|
|
class Terrain(object):
|
|
"""An namespace for Terrain Algorithms."""
|
|
|
|
_initialized = False
|
|
|
|
@classmethod
|
|
def initialize(cls):
|
|
"""Imports API functions to this class."""
|
|
if not cls._initialized:
|
|
apifunction.ApiFunction.importApi(cls, 'Terrain', 'Terrain')
|
|
cls._initialized = True
|
|
|
|
@classmethod
|
|
def reset(cls):
|
|
"""Removes imported API functions from this class."""
|
|
apifunction.ApiFunction.clearApi(cls)
|
|
cls._initialized = False
|