Re: [Qgis-user] [Modeller] How to calculate area in the graphical modeler of QGIS

2023-01-30 Thread Alexandre Neto via QGIS-User
Hello Igor,

I don't have qgis here to test, but...


If I remember well, you need to  change the parameter type from value to
precalculated value.

If not, try adding single quotes around the expression.

Good luck,

Alexandre Neto

A segunda, 30/01/2023, 19:06, Igor Oliveira Ribeiro <
igorgeoinforma...@gmail.com> escreveu:

> Hey Alexandre, thanks for your reply.
> See below
> [image: image.png]
>
> On Mon, Jan 30, 2023 at 10:51 AM Alexandre Neto <
> alexandre.n...@qcooperative.net> wrote:
>
>> Hello Igor,
>>
>> Can you please explain what settings you have used in the field
>> calculator dialog. A screenshot would be helpful.
>>
>> Alexandre Neto
>> User Support
>> alexandre.n...@qcooperative.net
>> www.qcooperative.net
>> [image: www.qcooperative.net] 
>>
>> Igor Oliveira Ribeiro via QGIS-User  escreveu
>> no dia segunda, 30/01/2023 à(s) 13:14:
>>
>>> Hi community,
>>> I need your help. I'm using QGIS 3.10.11 with Grass 7.8.4. I'm building
>>> a QGIS modeler and I want to calculate the area of an input polygon.
>>>
>>> So, my input polygon is a vector feature. I tried using a field
>>> calculator ($area) and Advanced Python Field Calculator (Field "Formula", I
>>> used "value = $geom.area() ).
>>>
>>> However, nothing is working. When I run the modeler, there is no error
>>> message. But, I'dont have the area calculated either.
>>>
>>> Thanks for your help.
>>>
>>> --
>>>
>>> See our last paper:  
>>>
>>> Impact of biomass burning on a metropolitan area in the Amazon during
>>> the 2015 El Niño: The enhancement of carbon monoxide and levoglucosan
>>> concentrations. 
>>>
>>> Igor Oliveira Ribeiro
>>>
>>> Post-Doc on Regional Climate Change, Vulnerability, Impacts and
>>> Adaptation - Cuomo Foundation/UEA
>>>
>>> +55 92 98103 7136 | skype: igorflorestal
>>>
>>> Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas da
>>> Amazônia
>>>
>>> Visite: www.geoescrita.com.br
>>>
>>> 
>>> 
>>> 
>>> 
>>>  
>>>
>>> Think globally, act locally!
>>> ___
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
>>
>> --
>> Alexandre Neto
>> User Support
>> alexandre.n...@qcooperative.net
>> www.qcooperative.net
>> [image: www.qcooperative.net] 
>>
>
>
> --
>
> See our last paper:  
>
> Impact of biomass burning on a metropolitan area in the Amazon during the
> 2015 El Niño: The enhancement of carbon monoxide and levoglucosan
> concentrations. 
>
> Igor Oliveira Ribeiro
>
> Post-Doc on Regional Climate Change, Vulnerability, Impacts and Adaptation
> - Cuomo Foundation/UEA
>
> +55 92 98103 7136 | skype: igorflorestal
>
> Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas da
> Amazônia
>
> Visite: www.geoescrita.com.br
>
> 
> 
> 
> 
>  
>
> Think globally, act locally!
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [Modeller] How to calculate area in the graphical modeler of QGIS

2023-01-30 Thread Andrea Giudiceandrea via QGIS-User

*Igor Oliveira Ribeiro*
/Mon Jan 30 05:13:49 PST 2023/

I tried using a field calculator
($area) and Advanced Python Field Calculator (Field "Formula", I used
"value = $geom.area() ).
However, nothing is working.


Hi Igor,
it seems to me there is no issue using the Field Calculator algorithm in 
the Model designer to calculate the area of polygon geometries, at least 
using the latest QGIS 3.28 and 3.22 versions.


Please see the screecast at https://youtu.be/etVM1jQ4HLY

Best regards.

Andrea Giudiceandrea___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [Modeller] How to calculate area in the graphical modeler of QGIS

2023-01-30 Thread Alexandre Neto via QGIS-User
Hello Igor,

Can you please explain what settings you have used in the field calculator
dialog. A screenshot would be helpful.

Alexandre Neto
User Support
alexandre.n...@qcooperative.net
www.qcooperative.net
[image: www.qcooperative.net] 

Igor Oliveira Ribeiro via QGIS-User  escreveu no
dia segunda, 30/01/2023 à(s) 13:14:

> Hi community,
> I need your help. I'm using QGIS 3.10.11 with Grass 7.8.4. I'm building a
> QGIS modeler and I want to calculate the area of an input polygon.
>
> So, my input polygon is a vector feature. I tried using a field calculator
> ($area) and Advanced Python Field Calculator (Field "Formula", I used
> "value = $geom.area() ).
>
> However, nothing is working. When I run the modeler, there is no error
> message. But, I'dont have the area calculated either.
>
> Thanks for your help.
>
> --
>
> See our last paper:  
>
> Impact of biomass burning on a metropolitan area in the Amazon during the
> 2015 El Niño: The enhancement of carbon monoxide and levoglucosan
> concentrations. 
>
> Igor Oliveira Ribeiro
>
> Post-Doc on Regional Climate Change, Vulnerability, Impacts and Adaptation
> - Cuomo Foundation/UEA
>
> +55 92 98103 7136 | skype: igorflorestal
>
> Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas da
> Amazônia
>
> Visite: www.geoescrita.com.br
>
> 
> 
> 
> 
>  
>
> Think globally, act locally!
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Alexandre Neto
User Support
alexandre.n...@qcooperative.net
www.qcooperative.net
[image: www.qcooperative.net] 
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [Modeller] How to calculate area in the graphical modeler of QGIS

2023-01-30 Thread Stefan Giese (WhereGroup) via QGIS-User

Hi,

may be it will be easier to use thhis algorithm: "Add geometry 
attributes" -> 
https://docs.qgis.org/3.10/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html?highlight=exportaddgeometrycolumns#add-geometry-attributes


best regards

Stefan

Am 30.01.2023 um 14:13 schrieb Igor Oliveira Ribeiro via QGIS-User:

Hi community,
I need your help. I'm using QGIS 3.10.11 with Grass 7.8.4. I'm 
building a QGIS modeler and I want to calculate the area of an input 
polygon.


So, my input polygon is a vector feature. I tried using a field 
calculator ($area) and Advanced Python Field Calculator (Field 
"Formula", I used "value = $geom.area() ).


However, nothing is working. When I run the modeler, there is no error 
message. But, I'dont have the area calculated either.


Thanks for your help.

--

See our last paper: 

Impact of biomass burning on a metropolitan area in the Amazon during 
the 2015 El Niño: The enhancement of carbon monoxide and levoglucosan 
concentrations. 




Igor Oliveira Ribeiro

Post-Doc on Regional Climate Change, Vulnerability, Impacts and 
Adaptation - Cuomo Foundation/UEA



+55 92 98103 7136 | skype: igorflorestal


Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas 
da Amazônia



Visite: www.geoescrita.com.br 




Think globally, act locally!


___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user


--
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
**
FOSSGIS Konferenz
15.-18. März 2023 in Berlin
https://fossgis-konferenz.de/2023/

WhereGroup-Beiträge auf der FOSSGIS
https://wheregroup.com/unternehmen/aktuelles/
**
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Tel.: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

stefan.gi...@wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] [Modeller] How to calculate area in the graphical modeler of QGIS

2023-01-30 Thread Igor Oliveira Ribeiro via QGIS-User
Hi community,
I need your help. I'm using QGIS 3.10.11 with Grass 7.8.4. I'm building a
QGIS modeler and I want to calculate the area of an input polygon.

So, my input polygon is a vector feature. I tried using a field calculator
($area) and Advanced Python Field Calculator (Field "Formula", I used
"value = $geom.area() ).

However, nothing is working. When I run the modeler, there is no error
message. But, I'dont have the area calculated either.

Thanks for your help.

-- 

See our last paper:  

Impact of biomass burning on a metropolitan area in the Amazon during the
2015 El Niño: The enhancement of carbon monoxide and levoglucosan
concentrations. 

Igor Oliveira Ribeiro

Post-Doc on Regional Climate Change, Vulnerability, Impacts and Adaptation
- Cuomo Foundation/UEA

+55 92 98103 7136 | skype: igorflorestal

Universidade do Estado do Amazonas | Instituto Nacional de Pesquisas da
Amazônia

Visite: www.geoescrita.com.br





 

Think globally, act locally!
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user