[Geoserver-users] scale dependant fontsize in textsymbolizer

What about ${SCALE} or <VendorOption name="scale"/> ?

Regards
Sven Axt

-----Ursprüngliche Nachricht-----
Von: Andrea Aime [mailto:aaime@anonymised.com]
Gesendet: Montag, 22. Dezember 2008 08:35
An: Axt, Sven
Cc: Sven Axt; geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] scale dependant fontsize in textsymbolizer

Axt, Sven ha scritto:

Hi,

is it possible to realize a scale-dependant font-size in
SLD-TextSymbolizer with geoserver?
I'd like to have some text, wich dimension remain still the same in
all scales on the map.

As I know there is no SLD-specific way to achieve this. (Besides using
filters with scaledenominators, but this is not applicably for me).
Therefore I am looking for some vendor-specific option in geoserver to
do something like this:

<TextSymbolizer>
  ...
  <Font>
    ...
    <CssParameter name="font-size">
      <ogc:Div>
        <ogc:Literal>2.3</ogc:Literal>
        <ogc:PropertyName>$SCALE</ogc:PropertyName>
      </ogc:Div>
    </CssParameter>
  </Font>
  ...
</TextSymbolizer>

Unfortunately there is no such a thing in our current implementation.
SE 1.1 has the notion of sizes specified in ground units... but it would take significant effort for us to support it (new sld parser/encoder needed, changes in the renderer to handle all the new features... wondering if there is anyone interested in the endeavour, or if we should start a bounty to gather enough sponsorship to do the job).

Having the current scale available as a generic property is possible thought, it's just very problematic to specify it in a way that won't clash with any existing feature attribute... any bright ideas?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Axt, Sven ha scritto:

What about ${SCALE} or <VendorOption name="scale"/> ?

Since putting togheter this change requires some work
at the base library level (GeoTools) I've started a discussion
on gt2-devel about it:

http://n2.nabble.com/Context-enviroment-variables-in-SLD-td1960257.html

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.