On 01-03-13 16:17, spatialjoe wrote:
mber in the polygon shapefile.

Puuh, not that complicated but not that straightforward also.
Would I do it for 250 maps?

Hi Johannes,

as Nathan told you, there should be an easier way to do this via the python api.

For example it should be able to create a script or plugin, which for all (active) composers in current project, would find the boundingbox, Maybe then put that in a polygon memory layer which is then loaded in qgis (with all data as attributes). You can then save this memory layer in every format that you want via the normal 'save as' context menu in the layerslist.

It is not trivial, but for a plugin developer pretty easy to do I think (hardest in plugins is to make a 'logical' gui ...) It just takes time (and maybe some funding). OR you must be able to convince a developer that this is essential gis functionality needed in QGIS :-)

To try out (tested here in master, something similar should be able to do in 1.8)

# to see the extents als wkt
for composer in iface.activeComposers():
 print composer.composition().composerMapItems()[0].extent().asWktPolygon()

# or just the extents
for composer in iface.activeComposers():
  print composer.composition().composerMapItems()[0].extent().toString()

Regards,

Richard Duivenvoorde



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to