<div dir="ltr">It was my fault. I was used to consider plane areas as "correct", forgetting ellipsoidal areas. So, QGIS give us freedom to calculate planar or ellipsoidal (geodetical) areas, but we must be careful about settings; Is not it?. Sometimes, too much freedom is annoying!<br><br>But, How can I calculate UTM (planar) area from a GEO layer in one step? <br><br>Thank you very much for your time and so sorry if I'm doing basic questions.<br><br>Carlos<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-16 17:59 GMT-05:00 Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 16 October 2016 at 05:20, Carlos Cerdán <<a href="mailto:sig.upagu@gmail.com">sig.upagu@gmail.com</a>> wrote:<br>
> Hi Nyall (and list)<br>
><br>
> A small projecto with UTM and GEO layers can be downloaded from dropbox:<br>
><br>
> <a href="https://www.dropbox.com/s/c4cfb48r5326vrk/Cajamarca.zip?dl=0" rel="noreferrer" target="_blank">https://www.dropbox.com/s/<wbr>c4cfb48r5326vrk/Cajamarca.zip?<wbr>dl=0</a><br>
><br>
> Attribute table has the correct area in AreaKm2 field (and in these<br>
> unities). "AreaOTFoff" is the area given by field calculator when "On The<br>
> Fly transformation" is deactivated. "AreaOTF_on" is the area with it<br>
> activated.<br>
><br>
> So: when I have a GEO layer, I can't calculate correct area directly in that<br>
> layer: I've to reproject to UTM and deactivate automatic transformation of<br>
> SRCs, to use field calculator expecting correct values.<br>
><br>
> OS : Ubuntu 16.04<br>
> QGIS : 2.16.3<br>
> SRC settings: by default (ellipsoide WGS84 for measures)<br>
<br>
</span>Thanks for sending this through, but again - I can't find any issue here.<br>
<br>
The different area calculations come from the difference between<br>
measuring the area using a flat plane (OTF off, no ellipsoid set) vs<br>
measuring the area using an ellipsoid (OTF on, ellipsoid set under the<br>
project "general" settings). When OTF is on QGIS calculates the same<br>
area regardless of whether the geographic or projected source layer is<br>
used.<br>
<br>
Hope that clarifies!<br>
<span class="HOEnZb"><font color="#888888"><br>
Nyall<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
><br>
> Thank you for your interest<br>
><br>
> Carlos Cerdán<br>
><br>
><br>
> 2016-10-14 15:14 GMT-05:00 Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>>:<br>
>><br>
>> On 15 Oct 2016 12:51 AM, "Carlos Cerdán" <<a href="mailto:sig.upagu@gmail.com">sig.upagu@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hi Nyall<br>
>> ><br>
>> > I'm afraid that 2.16 has still this issue. I've loaded an UTM-17 south<br>
>> > layer (my zone) and a Lat-long layer and:<br>
>> ><br>
>> > 1. SRC was seted in UTM<br>
>> ><br>
>> > 2. In UTM layer, if OTF SRC transformation is active, I get different<br>
>> > area than if it's deactivated. Correct value is the last one.<br>
>> ><br>
>> > 3. In Lat-long layer, if OTF SRC transformation is active, calculated<br>
>> > area is same as the wrong value of first layer. I can't get the correct<br>
>> > value in this layer, so I have to reproject into a new one and do step 2<br>
>> > (with OTF deactivated).<br>
>> ><br>
>> > What about a general option to set the prefered SRC to calculate areas<br>
>> > and lengths with OTF active?<br>
>><br>
>> Hi Carlos,<br>
>><br>
>> Can you please share your file? Cut it down to just a few polygons and let<br>
>> me know what area you expect to see. Email direct to myself.<br>
>><br>
>> Thanks!<br>
>><br>
>> Nyall<br>
>><br>
>><br>
>> ><br>
>> > Regards from Peru<br>
>> ><br>
>> > Carlos<br>
>> ><br>
>> ><br>
>> ><br>
>> > 2016-10-12 18:06 GMT-05:00 Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>>:<br>
>> >><br>
>> >> On 12 Oct 2016 11:56 PM, "Carlos Cerdán" <<a href="mailto:sig.upagu@gmail.com">sig.upagu@gmail.com</a>> wrote:<br>
>> >> ><br>
>> >> > AFAIK, It also is needed to turn off "on the fly SRC transformation"<br>
>> >> > to get correct area values.... Or QGIS has fixed this point?<br>
>> >><br>
>> >> Everything should be fixed in recent versions, and I very (VERY) much<br>
>> >> want to know if any issues are still encountered.<br>
>> >><br>
>> >> Calculating area/length is a core task for a GIS and we need to make<br>
>> >> sure it's rock solid. (Which it should be since 2.16!)<br>
>> >><br>
>> >> Nyall<br>
>> >><br>
>> >><br>
>> >> ><br>
>> >> > If you can't get correct area values, check out about it....<br>
>> >> ><br>
>> >> ><br>
>> >> > 2016-10-12 7:40 GMT-05:00 DelazJ <<a href="mailto:delazj@gmail.com">delazj@gmail.com</a>>:<br>
>> >> >><br>
>> >> >> Hi,<br>
>> >> >> To complete Nicolas answer, you should check what are the<br>
>> >> >> measurements options set in Project --> Project Properties --> General tab.<br>
>> >> >> See also<br>
>> >> >> <a href="http://docs.qgis.org/2.14/en/docs/user_manual/introduction/general_tools.html#measuring" rel="noreferrer" target="_blank">http://docs.qgis.org/2.14/en/<wbr>docs/user_manual/introduction/<wbr>general_tools.html#measuring</a><br>
>> >> >><br>
>> >> >> 2016-10-12 14:07 GMT+02:00 Nicolas Cadieux<br>
>> >> >> <<a href="mailto:nicolas.cadieux@archeotec.ca">nicolas.cadieux@archeotec.ca</a>><wbr>:<br>
>> >> >>><br>
>> >> >>> Hi,<br>
>> >> >>> You may be calculating square degrees and not metres.  It can<br>
>> >> >>> depend on the crs depending on the tools you are using.<br>
>> >> >>> Nicolas<br>
>> >> >>><br>
>> >> >>> Le 11 oct. 2016 à 08:54, Martina Schäfer [via OSGeo.org] <[hidden<br>
>> >> >>> email]> a écrit :<br>
>> >> >>><br>
>> >> >>>> I experienced some confusion with calculation of area using the<br>
>> >> >>>> field calculator in QGIS version 2.16.3. Since I'm using MapInfo<br>
>> >> >>>> Professional as well, I mainly use tab-files that I can open in both<br>
>> >> >>>> programmes, but occasionally I save as shapefile since this used to be the<br>
>> >> >>>> default in QGIS.<br>
>> >> >>>><br>
>> >> >>>> When comparing files, I coincidently realized that there was a<br>
>> >> >>>> mismatch in calculated area for the shapefile and the tab-file for exactly<br>
>> >> >>>> the same polygons! I used the field calculator in the attribute table in<br>
>> >> >>>> both cases, but for the shapefile the resulting areas were almost doubled in<br>
>> >> >>>> area compared to the tab-file. Any idea why this is happening?<br>
>> >> >>>><br>
>> >> >>>> I also realized similar differences when calculating area in a<br>
>> >> >>>> file where projection has been converted from SWEREF99TM (a Swedish national<br>
>> >> >>>> projection) to WGS84. There differences occurred in both the tab and<br>
>> >> >>>> shapefile compared to the area calculated for the same tab-file in MapInfo.<br>
>> >> >>>> Again I find this very confusing!<br>
>> >> >>>><br>
>> >> >>>> I need to rely on the area-calculations thus I really hope someone<br>
>> >> >>>> here can explain to me what is happening!<br>
>> >> >>>><br>
>> >> >>>> Thanks in advance,<br>
>> >> >>>> Martina<br>
>> >> >>>><br>
>> >> >>>><br>
>> >> >>>><br>
>> >> >>>><br>
>> >> >>>> ______________________________<wbr>__<br>
>> >> >>>> If you reply to this email, your message will be added to the<br>
>> >> >>>> discussion below:<br>
>> >> >>>><br>
>> >> >>>> <a href="http://osgeo-org.1560.x6.nabble.com/inconsistenty-when-calculating-area-depending-on-file-type-or-projection-tp5290228.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/inconsistenty-when-<wbr>calculating-area-depending-on-<wbr>file-type-or-projection-<wbr>tp5290228.html</a><br>
>> >> >>>> To start a new topic under Quantum GIS - User, email [hidden<br>
>> >> >>>> email]<br>
>> >> >>>> To unsubscribe from Quantum GIS - User, click here.<br>
>> >> >>>> NAML<br>
>> >> >>><br>
>> >> >>><br>
>> >> >>> ______________________________<wbr>__<br>
>> >> >>> View this message in context: Re: inconsistenty when calculating<br>
>> >> >>> area depending on file type or projection?<br>
>> >> >>> Sent from the Quantum GIS - User mailing list archive at<br>
>> >> >>> Nabble.com.<br>
>> >> >>><br>
>> >> >>> ______________________________<wbr>_________________<br>
>> >> >>> Qgis-user mailing list<br>
>> >> >>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> >> >>> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >> >>> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >> >><br>
>> >> >><br>
>> >> >><br>
>> >> >> ______________________________<wbr>_________________<br>
>> >> >> Qgis-user mailing list<br>
>> >> >> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> >> >> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >> >> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > ______________________________<wbr>_________________<br>
>> >> > Qgis-user mailing list<br>
>> >> > <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> >> > List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> >> > Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>