Could attach it to a Jira; or commit in into docs and we can pull it into the
docs. org.geotools.style should do it for a package name?
I was talking with mbedward about making a StyleVisitor that emitted Java code
as output; so we could generate the code examples from sld files... but if you
have done the work already bring it on :-)
--
Jody Garnett
On Wednesday, 27 April 2011 at 9:03 PM, andrea antonello wrote:
> I don't think I have code examples of these yet myself (so if you create
> > some please send them my way).
>
> Well, as I wrote long time ago, I have the whole geoserver style
> cookbook coded in programmatic examples. Those would already be of
> great help to users I guess.
> If you tell me how and where to commit them, I will be glad to contribute
> them.
>
> > 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 )
>
> Can you link one of those blog posts you are talking about? I would
> like to give it a try. To see if it works, I would also be glad to
> write the xml for now. So the trick would be to bound the scale to the
> label size through a factor. Sounds cool.
>
> Andrea
>
>
> > --
> > 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
> > [email protected]
> > 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
> > [email protected]
> > 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users