Select to view content in your preferred language

Geoprocessing widget - syntax for classbreaks renderer

838
1
09-09-2011 09:06 PM
RogerKoelpin
Emerging Contributor
Hi Folks,

I really need some fresh eyes on the xml for the widget.  I am trying the classbreaks renderer and not having much luck.  I can influence the color of the polygons by changing the defaultsymbol value so I think that I have the service set up properly. 

I am fading fast trying to get the different classes to show up in different colors.

Here is where I am so far:

<outputparams>
[INDENT][INDENT]<param name="DepthOfFlooding_shp"
[INDENT]geometrytype="polygon"
label="Flood Depths"
required="true"
type="featurerecordset"
wkid="26916"[/INDENT]
visible="true"> [/INDENT]
   
[INDENT][INDENT]<renderer type="classbreaks" attribute="GRIDCODE">[INDENT]<defaultsymbol alpha="0.5"
color="0xCC0000"
type="simplefill">
<outline width="1" color="0x000000"/>[/INDENT]</defaultsymbol>[/INDENT]       
  
[INDENT]<infos>
[INDENT]<symbol color="0x33CC00"[INDENT]type="simplefill"
minValue="0"
maxValue="2">
<outline color="0x000000" width="1"/>[/INDENT]</symbol>[/INDENT]

[INDENT]<symbol color="0x00FF00"[INDENT]type="simplefill"
minValue="3"
maxValue="5">
<outline color="0x000000" width="1"/>[/INDENT]</symbol>[/INDENT]

[INDENT]<symbol color="0xFFFF00"[INDENT]type="simplefill"
minValue="6"
maxValue="10">
<outline color="0x000000" width="1"/>[/INDENT]</symbol>[/INDENT]

[INDENT]<symbol color="0xFF6600"[INDENT]type="simplefill"
minValue="11"
maxValue="15">
<outline color="0x000000" width="1"/>[/INDENT]</symbol>[/INDENT]

[INDENT]<symbol color="0xCC0000"[INDENT]type="simplefill"
minValue="16"
maxValue="20">
<outline color="0x000000" width="1"/>[/INDENT]</symbol>[/INDENT]

[INDENT]<symbol color="0xCC00CC"[INDENT]type="simplefill"
minValue="21"
maxValue="100">
<outline color="0x000000" width="1"/>[/INDENT]</symbol>[/INDENT]

</infos>[/INDENT]

</renderer> [/INDENT]
</param>[/INDENT]</outputparams>

Thanks.
Tags (2)
0 Kudos
1 Reply
RogerKoelpin
Emerging Contributor
Got it - 

minValue="0"
maxValue="2"

should be

min="0"
max="2"

Look out now!
0 Kudos