Re: [Qgis-developer] How to create a Textual Note auto filled with fields ?

2014-04-04 Thread Geo DrinX
Hi Ramon and others,


 I'm assuming Textual Note is an Attribute Value.


No.  I intended  the Text Note function of QGis, that is the rectangular
baloon with text inside :

http://qgis.org/it/docs/user_manual/introduction/general_tools.html#annotation-tools

I need to fill the text automatically, using the action.

Do you know how to do it ?


Thank you

Roberto
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] How to create a Textual Note auto filled with fields ?

2014-04-03 Thread Geo DrinX
Hello All,


( Sorry for my english, but I try to explain my need as better as I know ).


I need to create  textual notes on many polygons, with QGis, and I would
like to automate more than possible the process.

For the moment, I created an Action, defined as following:


Note_ACTION

echo [%'\n\nPolygon  (mq) :\n' ||'Area: ' || toint( round ( $area)) || '\n'
|| 'Perimeter: ' || toint( round ($perimeter)) %]


In this way,  clicking on each polygon I have the text I need.   :)

But,  for the moment, it is necessary to copy the text and paste it inside
the  Textual Note.


It could be possible to... create the action in a way that creates directly
the  Textual Note with the text inside ?


Could somebody give me suggestions about this ?

Thank you in advance

Roberto
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] How to create a Textual Note auto filled with fields ?

2014-04-03 Thread Ramon AndiƱach

On 03/04/2014, at 21:59 , Geo DrinX wrote:

 Hello All,
 
 
 ( Sorry for my english, but I try to explain my need as better as I know ).
 
 
 I need to create  textual notes on many polygons, with QGis, and I would like 
 to automate more than possible the process.
 
 For the moment, I created an Action, defined as following:
 
 
 Note_ACTION
 
 echo [%'\n\nPolygon  (mq) :\n' ||'Area: ' || toint( round ( $area)) || '\n' 
 || 'Perimeter: ' || toint( round ($perimeter)) %]
 
 
 In this way,  clicking on each polygon I have the text I need.   :)
 
 But,  for the moment, it is necessary to copy the text and paste it inside 
 the  Textual Note.
 
 
 It could be possible to... create the action in a way that creates directly 
 the  Textual Note with the text inside ?
 
 
 Could somebody give me suggestions about this ?
 
 Thank you in advance
 
 Roberto

Hi Roberto,

I'm assuming Textual Note is an Attribute Value.

Do you need the value to happen as you draw the polygon? 
If you do, I don't know and you'll need to wait for someone else.

If you want to write the $perimeter and $area into the attribute table after 
making your polygons, than I'd use the field calculator. The icon looks like a 
really small abacus. You can see it on the main icons, but also in the 
attribute table. You can use this to update all (or just the selected polygons) 
to show the right information.

This is a better explanation than I could do:
http://www.qgis.org/en/docs/user_manual/working_with_vector/field_calculator.html
 
(not just in English, e.g. :
http://www.qgis.org/it/docs/user_manual/working_with_vector/field_calculator.html
 )

If I've got it all wrong, please do try and make me understand.

-ramon.

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer