Hi folks,

I'm looking at getting the Recode function working but, as usual, the
symbology encoding specs are quiet about some of the fiddly bits...
It's basically just a table lookup.

Questions: What do we return if the lookup value isn't found ?  Should
text lookups be case-insensitive ? (I would think so)

Here is the spec for info...

Recoding: Transformation of discrete values to any other values. This
is needed when integers have to be translated into text or, reversely,
text contents into other texts or numeric values or colors.

Recoding is defined by the Recode element:

<xsd:element name="Recode" type="se:RecodeType"
substitutionGroup="se:Function"/>
<xsd:complexType name="RecodeType">
    <xsd:complexContent>
        <xsd:extension base="se:FunctionType">
            <xsd:sequence>
                <xsd:element ref="se:LookupValue"/>
                <xsd:element ref="se:MapItem" maxOccurs="unbounded"/>
            </xsd:sequence>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

<xsd:element name="MapItem" type="se:MapItemType"
substitutionGroup="ogc:expression"/>
<xsd:complexType name="MapItemType">
    <xsd:complexContent>
        <xsd:extension base="ogc:ExpressionType">
            <xsd:sequence>
                <xsd:element ref="se:Data"/>
                <xsd:element ref="se:Value"/>
            </xsd:sequence>
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

This function recodes values from a property or expression into
corresponding values of arbitrary type. The comparisons are performed
checking for identical values.

------------------------------------------------------------------------------

_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to