NASA-IMPACT / veda-docs

Documentation for the VEDA Project
https://nasa-impact.github.io/veda-docs
Apache License 2.0
7 stars 7 forks source link

Demonstrate how to load VEDA COG layers in GIS via TiTiler #88

Closed anayeaye closed 11 months ago

anayeaye commented 1 year ago

What

Generate documentation/usage examples to showcase how VEDA's COG data can be accessed directly via TiTiler requests in GIS. Below are a couple examples to start the discussion of how we can expose this capability. These quick and dirty examples are probably not properly demonstrating the capability but do load in QGIS and are a starting point.

Note: these same urls could have been loaded as QGIS layers with the {z}/{x}/{y} endpoints this method does not provide pixel data (just a pre-rendered color layer)

Register STAC search pattern

Register a STAC Item search and then format a url. This URL can be added to QGIS>Add Layer>Add WMT(S) Layer. titiler-pgstac docs

Search

{
      "filter": {
        "op": "and",
        "args": [
          {
            "op": ">=",
            "args": [
              {
                "property": "datetime"
              },
              "2022-02-12T00:00:00.000Z"
            ]
          },
          {
            "op": "<=",
            "args": [
              {
                "property": "datetime"
              },
              "2022-02-12T23:59:59.999Z"
            ]
          },
          {
            "op": "eq",
            "args": [
              {
                "property": "collection"
              },
              "co2-mean"
            ]
          }
        ]
      },
      "filter-lang": "cql2-json"
    }

Formatted WMTS URL can be used to load layer in a GIS project https://staging-raster.delta-backend.com/mosaic/680ad347898eae0f6e9c4834ad10b740/WMTSCapabilities.xml?assets=cog_default&colormap_name=rdylbu_r&rescale=0.000408,0.000419

Stac/collection//items/ pattern

Collection social-vulnerability-index-overall, Item=svi_2018_tract_overall_wgs84_cog

Formatted URL can be used to load layer in a GIS project https://staging-raster.delta-backend.com/stac/WMTSCapabilities.xml?collection=social-vulnerability-index-overall&item=svi_2018_tract_overall_wgs84_cog&assets=cog_default&resampling=bilinear&bidx=1&colormap_name=ylgnbu&rescale=0,1

Related issues

Provide WMTS links for STAC assets veda-architecture/#293 Can we surface tiler links? veda-ui/#594

AC

anayeaye commented 1 year ago

additional examples:

SVI via stac search

This shows how a url can be formatted for a given collection id and item id https://staging-raster.delta-backend.com/stac/WMTSCapabilities.xml?collection=social-vulnerability-index-overall&item=svi_2018_tract_overall_wgs84_cog&assets=cog_default&resampling=bilinear&bidx=1&colormap_name=ylgnbu&rescale=0,1

NO2 via registered mosaic

This shows how to format the URL for a registered stac search (this would be the pattern of copying a search id from the dashboard) https://staging-raster.delta-backend.com/mosaic/680ad347898eae0f6e9c4834ad10b740/WMTSCapabilities.xml?assets=cog_default&colormap_name=rdylbu_r&rescale=0.000408,0.000419

ecco-surface-height-change via cog

This shows formatting a url from a known s3 url https://staging-raster.delta-backend.com/cog/WMTSCapabilities.xml?url=s3://veda-data-store-staging/EIS/COG/SSH_2017_minus_1992.cog.tif&assets=cog_default&colormap_name=rdbu&rescale=-0.313,0.313

anayeaye commented 1 year ago
raster-api-wmts-gis
anayeaye commented 1 year ago

Some useful (and less useful) docs from @wildintellect that we may want to provide in the veda-docs VEDA in GIS tutorial: https://esribelux.com/2021/04/16/xyz-tile-layers-in-arcgis-platform/ https://pro.arcgis.com/en/pro-app/latest/help/data/services/use-tiled-web-layers.htm

anayeaye commented 11 months ago

There are now dashboard features that provide formatted URLs for loading in a GIS application