Skip to content

Update lulc tile mapping#40

Open
Beldine-Moturi wants to merge 8 commits intomainfrom
update-lulc-tile-mapping
Open

Update lulc tile mapping#40
Beldine-Moturi wants to merge 8 commits intomainfrom
update-lulc-tile-mapping

Conversation

@Beldine-Moturi
Copy link
Copy Markdown
Contributor

@Beldine-Moturi Beldine-Moturi commented Mar 30, 2026

Summary

Related Issue (optional)

How to test this PR?

  • Use this image: quay.io/geospatial-studio/geostudio-pipelines:update-lulc-tile-mapping

  • Submit inference that triggers lulc mapping in post processing step. Test that post processing step runs without failing

  • Sample payload for testing:

{
  "model_id": "88cc4030-0c4a-497c-90cb-3d7a0e9fd371",
  "location": "Dakhin Petbaha, Raha, Nagaon, Assam, India",
  "description": "Flood Assam 1305",
  "geoserver_push": [
    {
      "z_index": 0,
      "workspace": "geofm",
      "layer_name": "input_rgb",
      "file_suffix": "",
      "display_name": "Input image (RGB)",
      "filepath_key": "model_input_original_image_rgb",
      "geoserver_style": {
        "rgb": [
          {
            "label": "RedChannel",
            "channel": 1,
            "maxValue": 255,
            "minValue": 0
          },
          {
            "label": "GreenChannel",
            "channel": 2,
            "maxValue": 255,
            "minValue": 0
          },
          {
            "label": "BlueChannel",
            "channel": 3,
            "maxValue": 255,
            "minValue": 0
          }
        ]
      },
      "visible_by_default": "True"
    },
    {
      "z_index": 1,
      "workspace": "geofm",
      "layer_name": "pred",
      "file_suffix": "",
      "display_name": "Model prediction",
      "filepath_key": "model_output_image_masked",
      "geoserver_style": {
        "segmentation": [
          {
            "color": "#808080",
            "label": "No flood",
            "opacity": 0,
            "quantity": "0"
          },
          {
            "color": "#FA4D56",
            "label": "Flood",
            "opacity": 1,
            "quantity": "1"
          },
          {
            "color": "#4589FF",
            "label": "Permanent water",
            "opacity": 1,
            "quantity": 997
          },
          {
            "color": "#FFFAFA",
            "label": "Snow/ice",
            "opacity": 1,
            "quantity": 998
          },
          {
            "color": "#CCCCCC",
            "label": "Clouds",
            "opacity": 1,
            "quantity": 999
          }
        ]
      },
      "visible_by_default": "True"
    }
  ],
  "spatial_domain": {
    "bbox": [
      [
        92.4872138472571,
        26.194226154319196,
        92.7450370355971,
        26.32733412473285
      ]
    ],
    "urls": [],
    "tiles": [],
    "polygons": []
  },
  "post_processing": {
    "cloud_masking": "False",
    "ocean_masking": "False",
    "snow_ice_masking": null,
    "permanent_water_masking": "True"
  },
  "temporal_domain": [
    "2024-07-25_2024-07-28"
  ],
  "model_input_data_spec": [
    {
      "bands": [
        {
          "index": 0,
          "RGB_band": "R",
          "band_name": "red",
          "scaling_factor": 1
        },
        {
          "index": 1,
          "RGB_band": "G",
          "band_name": "green",
          "scaling_factor": 1
        },
        {
          "index": 2,
          "RGB_band": "B",
          "band_name": "blue",
          "scaling_factor": 1
        },
        {
          "index": 3,
          "band_name": "nir08",
          "scaling_factor": 1
        },
        {
          "index": 4,
          "band_name": "swir16",
          "scaling_factor": 1
        },
        {
          "index": 5,
          "band_name": "swir22",
          "scaling_factor": 1
        },
        {
          "index": 6,
          "band_name": "scl",
          "scaling_factor": 1
        }
      ],
      "connector": "sentinel_aws",
      "collection": "sentinel-2-l2a",
      "file_suffix": "S2Hand"
    }
  ]
}

Screenshots / Logs (optional)

Checklist

  • This PR targets the main branch
  • I have added or updated relevant docs.
  • I have not included any secrets or credentials.
  • Linting and formatting checks pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants