Skip to content

Behaviour decisions needed: zonal masks, CSV coordinates, field references and UI state (2026-11 sweep) #2643

Open

Description

@giswqs

These came out of the 2026-11 release quality sweep, which went through review points deferred to the release quality pass (style, design or follow-up comments on merged pull requests). Points that were real but needed a design decision, a measurement or more than a small fix were grouped here instead of being fixed in place. Each section states the problem, where it lives on main, and the review comments it came from; tick the boxes as parts land, and split a section into its own issue when someone picks it up.

Zonal polygon masks: invalid holes, 0-360 degree rasters, Mercator-equivalent systems

Zonal Statistics, Tabulate Area and the other zonal tools share one mask path that checks coordinates and vertex counts but not that a hole lies inside its exterior, so the even-odd fill silently counts a hole outside its ring as area. It doesn't wrap zones into a geographic raster stored 0-360 degrees: a zone at -100 gets zeros, and the "no valid cell centres" notice is then false. A GeoTIFF whose own Mercator arrives as Crs::Custom takes the planar-area branch; the result is noted but about 4x off at 60N.

Main paths: crates/analysis/src/rasterops.rs (transform_feature_polygons_to_lonlat, polygon_mask_with_failures), crates/analysis/src/tools/tabulate_area.rs (~229)

  • Refuse or count holes outside their exterior
  • Normalise zone longitudes for 0-360 rasters
  • Recognise Web Mercator equivalents where the reader builds the CRS

From: #2255, #2255, #2255, #2255, #2255

CSV and spreadsheet coordinate-column inference

The reader picks X/Y or longitude/latitude for the whole file by a coverage count, so rows with valid X/Y but no lon/lat lose their point, one out-of-range X/Y row can switch the whole file, and no notice names which pair placed the points. With a projected crs, found_xy follows header order, so Longitude,Latitude,X,Y with EPSG:2263 reads degrees as feet silently; projected 0,0 placeholders aren't counted because the count runs after conversion. The export's coordinates note doesn't mirror the reader's choice, and the Add Data dialog drops the user's picks when a CRS is typed. This needs one decision on the rules (per file or per row, a share threshold, easting/northing names first when the system is projected), then tests.

Main paths: crates/data/src/ delimited text and spreadsheet readers (found_xy), the export coordinates note

  • Decide the rules (per file vs per row, threshold, projected-name preference)
  • Notice naming the pair that placed the points
  • Count projected 0,0 placeholders before conversion
  • Export note mirrors the reader's choice

From: #2136, #2136, #2136, #2136, #2136, #2136, #2136

Changing a field's type leaves references to it in place

edit.convertField updates nothing that reads the field, so a Size-by mapping (Layer::size_by) or marker rotation on a field converted to text stays in place and points quietly draw at their class size or unrotated. delete_field already clears size mappings with a notice. Converting a field needs the same audit of every reference (size_by, marker rotation, labels, expressions), with a rule per reference: clear, keep, or notify.

Main paths: crates/engine/src/cmd/edit.rs (edit.convertField, delete_field), crates/map/src/ (Layer::size_by)

  • Audit every reference to a field
  • Apply clear/keep/notify per reference on convert

From: #2130

Two rules for matching field names by letter case

Commands that take a field match the first field with that name ignoring letter case (field_of), while attributes objects match an exact name first (given_attributes). With fields Name and name, edit.setValue {"field":"name"} writes Name while edit.addFeature {"attributes":{"name":...}} writes name. Making them agree changes an existing contract, so a maintainer has to decide which rule wins.

Main paths: crates/engine/src/cmd/ (field_of, given_attributes)

  • Decide the rule
  • Apply it to both paths and document it

From: #1955

UI state that outlives a background reload, project switch or recording

A label drag in progress when a reload lands can apply the old position to a replacement feature with the same id; an open identify pop-up keeps showing a reloaded layer's old attributes; a STAC catalog listing asked for before project.new lands in the new project's panel and notices; and a background Export Table that lands after one Record Task stops and another starts is recorded into the second. Each needs an identity (a source revision, the project it was opened in, a recording generation) checked when the work lands.

Main paths: crates/ui-egui/src/ (label drag, identify pop-up, STAC panel, task recording)

  • Label drag checks the source revision
  • Identify pop-up refreshes or closes on reload
  • STAC listing tied to its project
  • Background export tied to its recording generation

From: #1505, #1505, #2128, #2246

Changed-on-disk watch: file identity on case-insensitive filesystems and symlinks

diskwatch keys a watched file by its path as given, normalised lexically with case kept. On macOS and Windows one file reached under two spellings gets two keys, so RustGIS's own save through the other spelling reads as an outside change and notices double; a symlink plus .. can put two files under one key, so the second is never watched. A fix needs a choice between per-platform case folding and comparing file identity (dev/inode, or the Windows file index).

Main paths: crates/ui-egui/src/diskwatch.rs

  • Choose case folding or file identity
  • Test on macOS and Windows (ci:full)

From: #1804, #1804, #1804

Globe frame outline in a locator stops short of the disc rim

Where a frame's outline leaves the visible disc, the stroke breaks at the last visible sample (16 per edge), up to a sixteenth of an edge short of the rim (about 2.5 mm on a 40 mm frame). The author agreed to a follow-up with the flat-source chord case, but none was filed. Bisect each visible/invisible transition to the rim, a few inverse calls per break.

Main paths: crates/render/src/ layout locator (globe frame outline)

  • Bisect outline breaks to the rim
  • Flat-source chord case

From: #2355, #2355

Lower priority

  • Line tools' layer chooser lists only line layers (needs a new ParamKind; the runners already validate). From: #1306
  • The Size-by draft's default of 0-100 values: fill it from a background range scan. From: #2130, #2130

Activity

  1. added
    needs-lead-decision
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-lead-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions