Filter Functions

Description

Add better support for custom filter functions.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:27 PM

CodeHaus Comment From: dblasby - Time: Tue, 17 May 2005 16:04:52 -0500
---------------------
<p>I added a bunch of Functions, including some conversion ones,

replacements for ComparisionOps (LessThan ...) since they're not

allowed in &lt;Expression&gt;, and things like "if". There's now about 100

functions.</p>

<p>Here's a more complex example. Its dumb, but it shows you a bunch of

the functions. It ends up being the String "1 Point".</p>

<p>Its done in 3 parts:</p>

<p>A) It creates a 2-point MULTIPOINT ("geomFromWKT"), then gets the first

point ("getGeometryN"), then finds out how many points are in the

Geometry ("getNumPoints"). This results in the integer "1".</p>

<p>B) It then uses an "if-then-else" statement to either make " Points" or

"Point" based on if the above is "1" or something else.</p>

<p>C) It catenates the two things together.</p>

<p>There really is no limit to what you can do!</p>

<p>dave</p>

<p>&lt;Label&gt;

&lt;ogc:Function name="strConcat"&gt;

&lt;ogc:Function name="getNumPoints"&gt;

&lt;ogc:Function name="getGeometryN"&gt;

&lt;ogc:Function name="geomFromWKT"&gt;

&lt;ogc:Literal&gt;MULTIPOINT(0 0,1 1)&lt;/ogc:Literal&gt;

&lt;/ogc:Function&gt;

&lt;ogc:Literal&gt;1&lt;/ogc:Literal&gt;

&lt;/ogc:Function&gt;

&lt;/ogc:Function&gt;

&lt;ogc:Function name="if_then_else_string"&gt;

&lt;!-- redo the above --&gt;

&lt;ogc:Function name="equalTo"&gt;

&lt;ogc:Function name="getNumPoints"&gt;

&lt;ogc:Function name="getGeometryN"&gt;

&lt;ogc:Function name="geomFromWKT"&gt;

&lt;ogc:Literal&gt;MULTIPOINT(0 0,1 1)&lt;/ogc:Literal&gt;

&lt;/ogc:Function&gt;

&lt;ogc:Literal&gt;1&lt;/ogc:Literal&gt;

&lt;/ogc:Function&gt;

&lt;/ogc:Function&gt;

&lt;ogc:Literal&gt;1&lt;/ogc:Literal&gt;

&lt;/ogc:Function&gt;

&lt;ogc:Literal&gt; Point&lt;/ogc:Literal&gt;

&lt;ogc:Literal&gt; Points&lt;/ogc:Literal&gt;

&lt;/ogc:Function&gt;

&lt;/ogc:Function&gt;

&lt;/Label&gt;</p>

<p>----------------------------------------------------------

This mail sent through IMP: <a href="https://webmail.limegroup.com/" class="external-link" rel="nofollow">https://webmail.limegroup.com/</a></p>

codehaus
April 10, 2015, 4:27 PM

CodeHaus Comment From: aaime - Time: Thu, 29 Mar 2007 02:06:12 -0500
---------------------
<p>These issue has been in resolved state for at least one month (quite a bit, a lot more than one month). Batch transitioning them to closed state</p>

Fixed

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Priority

Medium
Configure