Skip to content

Commit

Permalink
[Unusued yet] Add extensions list in STACUtil class
Browse files Browse the repository at this point in the history
  • Loading branch information
jgasperi committed Sep 24, 2024
1 parent 1305302 commit 3128af9
Showing 1 changed file with 217 additions and 0 deletions.
217 changes: 217 additions & 0 deletions app/resto/core/utils/STACUtil.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
<?php
/*
* Copyright 2024 Jérôme Gasperi
*
* Licensed under the Apache License, version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

class STACUtil
{

public static $extensions = array(
'acuracy' => array(
'id' => ' https://stac-extensions.github.io/accuracy/v1.0.0-beta.1/schema.json',
'scope' => array(
'Item',
'Collection'
)
),
'altm' => array(
'id' => 'https://stac-extensions.github.io/altimetry/v0.1.0/schema.json',
'scope' => array(
'Item'
)
),
'auth' => array(
'id' => 'https://stac-extensions.github.io/authentication/v1.1.0/schema.json',
'scope' => array(
'Item', 'Catalog', 'Collection', 'Item', 'Asset', 'links'
)
),
'cf' => array(
'id' => 'https://stac-extensions.github.io/cf/v0.2.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'cube' => array(
'id' => 'https://stac-extensions.github.io/datacube/v2.2.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'eo' => array(
'id' => 'https://stac-extensions.github.io/eo/v2.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'file' => array(
'id' => 'https://stac-extensions.github.io/file/v2.1.0/schema.json',
'scope' => array(
'Item', 'Catalog', 'Collection'
)
),
'forecast' => array(
'id' => 'https://stac-extensions.github.io/forecast/v0.1.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'grid' => array(
'id' => 'https://stac-extensions.github.io/grid/v1.1.0/schema.json',
'scope' => array(
'Item'
)
),
'label' => array(
'id' => 'https://stac-extensions.github.io/label/v1.0.1/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'landsat' => array(
'id' => 'https://stac-extensions.github.io/landsat/v2.0.0/schema.json',
'scope' => array(
'Item'
)
),
'ml-aoi' => array(
'id' => 'https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json',
'scope' => array(
'Item', 'Collection', 'Asset', 'Links'
)
),
'ml-model' => array(
'id' => 'https://stac-extensions.github.io/ml-model/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'mlm' => array(
'id' => 'https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json',
'scope' => array(
'Item', 'Collection', 'Asset', 'Links'
)
),
'mgrs' => array(
'id' => 'https://stac-extensions.github.io/mgrs/v1.0.0/schema.json',
'scope' => array(
'Item'
)
),
'order' => array(
'id' => 'https://stac-extensions.github.io/order/v1.1.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'pc' => array(
'id' => 'https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'processing' => array(
'id' => 'https://stac-extensions.github.io/processing/v1.2.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'proj' => array(
'id' => 'https://stac-extensions.github.io/projection/v2.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'raster' => array(
'id' => 'https://stac-extensions.github.io/raster/v2.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'sar' => array(
'id' => 'https://stac-extensions.github.io/sar/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'sat' => array(
'id' => 'https://stac-extensions.github.io/sat/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
's1' => array(
'id' => 'https://stac-extensions.github.io/sentinel-1/v0.2.0/schema.json',
'scope' => array(
'Item'
)
),
's2' => array(
'id' => 'https://stac-extensions.github.io/sentinel-2/v1.0.0/schema.json',
'scope' => array(
'Item'
)
),
's5p' => array(
'id' => 'https://stac-extensions.github.io/sentinel-5p/v0.2.0/schema.json',
'scope' => array(
'Item'
)
),
'ssys' => array(
'id' => 'https://stac-extensions.github.io/ssys/v1.1.0/schema.json',
'scope' => array(
'Item', 'Catalog', 'Collection'
)
),
'stats' => array(
'id' => 'https://stac-extensions.github.io/stats/v0.2.0/schema.json',
'scope' => array(
'Catalog', 'Collection'
)
),
'storage' => array(
'id' => 'https://stac-extensions.github.io/storage/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'tiles' => array(
'id' => 'https://stac-extensions.github.io/tiled-assets/v1.0.0/schema.json',
'scope' => array(
'Item', 'Catalog', 'Collection'
)
),
'video' => array(
'id' => 'https://stac-extensions.github.io/video/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'view' => array(
'id' => 'https://stac-extensions.github.io/view/v1.0.0/schema.json',
'scope' => array(
'Item', 'Collection'
)
),
'xarray' => array(
'id' => 'https://stac-extensions.github.io/xarray-assets/v1.0.0/schema.json',
'scope' => array(
'Asset'
)
)
);

}

0 comments on commit 3128af9

Please sign in to comment.