You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: QGIS and ArcGIS imports of picture markers give a wrong notice, or none, for valid inputs #2986
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:
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.
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.
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.
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
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".
Set the image path to file:///home/u/pin.png (a file that exists), import: "web address".
On Linux set it to //home/u/pin.png, import: "network share".
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
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.
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).
Activity
jgregoriorincon commentedon Nov 25, 2026
I'll take this.
fix(map): a tile archive with an encoded drive colon is pinned to its…
fix(map): a delimitedtext address with an encoded drive colon is on t…
fix(map): a picture marker that draws says a width or height it can't…
style(map): format the csv source's struct literal (opengeos#2986)
fix(map): an image address that joins a root project folder into a ne…
fix(map): unreadable marker sizes are said as left out, a negative he…
test(map): a plain assertion for a single height, a clearer name in t…
fix(map): the circle of an image that doesn't draw says it has no siz…
test(map): a circle's size below 0 is pinned as no size; the height f…
fix(map): QGIS and ArcGIS imports of picture markers note an expressi…
jgregoriorincon commentedon Nov 28, 2026
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/shareis one, andpaths::is_absolute_localalready 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).