Loading styles issue
|Assigned to:||-||% Done:||
|Target version:||Version 2.0.0|
|Platform version:||Affected version:||1.8.0|
|Status info:||Causes crash or corruption:||No|
This one may be a bit hard to explain.
1) I load a shapefile, it has exactly one attribute column (we'll call it "alpha") it displays fine.
2) I go to style -> Categorised, and click "classify". This gives me a random looking classification, but displays fine.
3) I click "load style", navigate to a style (which is set to a different column "beta"), and click ok. Style loads fine, but all map data disappears.
4) I confirm that the "column" is correct (there's only one column in my shapefile remember).
To get my data showing again, I have to click "classify", then when a box pops up asking me to "confirm delete" I have to click "no". This then makes my data display properly with the correct classification from the loaded file.
I guess this may be because there's only one column in the shapefile (which is different), but it may also happen if the style column is the first of a set of columns in a shapefile.
Updated by Jonathan Moules 8 months ago
If I change the QML file such that:
<renderer-v2 attr="RANDOM_COLUMN_NAME" symbollevels="0" type="categorizedSymbol">
<renderer-v2 attr="CORRECT_COLUMN" symbollevels="0" type="categorizedSymbol">
and then load it (Step 3), it renders correctly.
(It looks like the bold thing doesn't work for highlighting in those sentences for some reason.