Michael Bedward wrote:
> Ah, now I'm confused.
> 
> So does this...
> 
>> Ah, reading the SE 1.1 spec, page 38 (page 46 of the pdf):
>>
>> The value of the fallbackValue attribute is used as a default value, if the
>> SE implementation does not support the function. If the implementation
>> supports the function, then the result value is determined by executing the
>> function
>>
>> So using fallback as the default value would be improper usage,
>> as we do support the function
> 
> ...mean that a fallback is within the scope of the spec or outside it ?
> 
> I don't have any preference - just trying to understand.

Sigh, sorry, I used the wrong names. Fallback as specified in SE 1.1
cannot be used.
What I need is an optional default default value.

<Function name="env">
   <ogc:literal>threshold</ogc:Literal>
</Function>

would return the "threshold" variable, or null if not found, whilst:

<Function name="env">
   <ogc:literal>threshold</ogc:Literal>
   <ogc:literal>0</ogc:Literal>
</Function>

would return the "threshold" variable, or 0 if the variable is not
found.

Does it make sense?
Cheers
Andrea

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to