コード例 #1
0
    def _extract_feature_indexes(_feature_collection):
        def action():
            return _feature_collection.aggregate_array(
                'system:index').getInfo()

        return execute(credentials,
                       action,
                       description='Feature indexes from FeatureCollection')
コード例 #2
0
ファイル: time_series_to_sepal.py プロジェクト: sumesh1/sepal
    def _to_geometries(_feature_collection, feature_indexes) -> Observable:
        def action():
            return [
                ee.Feature(
                    _feature_collection
                        .filterMetadata('system:index', 'equals', feature_index)
                        .first()
                ).geometry()
                for feature_index in feature_indexes
            ]

        return execute(credentials, action, description='FeatureCollection to geometries')