Hi,
I'm looking into exposing the DPI setting as part of
the GeoServer WMS request, mostly so that people can
get images to send to a printer with a certain DPI.

(note: the streaming renderer already takes a hint
  allowing to specify the DPI)

What I expect to see is that the symbolizers sizes
increase as the DPI increases, and also that
the scale computation changes accordingly.

I guess that the UOM and DPI rescalings should be independent,
so that DPI rescaling works also with symbolizers whose
size is specified in pixels. Am I right, or I'm getting
confused?

What I see now is that using DPI and UOM in combination
(and without a custom rescaling step for DPI)
does not affect the size of the symbols on the map
because the UOM rescaling computes the rescaling factor
in a way that's DPI independent.

Yet what I'd expect to see is that increasing the DPI
should increase the symbol sizes.
However, that should also happen when I'm not using UOM.

So I think I should introduce a separate rescaling step in
streaming renderer to be used when the DPI is not
the default value. But I wanted to double check that.

Am I missing something?

Cheers
Andrea

PS: I see we already have a generic RescaleStyleVisitor,
I guess I'll use that one for DPI handling (maybe double
checking it's doing all the same rescales as the uom one,
which has quite some unit tests backing it)

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

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to