[Qgis-developer] Map rotation landed in master
Sandro Santilli
strk at keybit.net
Sun Dec 7 08:05:55 PST 2014
This mail to notify that the core map rotation support is now in master.
What changed in the outermost API (in order of exposition, I think):
- The QgsMapCanvas class got new methods:
double rotation() const;
void setRotation( double degrees );
QgsPoint center() const;
void setCenter( const QgsPoint& center );
- The QgsMapSetting class got new methods:
double rotation() const;
void setRotation( double degrees );
- The QgsMapToPixel class got new methods:
void setMapRotation( double degrees, double cx, double cy );
double mapRotation() const;
Support in the renderers for vector and raster layers is included,
as well as a spinbox widget to set and see rotation from the GUI.
Not all parts of QGIS play nicely with rotation yet, but hopefully
this will be a good basis to continue development toward full support.
In particular, label placement is not fully rotation aware.
Horizontal labels are still horizontal, no matter map rotation, but
"parallel" ones are parallel to the original (not rotated) lines instead.
Placement of labels is also weird when rotation is present.
Also grid and north arrow are not respecting rotation, and the zoom-by-rect
rubberband (the zoom window) looks funny when the map is rotated.
--strk;
() ASCII ribbon campaign -- Keep it simple !
/\ http://strk.keybit.net/rants/ascii_mails.txt
More information about the Qgis-developer
mailing list