Skip to content

Enabling Time Dimension for mapalgebrasourceconf on Temporal Layers #262

@jfbourgon

Description

@jfbourgon

WMS Time Dimension ans WCS TemporalDomain are not available for mapalgebrasourceconf defined from Temporal Layers.

Here are examples of rastersourceconf and mapalgebrasourceconf configurations derived from a GeoTrellisRasterSource layer with a Time index and the related WMS/WCS GetCapabilities outputs.

WMS Time Dimension ans WCS TemporalDomain are currently missing for blue-normalized layer but the temporal extent could be derived from the underlying layer.

It is also unclear with the current approach which temporal period is used and served when the blue-normalized layer is requested.

    blue = {
        type = "rastersourceconf"
        name = "blue"
        title = "Blue band of LandSat Mosaic"
        source = "gt+s3://datacube-dev-data/landsat/mosaic?layer=blue&zoom=12&band_count=1"
        overview-strategy = "auto-0"
        default-style = "default"
        styles = [   ]
    },
    blue-normalized = {
        type = "mapalgebrasourceconf"
        name = "blue-normalized"
        title = "Normalized Blue Band from LandSat Mosaic"
        algebra = {
            "args": [
              {
                "args": [
                  {
                    "name": "blue",
                    "symbol": "rasterV"
                  }
                ],
                "min": 755,
                "max": 1206,
                "symbol": "clamp"
              }
            ],
            "oldMin": 755,
            "oldMax": 1206,
            "newMin": 1,
            "newMax": 255,
            "symbol": "normalize"
        }
        default-style = "default"
        styles = [   ]
    }

Current WMS GetCapabilities output

<Layer queryable="false">
<Name>blue</Name>
<Title>Blue band of LandSat Mosaic</Title>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:3857</CRS>
<CRS>EPSG:3978</CRS>
<CRS>EPSG:4617</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-132.52498626708984</westBoundLongitude>
<eastBoundLongitude>-109.53669968643615</eastBoundLongitude>
<southBoundLatitude>56.43872633996942</southBoundLatitude>
<northBoundLatitude>67.28291708781089</northBoundLatitude>
</EX_GeographicBoundingBox>
<Dimension default="2014-07-01T12:00Z" units="ISO8601" name="time">2014-07-01T12:00:00Z/2016-07-01T12:00:00Z</Dimension>
</Layer>

<Layer queryable="false">
<Name>blue-normalized</Name>
<Title>Normalized Blue Band from LandSat Mosaic</Title>
<CRS>EPSG:4326</CRS>
<CRS>EPSG:3857</CRS>
<CRS>EPSG:3978</CRS>
<CRS>EPSG:4617</CRS>
<EX_GeographicBoundingBox>
<westBoundLongitude>-132.52498626708984</westBoundLongitude>
<eastBoundLongitude>-109.53669968643615</eastBoundLongitude>
<southBoundLatitude>56.43872633996942</southBoundLatitude>
<northBoundLatitude>67.28291708781089</northBoundLatitude>
</EX_GeographicBoundingBox>
</Layer>

Current WCS GetCoverage output

<CoverageDescription>
<ows:Title>Blue band of LandSat Mosaic</ows:Title>
<Identifier>blue</Identifier>
<Domain>
<SpatialDomain>
<ows:BoundingBox dimensions="2" crs="urn:ogc:def:crs:OGC::imageCRS">
<ows:LowerCorner>0.0 0.0</ows:LowerCorner>
<ows:UpperCorner>66958.0 67791.0</ows:UpperCorner>
</ows:BoundingBox>
<ows:BoundingBox dimensions="2" crs="urn:ogc:def:crs:EPSG::3785">
<ows:LowerCorner>-1.4752613988638015E7 7646263.468965178</ows:LowerCorner>
<ows:UpperCorner>-1.21935787186786E7 1.023713476120537E7</ows:UpperCorner>
</ows:BoundingBox>
<ows:BoundingBox dimensions="2" crs="urn:ogc:def:crs:EPSG::4326">
<ows:LowerCorner>56.43872633996942 -132.52498626708984</ows:LowerCorner>
<ows:UpperCorner>67.28291708781089 -109.53669968643615</ows:UpperCorner>
</ows:BoundingBox>
<ows:WGS84BoundingBox dimensions="2">
<ows:LowerCorner>56.43872633996942 -132.52498626708984</ows:LowerCorner>
<ows:UpperCorner>67.28291708781089 -109.53669968643615</ows:UpperCorner>
</ows:WGS84BoundingBox>
<GridCRS>
<GridBaseCRS>urn:ogc:def:crs:EPSG::3785</GridBaseCRS>
<GridType>urn:ogc:def:method:WCS:1.1:2dSimpleGrid</GridType>
<GridOrigin>-1.4752613988638015E7 1.023713476120537E7</GridOrigin>
<GridOffsets>38.21851414258813 -38.21851414258813</GridOffsets>
<GridCS>urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS</GridCS>
</GridCRS>
</SpatialDomain>
<TemporalDomain>
<gml:TimePosition>2014-07-01T12:00:00Z</gml:TimePosition>
<gml:TimePosition>2015-07-01T12:00:00Z</gml:TimePosition>
<gml:TimePosition>2016-07-01T12:00:00Z</gml:TimePosition>
</TemporalDomain>
</Domain>
...
</CoverageDescription
<CoverageDescription>
<ows:Title>Normalized Blue Band from LandSat Mosaic</ows:Title>
<Identifier>blue-normalized</Identifier>
<Domain>
<SpatialDomain>
<ows:BoundingBox dimensions="2" crs="urn:ogc:def:crs:OGC::imageCRS">
<ows:LowerCorner>0.0 0.0</ows:LowerCorner>
<ows:UpperCorner>66958.0 67791.0</ows:UpperCorner>
</ows:BoundingBox>
<ows:BoundingBox dimensions="2" crs="urn:ogc:def:crs:EPSG::3785">
<ows:LowerCorner>-1.4752613988638015E7 7646263.468965178</ows:LowerCorner>
<ows:UpperCorner>-1.21935787186786E7 1.023713476120537E7</ows:UpperCorner>
</ows:BoundingBox>
<ows:BoundingBox dimensions="2" crs="urn:ogc:def:crs:EPSG::4326">
<ows:LowerCorner>56.43872633996942 -132.52498626708984</ows:LowerCorner>
<ows:UpperCorner>67.28291708781089 -109.53669968643615</ows:UpperCorner>
</ows:BoundingBox>
<ows:WGS84BoundingBox dimensions="2">
<ows:LowerCorner>56.43872633996942 -132.52498626708984</ows:LowerCorner>
<ows:UpperCorner>67.28291708781089 -109.53669968643615</ows:UpperCorner>
</ows:WGS84BoundingBox>
<GridCRS>
<GridBaseCRS>urn:ogc:def:crs:EPSG::3785</GridBaseCRS>
<GridType>urn:ogc:def:method:WCS:1.1:2dSimpleGrid</GridType>
<GridOrigin>-1.4752613988638015E7 1.023713476120537E7</GridOrigin>
<GridOffsets>38.21851414258813 -38.21851414258813</GridOffsets>
<GridCS>urn:ogc:def:cs:OGC:0.0:Grid2dSquareCS</GridCS>
</GridCRS>
</SpatialDomain>
</Domain>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions