Jody Garnett ha scritto: >> Otherwise we have to scrap the rescaling visitor and rebuild the >> uom -> px logic all in the SLDStyleFactory and also kiss goodbye >> the ability to automatically figure out the rendering meta-buffer >> when doing queries. >> >> So... what about having the rescale style visitor look for px at >> the end of an expression and handle that accordingly? If it's a >> literal check it if ends with px, if it's an expression check if >> it's a strConcat funcion and look if it has a "px" literal at the >> end? > > I think you mean have the rescale visitor look for "m", "km" etc and > transform it into "px" measurements? Oh wait you are trying to use > "px" as a flag to tell the rescaling visitor to not apply its default > transform .. yeah I get it.
Well, if you want to make David super-happy you can also add support for other uom specs so that we can support a more natural CSS style where each item has its own uom. > So at the end of the day we want the rescaling visitor to do > everything it can prior to letting the renderer at it. Question. Can > the rescale visitor inject a function expression around entries in > order to accomplish a conversion? Why a function expression? I'm usually a bit weary of using functions as they don't translate down to sql, but for symbolizers that should not be a problem Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel