Skip to content

[Bug]: QGIS and ArcGIS imports of picture markers give a wrong notice, or none, for valid inputs #2986

Done

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?

Four inputs of a picture marker (#2266) are noted wrongly or not at all when a QGIS project or style, or an ArcGIS
service, is imported:

  1. An image from an expression (QGIS). A raster image marker whose image is set by a field or an expression has an
    empty imageFile; the import says "raster image markers with no image" (crates/map/src/qgis/symbol.rs:971), though
    QGIS draws one.
  2. A file: address (QGIS). imageFile="file:///home/u/pin.png" is a local file, but any :// is taken for a web
    address ("whose image is at a web address, which RustGIS doesn't fetch", symbol.rs:917). The tile sources already
    read a file: address (source.rs:597). A file://server/share/pin.png, with a host, is a network share, and gets
    the same wrong text.
  3. A path starting with // (QGIS). On Linux and macOS //usr/share/pin.png is a local path, but any path starting
    with two slashes is taken for a network share and not read (symbol.rs:919). On Windows //host/share is one.
  4. A height of 0 (ArcGIS). An esriPMS symbol with no width above 0 and a height of 0 is drawn at size 0 (not
    shown) under a notice that says it is drawn with its height as its width; with a width above 0 and a height of 0 it
    is drawn with no notice (crates/map/src/arcgis_style.rs:495).

Steps to reproduce

  1. In QGIS give a point layer a Raster Image Marker and set its image path from an expression (data-defined override).
    Run style.importQgis on the saved .qml: "with no image".
  2. Set the image path to file:///home/u/pin.png (a file that exists), import: "web address".
  3. On Linux set it to //home/u/pin.png, import: "network share".
  4. Add an ArcGIS layer whose symbol is {"type": "esriPMS", "imageData": "<base64 PNG>", "width": 0, "height": 0}:
    the marker doesn't show, and the notice says it is drawn with its height as its width.

Expected behavior

  1. A notice that says the image comes from a field or an expression. 2. The file is read. A file: address with a host
    says network share. 3. A path starting with // is read where it is a local path (not on Windows). 4. A height of 0 is
    "no size", drawn at RustGIS's, and noted; with a width, a height of 0 is noted.

How are you running RustGIS?

Desktop app (built from source)

Version

main at 54d7854

Operating system, browser and graphics

Linux (Fedora), any.

Sample data

No response

Screenshots or logs

No response

Activity

  1. added
    bug
    on Nov 25, 2026
  2. jgregoriorincon commented on Nov 25, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

  3. jgregoriorincon commented on Nov 28, 2026

    @jgregoriorincon
    ContributorAuthor

    Points 1, 2 and 4 landed in #2989. Point 3 is closed as intended behaviour: a path starting with // stays a network share on every platform. A project may be opened on Windows, where //host/share is one, and paths::is_absolute_local already refuses // for linked layers on every platform, so an image isn't read where its neighbour layer is refused (crates/map/src/qgis/symbol.rs, network_share).

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions