Change images in map reports

المشرف العام

Administrator
طاقم الإدارة
I need to make a report about several cadastral parcels which data are contained inside three different tables of a database. Report must contain:

  1. Cadastral data taken from the three tables
  2. A photograph of the front of the building (these photos are .JPG images contained in a folder)
  3. View of the cadastral cartography over the ortophoto centered in the cadastral parcel
In order to make these reports, I have created one template in the QGIS map composer. To obtain easily and fasten the reports, I though to program in PyQGIS a script that change the strings, the images and the view of the template depending the cadastral reference.

I found how to change the map view and the strings, but I don't know how to change the photos of the buildings. These photos have the format "CADASTRAL REFERENCE".jpg, so, knowing the cadastral reference is easy to find the right photo in the folder.



أكثر...
 
أعلى