#323 closed defect (fixed)
Theme: Individual rule for Numeric property is disordered.
Reported by: | jennyhe | Owned by: | madair |
---|---|---|---|
Priority: | P2 | Milestone: | Future |
Component: | Widgets | Version: | 1.1.1 |
Severity: | Major | Keywords: | |
Cc: | christine.bao@…, Chris.Claydon@… | Browser: | All |
External ID: | 1276835 | Operating System: | All |
state: | New |
Description
Report from Autodesk QA
Steps:
- Open one flexible web layout with Polygon data.
- Theme->Select FeatId, Individual as Distribution rule -> Apply
Results: Please refer to the attached png file, the rule is disordered and not based on the FeatID value. If using one String property, it looks correct.
Expected results; The rule should refer to the value of FeatID.
Attachments (2)
Change History (8)
by , 15 years ago
Attachment: | Theme_Individual_Rule_disordered.PNG added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Because not all providers support order by, another solution is to order the list in memory.
by , 15 years ago
Attachment: | SortTheme.patch added |
---|
comment:3 by , 15 years ago
To support all providers and make code simple, the second solution (sort in memory) is chosen. Please review the attached patch http://trac.osgeo.org/fusion/attachment/ticket/323/SortTheme.patch.
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Test the patch and it works.
The patch is committed to catch up the build. If there is any comment, please feel free to contact me. Thank you.
Tech diagnosis:
The code for getting new area rule is:
It's not order by the property, thus the data are not ordered ascending or descending.
QA report if choose string property, the legend is not disordered. This is not true but a case of the data.
Although featureService has an option to set ordering filter (code as below), it's not supported by all providers, for example it's not supported by SDF. Thus it can't fully solve this problem.