Replying to myself since email lists were down. Answer ended being to scale
by 25.4 / 0.28 ~= 90 dpi as per the WMS spec.
We can do what GeoServer does and using the rescale visitor to adjust these
values to higher DPI displays.




--
Jody Garnett

On 24 February 2015 at 23:02, Jody Garnett <jody.garn...@gmail.com> wrote:

> Anyone have an example of RescaleToPixelsFunction?
>
> The generated function list
> <http://docs.geotools.org/latest/userguide/library/main/function_list.html> 
> just
> has the following:
>
> *rescaleToPixels(value, defaultUnit, scaleFactor, rescalingMode):
> rescaleToPixels*
>
>    -
> *value: String 1:1 required *
>    -
> *defaultUnit: Unit 1:1 required *
>    -
> *scaleFactor: Double 1:1 required *
>    -
> *rescalingMode: RescalingMode 0:1 optional *
>    - *rescaleToPixels: String 1:1 required *
>
> Looking at the code I cannot quite figure out what to do, and I have not
> found a test case...
>
> I would expect something like the following to work (for a width I want
> displayed as 2 mm): rescaleToPixel( 2, "mm", 1.0, 1)
>
>
> --
> Jody Garnett
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to