[Qgis-user] Wrong area count QGIS 3.20+?

Sebastian Gutwein bas at rdgland.com
Tue Jan 4 11:44:43 PST 2022


Happy to help!

On Tue, Jan 4, 2022 at 2:04 PM Sadowski Jarosław <jaroslaw.sadowski at cpk.pl>
wrote:

> Dear Sebastian,
>
>
>
> I am very grateful to you for taking on my case in such depth.
>
> Now everything is clear to me, thank you kindly for your answer.
>
> I will spread this knowledge further on local QGIS community and Polish
> internet QGIS forums.
>
>
>
> with best regards
>
> and greetings to the entire community of this amazing open-source project
>
> Jarosław Sadowski
>
> *_____________________________*
>
> *Jarosław Sadowski*
> Ekspert ds. Baz Danych i Analiz Przestrzennych | *Biuro Strategii i
> Planowania, Projektowania i Inżynierii Podprogramu Kolejowego*
> *Database and Spatial Analysis Expert |Railway Subprogramme Strategy &
> Planning, Design & Engineering Department*
> e: jaroslaw.sadowski at cpk.pl
>
> *From:* Sebastian Gutwein <bas at rdgland.com>
> *Sent:* Monday, January 3, 2022 3:47 PM
> *To:* Sadowski Jarosław <jaroslaw.sadowski at cpk.pl>
> *Cc:* qgis-user at lists.osgeo.org
> *Subject:* Re: [Qgis-user] Wrong area count QGIS 3.20+?
>
>
>
> Nie otrzymujesz często wiadomości e-mail z adresu bas at rdgland.com. Dowiedz
> się, dlaczego jest to ważne <http://aka.ms/LearnAboutSenderIdentification>
>
> Ok to add to the fun I tried the calculations in ArcPro and interestingly
> if I run it using calculate field with this expression *!shape.geodesicArea at hectares
> <!shape.geodesicArea at hectares>!* I get the QGIS 3.22 value of 31271112
> but if I run Geoprossessing Add Geometry Attributes I get the QGIS 3.16
> value of 31271108.
>
> So if you want them to match I guess you should use the python expression
> in ArcGIS Pro!
>
>
>
> I guess we are back to the old adage of All Measuring is Guessing.
>
> -Bas
>
>
>
>
>
>
>
> On Mon, Jan 3, 2022 at 8:43 AM Sebastian Gutwein <bas at rdgland.com> wrote:
>
> Yes that was my read as well except previously it was the Grass method and
> now it is Geographic Lib method because that is theoretically more accurate
> and is the same method that is used in Postgis and other places. The
> switched happened because someone noticed the difference between QGIS’s
> calculations and Postgis’s calculations. If I am reading the pull requests
> correctly even Grass has switched to the Geographic Lib method. I’m
> surprised that ArcGIS Pro uses the same method as the Grass method.
>
>
>
> On Mon, Jan 3, 2022 at 2:57 AM Sadowski Jarosław <jaroslaw.sadowski at cpk.pl>
> wrote:
>
> Sebastian,
>
>
>
> thank you very much for your precise answer and materials sent - I have
> read them carefully.
>
>
>
> So, as far as I can understand, QGIS has moved in version 3.20 to a new
> way of counting areas (other libraries? GRASS algorithm instead of
> Geographic lib? I have actually noticed a different nomenclature and
> definition of EPSG 2180 for some time in new versions…), that will be more
> accurate?
>
>
>
> I must admit that, for me as a GIS operator, it is surprising and sounds
> like bad news - so far surfaces have always been the same in various GIS
> software, whether or not it was open-source or commercial (ArcGIS Pro). So
> from this moment it will be that I will get different surfaces depending on
> the software it was calculated? :(
>
> with kind regards
> JS
>
> *_____________________________*
>
> *Jarosław Sadowski*
> Ekspert ds. Baz Danych i Analiz Przestrzennych | *Biuro Strategii i
> Planowania, Projektowania i Inżynierii Podprogramu Kolejowego*
> *Database and Spatial Analysis Expert |Railway Subprogramme Strategy &
> Planning, Design & Engineering Department*
> e: jaroslaw.sadowski at cpk.pl
>
> *From:* Sebastian Gutwein <bas at rdgland.com>
> *Sent:* Saturday, January 1, 2022 7:13 AM
> *To:* Sadowski Jarosław <jaroslaw.sadowski at cpk.pl>
> *Cc:* qgis-user at lists.osgeo.org
> *Subject:* Re: [Qgis-user] Wrong area count QGIS 3.20+?
>
>
>
> Nie otrzymujesz często wiadomości e-mail z adresu bas at rdgland.com. Dowiedz
> się, dlaczego jest to ważne <http://aka.ms/LearnAboutSenderIdentification>
>
> There was some discussion on this in the list serve back in January
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fpipermail%2Fqgis-user%2F2021-January%2F047638.html&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=n9NfD1jSBsKsrD9ujGf50us0H5McoNOnjZTet%2BvXFlo%3D&reserved=0>
> that resulted in this feature request
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fqgis%2FQGIS%2Fissues%2F40888&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=7md2NSCR87fR2Uhv2tMwrisF9%2FbiulNQH%2BuTPwqCqok%3D&reserved=0>
> and this pull request
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fqgis%2FQGIS%2Fpull%2F41726&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=I7pSrQ9eHBnY%2BOq6xN5BTbUV2ZkcJOP0k30teMLdJUk%3D&reserved=0>.
> I tested your polygon, to the best of my limited ability, and the areas
> were indeed different in QGIS 3.16 and 3.22 as would be expected from that
> change . However it would be hoped that the area measurement would be more
> accurate in 3.22.
>
>
>
>
>
> On Fri, Dec 31, 2021 at 6:49 AM Sadowski Jarosław <
> jaroslaw.sadowski at cpk.pl> wrote:
>
> Dear all,
>
>
>
> I am asking for help with QGIS error/bug or verification of proper usage
> of basic QGIS functionality “$area”.
>
> From version 3.20 upwards, it counts areas differently than before (3.18
> calculated area is different than 3.20). Up to version 3.18 everything was
> fine, equal to calculations from ArcGIS Pro (geodesic mode).
>
> Anyone have an idea where the differences come from?
> This is example vector [image: Ikona zip] PL_2180.zip
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcpkonline-my.sharepoint.com%2F%3Au%3A%2Fg%2Fpersonal%2Fjaroslaw_sadowski_cpk_pl%2FEVs0-TiEvPdBjMaqXrEvGfoBI0VussbJaYHdDVFfQnEYug%3Fe%3DVDY3rf-&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=AcHBFAywXe35DZ3kZWTRk%2FuaUEp145TjOwmJKp7sf64%3D&reserved=0>:
> Polish borders in EPSG: 2180, in the table of attributes you can see the
> areas (hectares) calculated for different versions of the software.
>
>
>
> with wishes for more success in the new year
>
> Jarosław Sadowski
>
>
>
> *_________________________________*
>
> *Jarosław Sadowski*
> Ekspert ds. Baz Danych i Analiz Przestrzennych | *Biuro Strategii i
> Planowania, Projektowania i Inżynierii Podprogramu Kolejowego*
> *Database and Spatial Analysis Expert | Railway Subprogramme Strategy &
> Planning, Design & Engineering Department*
> e: jaroslaw.sadowski at cpk.pl
> m: +48 532 720 230
>
> Centralny Port Komunikacyjny Sp. z o.o. z siedzibą w Warszawie, Aleje
> Jerozolimskie 142B, 02-305 Warszawa; nr KRS 0000759991, Sąd Rejonowy dla
> m.st
> <https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fm.st%2F&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=B7CaoYlDTquloj9lSkptVRk5HufjeygA%2F5Jz4dVEIYQ%3D&reserved=0>.
> Warszawy, XII Wydział Gospodarczy Krajowego Rejestru Sądowego; NIP
> 701-08-94-497; REGON 381918620; kapitał zakładowy 1.277.500.000,00 zł
> Administratorem danych osobowych przekazanych przez Panią/Pana m.in. w
> korespondencji mailowej jest Centralny Port Komunikacyjny Sp. z o.o. z
> siedzibą w Warszawie. Przetwarzamy dane osobowe zgodnie z przepisami
> ogólnego rozporządzenia o ochronie danych (RODO), więcej informacji na ten
> temat znajduje się w zakładce Polityka Prywatności oraz w Klauzuli
> informacyjnej na stronie internetowej www.cpk.pl
> <https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cpk.pl%2F&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=d2OFxWZhnHrSy6dckzXCdEW7DfGmMV74yooJaXG8qBY%3D&reserved=0>
> .
> Treści zawarte w niniejszej wiadomości i załącznikach do niej stanowią
> Tajemnicę Przedsiębiorstwa w rozumieniu ustawy z dnia 16 kwietnia 1993 r. o
> zwalczaniu nieuczciwej konkurencji. Jeśli otrzymałeś tę wiadomość przez
> pomyłkę, bezzwłocznie skontaktuj się z nadawcą wiadomości oraz usuń jej
> treść.
> Solidarity Transport Hub Poland: Centralny Port Komunikacyjny Sp. z o.o.
> with headquarters in Warsaw, Aleje Jerozolimskie 142B, 02-305 Warsaw
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fmaps%2Fsearch%2FWarsaw%2C%2BAleje%2BJerozolimskie%2B142B%2C%2B02-305%2BWarsaw%3Fentry%3Dgmail%26source%3Dg&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=nk3QO9xhjOsLh1GIzBRPBOLNdoNLPugHvh%2B0UioLiBM%3D&reserved=0>;
> KRS No. 0000759991, District Court for the Capital City of Warsaw, 12th
> Commercial Department of the National Court Register; NIP 701-08-94-497;
> REGON 381918620; share capital of PLN 1.277.500.000,00.
> The personal data controller of the personal data provided by you, among
> others, in the e-mail correspondence, is Centralny Port Komunikacyjny Sp. z
> o. o. based in Warsaw. The personal data is processed by us in accordance
> with the provisions of the General Data Protection Regulation (GDPR), for
> further information please read the Privacy Policy tab and the Information
> Clause on the www.cpk.pl
> <https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cpk.pl%2F&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=d2OFxWZhnHrSy6dckzXCdEW7DfGmMV74yooJaXG8qBY%3D&reserved=0>
> website.
> The content of this message and its attachments constitute the Business
> Secret within the meaning of the Act of 16 April 1993 on combating unfair
> competition. If you received this message by mistake, contact the sender of
> the message immediately and delete its content
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mXi0ru9jRmA5AiF56es7EP%2FhcXzUNENiY7mGdjmXyZ8%3D&reserved=0>
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> <https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fqgis-user&data=04%7C01%7Cjaroslaw.sadowski%40cpk.pl%7C72f10e545ec748e873ca08d9cec7e6d0%7Cfa798250ca0b4a1bb47381cff4a1752b%7C1%7C0%7C637768180240837962%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=mXi0ru9jRmA5AiF56es7EP%2FhcXzUNENiY7mGdjmXyZ8%3D&reserved=0>
>
> --
>
> Sent from a phone. Amazing! But possibly garbled. Sebastian Gutwein
> Regenerative Design Group 1 Chevalier Ave Greenfield MA Bas at rdgland.com
> (631) 241-1018
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220104/ee230569/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15295 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220104/ee230569/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 193 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220104/ee230569/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 5596 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220104/ee230569/attachment-0005.png>


More information about the Qgis-user mailing list