Skip to content

[New Feature]: MMGIS Copilot understands region names and highlights layers using thresholds #797

@midatm1234

Description

@midatm1234

Checked for duplicates

Yes - I've already checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

Summary

User prompts like “Show me the areas where ice thickness is greater than 3 meters around the Beaufort Gyre” still fail because Copilot only understands a couple of hard-coded area presets or whatever happens to be on screen. We need a Bing-powered resolver that can translate arbitrary region names into bboxes/polygons (including buffers) so analytics AND the new threshold-based highlight flow both succeed.

Steps to Reproduce

  1. Load MMGIS and activate Copilot.
  2. Ask: “Highlight ssha > 0.1 near the Labrador Sea.”
  3. Copilot responds with “Unable to resolve geographical area.” and draws nothing.
  4. Try “Show me the areas where ssha is less than 0.1 in the Northern Hemisphere” – same result, so highlight + mean tools can’t run.

Expected

  • Region terms map to authoritative polygons/bboxes (MarineRegions/NOAA/etc.), so both highlight commands (rescale min/max overlays) and analytics stats can run anywhere.
  • Copilot reports which bounds were used, the data sampling method, and the rescaled min/max in its response.

Actual

  • Only three presets work; everything else errors out.
  • No information about sources or buffers is surfaced.
  • Users can’t highlight or compute stats for the desired regions.

Notes

Implementing this unblocks the rescale-based highlight behavior (“Highlight ssha > 0.5”) and analytics fallbacks that require reliable geography inputs.

Describe the feature request

I need or want [...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFor making an existing feature better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions