<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br><div>This is like a cross tab or a pivot table in Excel. You need to place the polygon layer in the column field.</div><div><br></div><div><a href="https://anitagraser.com/2013/02/02/group-stats-tutorial/">https://anitagraser.com/2013/02/02/group-stats-tutorial/</a><br><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 18 juill. 2021 à 12:47, krishna Ayyala <ayyalakrishna@gmail.com> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Nicolas,</div>Thanks for your reply.They are not multi polygons. They are two separate polygons. That means A with area 60 is one polygon and A with area 30 is second polygon. If I select one polygon on the map, only one polygon gets highlighted. But, in group stats ,I have selected the first row which is A 60. I clicked "Features" and then "Show selected on map" both the polygons on the map are getting highlighted. As I mentioned before, only one polygon should get highlighted. If I create a unique id, that will not serve the purpose. I am trying to derive the polygon with maximum area  from the list of polygons that are labeled as A.<div><br></div><div>Regards.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 18, 2021 at 9:58 AM Nicolas Cadieux <<a href="mailto:njacadieux.gitlab@gmail.com">njacadieux.gitlab@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div><br><div>I do you have multipolygons in your input files?  If not, perhaps the multipolygon is being created because both polygon have the same ID, A.  Try creating a unique id field to see what is going on.  A multipolygon or multipart object will contain multiple polygons but only one data line in the data table. You can split multipolygon with a «multiple to single »tool found in the vector menu.<br><br><div dir="ltr">Nicolas Cadieux<div><a href="https://gitlab.com/njacadieux" target="_blank">https://gitlab.com/njacadieux</a></div></div><div dir="ltr"><br><blockquote type="cite">Le 17 juill. 2021 à 20:56, krishna Ayyala <<a href="mailto:ayyalakrishna@gmail.com" target="_blank">ayyalakrishna@gmail.com</a>> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hello,<br><div>I have a polygon shape file with an attribute table as shown below.</div><div><br></div><div><div><image.png></div><br></div><div><br></div><div>I am using the Group stats tool to derive only those rows that have max area for each polygon. After clicking calculate, I got the results below. In the below window. I have selected the first row which A 60. I clicked "Features" and then "Show selected on map" . Technically, it is supposed to highlight only one polygon which is A with an area 60 on the map. But is highlighting both the polygons i.e..A with an area 60 and also A with an area 30. Is there a way to select only the polygon A with an area 60?</div><div><br></div><div><div><image.png></div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
<span>_______________________________________________</span><br><span>Qgis-user mailing list</span><br><span><a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a></span><br><span>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br><span>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></span><br></div></blockquote></div></div></div></blockquote></div>
</div></blockquote></div></div></body></html>