Summary: | [SECTStudio-Classifier] Adding Classes at button vs. top of list | ||
---|---|---|---|
Product: | MapLab | Reporter: | Chris Thorne <cthorne@dmsolutions.ca> |
Component: | SECT (Studio) | Assignee: | maplab-dev <maplab-dev@lists.maptools.org> |
Status: | NEW | ||
Severity: | enhancement | ||
Priority: | P4 | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
this has to do with the way that mapserver renders classes. You might expect it to work the same way as all the other types of drawing, i.e. it draws each object one after the other (like layers and styles). This is not how classes work. Each feature in a layer is drawn according to the class that it fits into. This means that mapserver evaluates each class as it finds it and if the layer fits the class (expression) then it will use the styles of that class to render the feature and then move to the next feature. This is the important part to understand. It will draw the first class it finds and never draw another one. This means that if you have two classes that could draw the same feature, with two complementary styles (one is a fill and one is an outline for instance) only one class will be used and you will see either the outline or the fill depending on which class comes first in the map file. So when you add a catch-all class at the top of the list, every feature will end up being drawn by that class. There is no 'on top' with mapserver classes ... the debate to add rows before or after the selected one is semi-religious. I think that we will always get different opinions on this issue. I believe that this is a documentation issue and nothing should be done to change it. Well, there could be one thing ... we could have two insert buttons ... an insert before and an insert after button, which I have seen in OpenOffice table functionality ...
dropping to P4 enhancement pending feedback from a larger group
I like the twi insert buttons idea. I think that would solve the usability part of this issue.
I think that is a good idea, I have another suggestion. The order of the classes of a single layer is only a problem, when you have one class that has no expression. Meaning it will apply the style to everything vs. a second class that has an expression and only styles a few of the total layer. If the class with the expression is on the bottom of the class list it will be overwritten by the class with no expression value defined. My suggestion is that some how if the user has already built the style for the no expression layer, than the new layer should be placed above this layer. Just a thought.