Sorry that was not clear ... can you send me the page link?

The real story is you can draw labels onto the map on a per feature 
basis; so for your example you will need to make a feature that has
the required information.

Here is an example:

FeatureType type = DataUtilities.createType("Location", 
"location:Point,name:String");

Here is an example from this page:
- http://docs.codehaus.org/display/GEOTDOC/06+CSV2SHP+Lab

So for your needs:

FeatureType type = DataUtilities.createType("Location", 
"location:Point,name:String,rotation:Double");

You will then need to create a style with a TextSylmbolizer to do the 
actual drawing... I am trying to gather up rendering examples here:
- http://docs.codehaus.org/display/GEOTDOC/12+Render

To practice drawing look at this example:
- http://docs.codehaus.org/display/GEOTDOC/09+ShapeLab

Cheers,
Jody

> Hi,
>
> I need to insert a description text in a map. The text must to be
> drawn from a point, string, rotation and height.  I found the follow
> code on list history:
>
> FeatureType ft = ...;
>
> String text = "The first line. \nThe second line.";
> Feature feature = ft.create(new Object[] { point, text, rotation });
>
>
> But I dont know how to create the FeatureType.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to