I am trying to display lines with specific attributes contained in a  field
The field (from Mapinfo) contains for example Pen(4, 2, 16711935)
I will need to convert the 3rd number to a hex colour and the first to the line 
thickness
So far I have
       <LineSymbolizer>
                <Stroke>
                                <CssParameter name="stroke">
                                #FF0000
                                </CssParameter>
                                <CssParameter name="stroke-width">
                                <ogc:Function name="strSubstring">
                                                
<ogc:PropertyName>MI_STYLE</ogc:PropertyName>
                                                                
<ogc:Literal>5</ogc:Literal>
                                                                <ogc:Function 
name="strIndexOf">
                                                                                
<ogc:PropertyName>MI_STYLE</ogc:PropertyName>
                                                                                
<ogc:Literal>,</ogc:Literal>
                                                                </ogc:Function>
                                </ogc:Function>
                                </CssParameter>
                </Stroke>
       </LineSymbolizer>
The difficulty is working out how to convert the number 1671168 to the hex 
colour, in this case #FF0000. Has anyone done this before?

Take a look - you can pay, report, request, have your say and find information 
online at www.wrexham.gov.uk.  

Save paper - think before you print!

This e-mail message and any attachments are intended solely for the individual 
or organisation to whom it is addressed. For full conditions in relation to 
content and use of this e-mail message and any attachments, please refer to 
http://www.wrexham.gov.uk/top_navigation/disclaimers.htm.

Mae'r neges e-bost hon ac unrhyw atodiadau wedi eu bwriadu ar gyfer yr unigolyn 
neu?r sefydliad y?i cyfeirir atynt yn unig.
Am yr amodau llawn ynglyn a chynnwys a defnyddio?r neges e-bost hon ac unrhyw 
atodiadau, cyfeiriwch at   
http://www.wrecsam.gov.uk/top_navigation/disclaimersw.htm.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to