[Qgis-developer] Adding scale bar and north arrow from python

Martin Dobias wonder.sk at gmail.com
Mon Apr 5 12:14:38 EDT 2010


On Mon, Apr 5, 2010 at 5:17 PM, Marcelo Reyes <reyesmarcelo at gmail.com> wrote:
> Hello,
>
> I search the QGIS API for functions that allows to add the scale bar and
> north arrow to the map, using python bindings.
>
> Could'n find a way. Any one has any suggestions?. Thanks.

AFAIK this is not possible. Both scale bar and north arrow are
plugins. Plugins are loaded by QGIS application and they're not
accessible within core/gui libraries. Adding support for python
plugins should be possible in 3rd party python applications,
unfortunately scale bar and north arrow are c++ plugins.

Martin


More information about the Qgis-developer mailing list