[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Exporting Map to Image Scale
|
I am not sure I follow - is this scale adjustment something I can turn
off in the UI or a preference somewhere?
When looking at ExportMapToImageWizard.java the export function I see
the following:
int scaleDenom = MapSelectorPageWithScaleColumn.getScaleDenom(map);
BoundsStrategy boundsStrategy = new BoundsStrategy(scaleDenom);
DrawMapParameter drawMapParameter = new DrawMapParameter(g, new
java.awt.Dimension(width, height), map, boundsStrategy,
imageSettingsPage.getFormat().getDPI(),imageSettingsPage.getSelectionHandling(),
monitor);
renderedMap = ApplicationGIS.drawMap(drawMapParameter);
To achieve what I want I can simply change the BoundsStrategy to be the
map bounds:
BoundsStrategy boundsStrategy = new
BoundsStrategy(map.getViewportModel().getBounds());
However this is not exactly a long-term solution.
On 30/04/2013 2:20 AM, Jody Garnett wrote:
Think it adjusts to the scale hen printing. To see exactly what is on screen .. Turn off the scale adjustment?
I am sure you could fix it so this functionally is the default.
--
Jody Garnett
On 30/04/2013, at 3:51 AM, Emily Gouge <egouge@xxxxxxxxxxxxxxx> wrote:
In uDig when I export a map to image (keeping the scale and aspect ratio the same) what is exported to the image has different bounds than what I see on the screen. I think this is a scale issue but I am not sure. I've attached screen shots as examples.
What I need is for the export to image functionality to return exactly what is seen on the screen.
Does anyone have any advice for me on this issue? Would it be possible to fix the uDig export to image or is this the intended uDig behaviour?
Thanks,
Emily
<udig_map.png>
<exported_map.png>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel