Skip to content

[Bug]: Delete Field leaves an extrusion or a marker rotation reading the deleted field, without a notice #2081

Closed

Description

@jgregoriorincon

Before you start

  • I searched the existing issues and did not find a duplicate.
  • This is a bug report, not a usage question.

What happened?

edit.deleteField says it removes a field and every reference to it, and it does for the renderer, labels, the data design and diagrams, each with a notice. Three references stay:

With the field gone, the extrusion draws at its constant height and base and the markers stop turning, with nothing said. The saved project keeps the deleted name, so a field added later under that name is picked up again without the user choosing it.

Steps to reproduce

rustgis-cli run --sample --cmd 'layer.extrusion={"layer":"Countries","type":"field","field":"pop_est","factor":0.002}' --cmd 'edit.deleteField={"layer":"Countries","field":"pop_est"}' --cmd 'project.save={"path":"/tmp/deleted.rgis"}'

The output has no notice about the extrusion, and /tmp/deleted.rgis still has "field": "pop_est" in the layer's extrusion.

Expected behavior

As with the other references, each is cleared with one notice per layer: the extrusion's height falls back to its constant, its base field is cleared (the base falls back to its constant), and the marker rotation is removed.

How are you running RustGIS?

Built from source (command line; the desktop app's Delete Field runs the same command).

Version

main at f93576c.

Operating system, browser and graphics

macOS 15 (Darwin 24.6). Not platform-specific.

Sample data

The built-in sample (--sample).

Screenshots or logs

None. Found in a review of #2039.

Activity

  1. added
    unconfirmed possible issue
    on Nov 14, 2026
  2. jgregoriorincon commented on Nov 14, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this one.

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

    unconfirmed possible issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions