[Qgis-developer] units per pixel

Martin Dobias wonder.sk at gmail.com
Mon Apr 9 13:49:46 EDT 2007


>  I need to change  factor ( units per pixel by Y)/(units per pixel by X).
>  It is at the moment equal 1..
>
>  Where it is necessary to make it?
>
> QgsMapCanvas?
> QgsMapRender?
> QgsMapToPixel?

Hi,

the right place to do something like this is to modify QgsMapToPixel
as this is the class for conversion between screen and map coordinates
and is used by all other classes such as QgsMapRender or QgsMapCanvas.

Martin



More information about the Qgis-developer mailing list