D.J. Zhao wrote:

>     Hi All,
>      
>     I am a new user to the list. I got two problems about geotools
>     that have been bothering me for a while. But they may all solved
>     in the new version. Could anyone give me some info about these?
>      
>     I am using Geotools 2.1.0. My first problem is that
>     MaxScaleDenominator doesn't work for me. I tried a very simple
>     test, to either or not render a road according to the zoom levels.
>     I tried by using both Java coding and SLD, but MaxScaleDenominator
>     just doesn't seem to work. Similarly filter also doesn't work for
>     me. One simple filter example I have tried is the distance filter
>     to find a feature close to a point. And it doesn't work either. I
>     am not sure whether these are bugs in version 2.1.0 or I didn't do
>     it in the right way. Are these functions working in the current
>     version?
>      
>     My second question is road's label rendering - all the labels are
>     rendered horizontally. But ideally I want the labels to be
>     rendered by aligning the road direction, and close to and on the
>     road. How should I do to achieve these? Which geotools version
>     support these features?
>      
>     thank you,
>     Dejin
>
Hi Dejin,

I would recommend 2.3.0, as these issues should be resolved there.  Both 
Geoserver and uDig are using GeoTools SLD support and have demonstrated 
proper rendering.  Have a look at these geoserver docs for some useful 
sld snippets which demonstrate some of the above (most of them apply to 
geotools):

http://docs.codehaus.org/display/GEOSDOC/ComplexLabelingExample
http://docs.codehaus.org/display/GEOSDOC/LabelingOptions
http://docs.codehaus.org/display/GEOSDOC/SLD+Intro+Tutorial

If that doesn't provide any hints, please send code snippets so we may 
analyze your approach :)

Cheers,
Cory.

----
Cory Horner
Refractions Research Inc.
http://www.refractions.net

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to