cancel
Showing results for 
Search instead for 
Did you mean: 

WAD - Map Item - How to modify class ranges?

Former Member
0 Kudos

I am trying to create a template in WAD, and want to include a map item to display data by country. I am using a CS map renderer, and if I use the default class definitions, everything is fine, but I want to define my own ranges. I have specified that I want to use three classes, and I'm trying to set the values in the "List of Class Limits" by setting the upper class limits. My data is percentages, so I want to create three classes (< 0%, 0-5%, >5%).

I would think that the right way to do this would be to create three classes and specify two upper class limits of 0 and 5. No matter what I try, it seems that the template just picks it's own ranges. Am I specifying the ranges incorrectly, or is this just not possible?

Here is the resulting XHTML for my map item:


                <bi:MAP_ITEM name="MAP_ITEM_1" designheight="400" designwidth="928" >
                    <bi:WIDTH value="928" />
                    <bi:HEIGHT value="400" />
                    <bi:MAPLAYER_LIST type="ORDEREDLIST" >
                        <bi:MAPLAYER type="COMPOSITE" index="1" >
                            <bi:MAP_RENDERER value="CS" />
                            <bi:DATA_PROVIDER_REF value="DP_1" />
                            <bi:LINKED_DATA_PROVIDER_REF_LIST type="ORDEREDLIST" >
                                <bi:LINKED_DATA_PROVIDER_REF index="1" value="DP_1" />
                            </bi:LINKED_DATA_PROVIDER_REF_LIST>
                            <bi:CLASSES value="3" />
                            <bi:COLOR_SETTINGS type="COMPOSITE" >
                                <bi:COLOR_START value="#FF8080" />
                                <bi:COLOR_END value="#80FF80" />
                                <bi:COLOR_INTERPOLATION value="HSB" />
                            </bi:COLOR_SETTINGS>
                            <bi:EXCEPTIONS_VISIBLE value="" />
                            <bi:VISIBLE value="X" />
                            <bi:LEGEND_VISIBLE value="" />
                            <bi:COLOR_LIST type="ORDEREDLIST" >
                                <bi:COLOR index="1" value="#FF8080" />
                                <bi:COLOR index="2" value="#FFFF80" />
                                <bi:COLOR index="3" value="#80FF80" />
                            </bi:COLOR_LIST>
                            <bi:BREAK_LIST type="ORDEREDLIST" >
                                <bi:BREAK index="1" value="0" />
                                <bi:BREAK index="2" value="5" />
                            </bi:BREAK_LIST>
                            <bi:BREAKS_DISTRIBUTED value="" />
                        </bi:MAPLAYER>
                    </bi:MAPLAYER_LIST>
                    <bi:PROJECTION value="FLAT" />
                </bi:MAP_ITEM>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Richard,

I am struggling with exactly the same issue. Did you find any appropriate solution in the meantime or did you capitulate?

Thanks you in advance&regards

Marcus

Former Member
0 Kudos

Hi,

For colour shading renderer,how did you set initial colour and end colour?In color_settings select three colours for your purpose and in color_list you spcify values here.The colur you select as initial colour set the smallest value which is 0 and for the second colour specify largest value which is 5 and for the end-colour specify some value may be 100%(shouldnot be more than that).Earlier you were not specifying the end value thats why its not displaying.i hope the shape files are loaded successfully.

Chandu

Former Member
0 Kudos

For colour shading renderer,how did you set initial colour and end colour?

In the properties of the renderer, under the colour settings group, I selected the start and end colours using the colour selection tool provided. I also selected HSB because this seems to provide the correct colours in the legend that I am looking for.

In color_settings select three colours for your purpose and in color_list you spcify values here.

In the colour settings, you choose the start and end colour and color interpolation. In the color list, you can choose a number of different colours. For both of these, you can only choose colors. In the color list, I selected the three colors that I want to use to represent my data (red, yellow, green), and in the color settings, I selected the start (red) and end (green) colors.

The colur you select as initial colour set the smallest value which is 0 and for the second colour specify largest value which is 5 and for the end-colour specify some value may be 100%(shouldnot be more than that).

As mentioned in previous response, in the color list, one can only choose colours, so I'm a little confused by this. I assume that you mean to enter these values in the list of class limits, which corresponds to the BREAK_LIST in the XHTML. Also, the data that I am attempting to display in the map corresponds to PCT Growth, so it is possible for the value to be greater than 100.

Earlier you were not specifying the end value thats why its not displaying.

I specified a third upper class limit value of 9999 in the list of class limits, and that didn't seem to help. That gave me three upper class limit selections of (1,5,9999) in the code, but the results were still not affected.

i hope the shape files are loaded successfully.

Yes, the shape files are successfully loaded.

Edited by: Richard Kromkamp on Dec 11, 2008 11:27 AM