You will need to ask on the geotools user list; the developer who did
the rendering hint to follow a line is not me; and I have not found it
and documented it for the user guide yet.

When you do find out please let me know and we can add the information
to the user guide.

Also note that the version of geotools that has StyledMapPane may be
so old that this hint is not available. We are putting a good effort
into JMapPane (a replacement for StyledMapPane) so perhaps you can
help out?

Jody

On Tue, May 5, 2009 at 4:49 AM, Edwin Moedano <[email protected]> wrote:
> Hi I’m Edwin Moedano from Mexico right now I’m working on a GIS application
> in geotools however I’m using the StyledMapPane.. I know it’s too old an
> obsolete but It fits fine for me, my question is that you in a post on this
> site
>
>
>
> http://www.mail-archive.com/[email protected]/msg06971.html
>
>
>
> You told that:
>
>
>
> Mon, 23 Feb 2009 18:46:16 -0800
>
> Okay cool; so have you tried the text symbolizer offset yet? Setting an
>
> offset should allow you to draw above or below the line. There is also a
>
> rendering hint that can be used to make the text follow the line; I am not
>
> sure if that only changes orientation or if it also would calculate an
>
> offset?
>
>
>
> I have looked for that rendering hint to make a Text Symbolizer follow the
> line and I can’t find the way to do it… I belive is all about filters and
> rules but I can’t find a simple example what I’ve done it’s this
>
>
>
>
>
> LineSymbolizer ls1=null,ls2=null;
>
>  org.geotools.styling.Font font = sb.createFont(new Font("Arial",
> Font.PLAIN, 12));
>
>                 TextSymbolizer textCalle =
> sb.createTextSymbolizer(Color.BLACK, font, "texto");
>
>                 textCalle.setLabelPlacement(sb.createPointPlacement(0.5,
> 0.5, 45));
>
>                 textCalle.setHalo(sb.createHalo(Color.WHITE, 1, 2));//I’m
> going to quit it coz the rendering process
>
>                 color=new Color(220,206,134);
>
>                     ls1 = sb.createLineSymbolizer(color.darker(), 5);
>
>                     ls2 = sb.createLineSymbolizer(Color.darkGray, 8);
>
>                 style=sb.createStyle();
>
>                 style.addFeatureTypeStyle(sb.createFeatureTypeStyle(null,
> sb.createRule(ls2)));
>
>                 style.addFeatureTypeStyle(sb.createFeatureTypeStyle(null,
> sb.createRule(ls1)));
>
>                 style.addFeatureTypeStyle(sb.createFeatureTypeStyle(null,
> sb.createRule(textCalle)));
>
>
>
> I have something in mind but If you could help me It would be greate…
> another question… when the text follows the line…we change the rotation and
> all the text will follows any line? And if geotools supports  with rules or
> filters give diferrent styles to a Layer?
>
>
>
> Greetings from Mexico.. and sorry about my writting mistakes…
>
>
>
> Edwin Moedano

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to