Thickness can also be defined as an Expression so you can pass in an  
expression that evaluates based on the feature.  Thus allowing  
dynamic behaviour.  There are numerous function expressions as well  
as math expressions.

Jesse

On 31-Jul-06, at 12:14 AM, Erdem Gunay wrote:

> Hi Andrea,
>
> This is quite a suitable solution to my problem,
> thanks a lot,
>
> -- Erdem Gunay
>
> --- Andrea Aime <[EMAIL PROTECTED]> wrote:
>
>> Erdem Gunay ha scritto:
>>> Hello,
>>>
>>> I am trying to set the tickness of a line
>> dynamically
>>> based on the zoom factor. For example, when the
>> user
>>> zooms in the map, the lines should be drawn
>> ticker,
>>> when zooming out, thinner. I use styledMapPane.
>> Can i
>>> do this in GeoTools? Does anybody have an idea?
>>>
>> Well, as far as I know you can't set the thickness
>> as a linear function
>> of the
>> scale, but using the sld rules you can build a
>> piecewise relation.
>> That is, something like:
>> 1.000.000 < scaleDenominator -> thickness = 1
>> 500.000 < scaleDenominator <= 1.000.000 -> thickness
>> = 2
>> ...
>>
>> Have a look at the SLD specification and how to use
>> the "rules" inside it.
>> Cheers
>> Andrea
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------- 
> ---
> 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


-------------------------------------------------------------------------
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