[udig-devel] dpi issues

Jody Garnett jgarnett at refractions.net
Fri Mar 28 12:34:02 PDT 2008


Vince Darley wrote:
> At 10:10 27/03/2008, Vince Darley wrote:
>> I tried that - the 'grid' and the scalebar show up.  Nothing else 
>> does.  There are also a large number of logged errors relating to 
>> Images, etc.  I guess udig creates images for each layer and draws 
>> onto them, and then wants to copy those images onto the output 
>> Graphics2D.  That approach isn't good if the output graphics2d is an 
>> svg renderer -- it would want the drawing to be done direct.  I'll 
>> give up on this approach unless someone has some bright ideas.
> Is it possible to have udig render directly to the Graphics2D supplied 
> rather than render first to images (for each layer) which are then 
> copied to the Graphics2D?
Yes; that is what the printing system does when printing to paper. The 
udig renderer api has an entry point that takes a Graphics2D (rather 
than a raster).
> (I appreciate this would prevent/inhibit the separate threading of 
> each layer's rendering, but it would potentially allow vector-based 
> svg output).
Just so.

Jody


More information about the udig-devel mailing list