Hi Martin,

Yes - you can use "Atlas print" for that. If you add an Atlas in the print composer for the concerned layer, you get an automatic Atlas action ("Set as Atlas feature for Atlas"). You can select an object in the map or in the attribute table and open the corresponding feature in the Atlas. In the Atlas you can use any attribute of the atlas feature and use it in graphical properties, label content, etc.


Have a look in the manual: http://docs.qgis.org/2.14/en/docs/user_manual/print_composer/create_output.html#generate-an-atlas to get an idea how you can specify the "Atlas" in print composer. You can find the "Actions tool" in the toolbar next to the "Identify Features" tool in the "Attributes" toolbar. Once an atlas is configured on the selected layer, the "Set as Atlas feature for Atlas" is automatically added, and you can use this tool to select features on the map. After clicking on the object, print composer will open and use the selected feature.

Let me know if you need help on that or can find it out yourself. I am happy to help if you are stuck. The Atlas is really powerful. There is a lot of possibilities, including dynamic styling, dynamic HTML content, calling web services, tables, all based on the selected atlas feature.

Andreas


Am 12.11.2016 um 16:00 schrieb Schweizer Martin:

Hi

I want to select a object in QGIS, then open a printcomposer and use a value from the selected object.

Example:

Selected object from Layer 1: ogc_fid = 42, name = polygon123, value = 3

Text in printcomposer (as it should be): “The object polygon123 has the value 3”

Is there a way to do such things?

Thank you and best regards

*Martin Schweizer *
GIS-Projektleiter

*Amt für Geoinformation*
Rötistrasse 4
4500 Solothurn
Telefon +41 32 627 75 47
Telefax +41 32 627 22 14
martin.schwei...@bd.so.ch <mailto:martin.schwei...@bd.so.ch>
http://www.agi.so.ch <http://www.agi.so.ch/>



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

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

Reply via email to