From: Jody G. <jod...@gm...> - 2011-04-27 10:19:50
|
Hi Andrea: I could not find any good documentation on how to get a hold of the scale for use in one of these functions; think we need to ask for more help or look at the code. -- Jody Garnett On Wednesday, 27 April 2011 at 8:11 PM, Jody Garnett wrote: > I don't think I have code examples of these yet myself (so if you create some please send them my way). > > One thing you can do for examples is download the SE 1.1 specification; and the javadocs are also pretty good. > - http://docs.geotools.org/latest/javadocs/org/geotools/filter/function/RecodeFunction.html > - http://docs.geotools.org/latest/javadocs/org/geotools/filter/function/InterpolateFunction.html > - http://docs.geotools.org/latest/javadocs/org/geotools/filter/function/CategorizeFunction.html > > Here is a CQL example from an old email: > > stroke-width: > - categorize( attribute, 1, 5000, 2, 15000, 3, 40000, 4,750000, 5 ); > > fill-color: > - interpolation( attribute, 0.0, '#005500', 3300.0, 'AA1100', 5000.0, #FFFFFF, "linear", "color", ) > > The only thing I am not sure about is how the env function works to access scale? Need to look at some of aaime's blog posts for that :( > > I would expect something like the following: > > size: > > - categorize( env("scaleDenominator"), 5, 5000, 8, 10000, 10 ) > > -- > Jody Garnett > > On Wednesday, 27 April 2011 at 7:15 PM, andrea antonello wrote: > > Hi Jody, thanks for the reply. > > > > > You should also be able to define the size as an expression; and choose one > > > of the Categorize function based on scale (think scale is available as an > > > env function?) > > > The three functions from se 1.1 should cut down on 90% of the use of Rules: > > > - Categorize > > > - Interpolate > > > - Recode > > > > I guess I understand what you mean, but I sure do not know how to > > achive this. I can't find any reference on the geotools doc. Guess > > this is because it is one of the new parts? > > I would like to add that also to the uDig styler, so if you have > > examples or reference docs, let me know. > > > > Thanks, > > Andrea > > > > > > > > > > -- > > > Jody Garnett > > > > > > On Wednesday, 27 April 2011 at 5:54 PM, andrea antonello wrote: > > > > > > Hi all, > > > I am trying to understand if it is possible through sld in geotools to > > > define a label size at fix scale, i.e. say: size 10 at 1:10000. > > > > > > From the sld tests and implementations I have done so far for uDig, > > > > > > the only possibility I came across is to create different rules with > > > different sizes to mimic that behaviour (geoserver cookbook). > > > > > > Is there right now any way to achieve this? > > > > > > Thanks, > > > Andrea > > > > > > ------------------------------------------------------------------------------ > > > WhatsUp Gold - Download Free Network Management Software > > > The most intuitive, comprehensive, and cost-effective network > > > management toolset available today. Delivers lowest initial > > > acquisition cost and overall TCO of any competing solution. > > > http://p.sf.net/sfu/whatsupgold-sd > > > _______________________________________________ > > > Geotools-gt2-users mailing list > > > Geo...@li... > > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > > ------------------------------------------------------------------------------ > > WhatsUp Gold - Download Free Network Management Software > > The most intuitive, comprehensive, and cost-effective network > > management toolset available today. Delivers lowest initial > > acquisition cost and overall TCO of any competing solution. > > http://p.sf.net/sfu/whatsupgold-sd > > _______________________________________________ > > Geotools-gt2-users mailing list > > Geo...@li... > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > |