[udig-devel] dpi issues

Jody Garnett jgarnett at refractions.net
Wed Mar 26 13:17:04 PDT 2008


Vince Darley wrote:
>> I am not sure how "smart" we want ApplicationGIS.drawMap() to be? 
>> Making getDPI available allowed the scalebar
> My scalebar does _not_ adjust itself accordingly (recent rc14 nightly 
> build).  It just gets progressively smaller and less legible, just the 
> same as any other piece of text.
Interesting; wonder if this is a case of life being different on trunk. 
I know scalebar has been printing out very nicely recently when placed 
on a Page.
>> And other map graphics to know what was going on and adjust 
>> accordingly, the BasicFeatureRenderer still made use of the Style as 
>> provided (I preprocessed the Style to make it show what I wanted).
> Regarding how smart ApplicationGIS.drawMap() should be, I would have 
> thought the natural, intuitive thing is for 'dpi' to function how we 
> would expect it to function: to control the dpi of the image.  An 
> image printed at dpi 144 and resampled to halve the number of pixels 
> should look largely identical to an image printed at dpi 72.  That's 
> what dpi means, after all.  Instead we have a situation where the 
> labels, scale, etc, shrink.
Understood; so there are two things going on:
- for API which we define (such as map graphic) it looks like Scalebar 
has a bug
- for API which we don't define - specifically the Style objects and the 
use of TextSymbolizers where size in terms of pixels

Jody


More information about the udig-devel mailing list