From: Jody G. <jga...@re...> - 2008-05-09 00:06:56
|
Andrea Aime wrote: > Jody Garnett ha scritto: > ... >> So I can think of several recommendations of areas that would love >> some work in the gt-main.jar: >> - high priority, nobody working on it: EqualIntervalFunction and >> EqualIntervalFunctionTest processes a FeatureCollection and returns a >> "Classifier" (a series of ranges) that split the data up into groups >> - this is used to generate really pretty styles. > I'm using them right now and they seem to be working? I had at least one of these functions failing its test cases last I looked; have you been fixing things when I was not looking andrea? >> - low priority easy introduction: Eclesia has found a series of >> excellent functions as part of the Symbology Encoding specification; >> for things like concatenating Strings, formatting Dates and so on .. >> all of these are nice small Functions that can be written up and are >> a good introduction to how the library is stitched together. > String concatenation we already have, look at FilterFunction_strConcat > and at tens of its friends in the main module > (org.geotools.filter.function package) I know; but now the SE specification has a specific one out ... the joys of interoperability results in some duplication. You guys were taking part in OWS5 and did not catch this one ... so here we are. function: Substring parameter 0: expression parameter 1: position parameter 2: length function: Concatenate parameter N: expression function: ChangeCase parameter 0: expression parameter 1: direction - either "toUpper" or "toLower" (if you want you can capture this as an enumeration "DirectionType" and define a Converter ... function: Trim parameter 0: expression parameter 1: stripOffPosition - either "leading, trailing, or both parameter 2: stripOffChar I am not saying these ones are hard, just that it is work needing doing. Andrea note that the "Concatenate" function takes any number of strings which is a new trick for our Funtion API. Jody |