{
  "type": "Feature",
  "stac_version": "1.0.0",
  "stac_extensions": ["https://stac-extensions.github.io/table/v1.2.0/schema.json", "https://stac-extensions.github.io/web-map-links/v1.2.0/schema.json", "https://stac-extensions.github.io/alternate-assets/v1.2.0/schema.json", "https://marinesensitivity.github.io/stac-sdm/v1.0.0/schema.json"],
  "id": "msens-v7-rng_iucn-model_cell",
  "collection": "msens-v7-rng_iucn",
  "bbox": [-180, -18, 180, 75],
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [-180, -18],
        [180, -18],
        [180, 75],
        [-180, 75],
        [-180, -18]
      ]
    ]
  },
  "properties": {
    "sdm:response_type": "range",
    "sdm:method": "expert_range_polygon",
    "sdm:source_authority": "IUCN",
    "sdm:temporal_interval": "static",
    "sdm:value_unit": "unitless",
    "sdm:value_range": [0, 1],
    "datetime": "2025-01-01T00:00:00Z",
    "title": "IUCN Range surfaces, v7",
    "description": "Per-taxon model surfaces stored as model_cell rows; served statically as GeoParquet and dynamically via the DuckDB-SQL TiTiler endpoint."
  },
  "assets": {
    "data": {
      "href": "https://file.marinesensitivity.org/derived/v7/sdm_parquet/model_cell.parquet/",
      "type": "application/vnd.apache.parquet",
      "roles": ["data"],
      "title": "model_cell surfaces (partitioned GeoParquet; filter by mdl_seq)",
      "table:primary_geometry": "cell_id",
      "table:columns": [
        {
          "name": "mdl_seq",
          "type": "int32",
          "description": "model id (FK model.mdl_seq)"
        },
        {
          "name": "cell_id",
          "type": "int32",
          "description": "grid cell id (FK cell.cell_id)"
        },
        {
          "name": "value",
          "type": "double",
          "description": "model value"
        }
      ],
      "alternate": {
        "duckdb_sql": {
          "href": "https://titiler.marinesensitivity.org/msens",
          "alternate:name": "Live DuckDB-SQL surface",
          "roles": ["data"],
          "sdm:sql_template": "SELECT cell_id, value FROM model_cell WHERE mdl_seq = {mdl_seq}"
        }
      }
    }
  },
  "links": [
    {
      "rel": "root",
      "href": "../../catalog.json"
    },
    {
      "rel": "parent",
      "href": "../collection.json"
    },
    {
      "rel": "collection",
      "href": "../collection.json"
    },
    {
      "rel": "xyz",
      "href": "https://titiler.marinesensitivity.org/msens/tiles/{z}/{x}/{y}.png?sql=U0VMRUNUIGNlbGxfaWQsIHZhbHVlIEZST00gbW9kZWxfY2VsbCBXSEVSRSBtZGxfc2VxID0gMQ&colormap=spectral_r",
      "type": "image/png",
      "title": "Rendered raster tiles via TiTiler (DuckDB SQL); re-bake sql= per mdl_seq"
    },
    {
      "rel": "tilejson",
      "href": "https://titiler.marinesensitivity.org/msens/tilejson.json?sql=U0VMRUNUIGNlbGxfaWQsIHZhbHVlIEZST00gbW9kZWxfY2VsbCBXSEVSRSBtZGxfc2VxID0gMQ&colormap=spectral_r",
      "type": "application/json",
      "title": "TileJSON for the DuckDB-SQL surface"
    },
    {
      "rel": "self",
      "href": "https://file.marinesensitivity.org/stac/v7/rng_iucn/msens-v7-rng_iucn-model_cell.json"
    }
  ]
}
