<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br><div>I could only be of help if your are working outside the QGIS API.  I normally work with python directly for this stuff.  I would use a geopandas dataframe that can be easily created. Google Geopandas and you with find it in a flash. <br><br><div dir="ltr">Nicolas Cadieux</div><div dir="ltr"><br><blockquote type="cite">Le 23 sept. 2020 à 13:13, ming han <dustming@gmail.com> a écrit :<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi Nicolas <div><br></div><div>   Many thanks for your reply, would you please give me some specific suggestions. Normally I can read the attribute table by reading the dbf files. but this time I stored the vector object in memory, do not want to save it to files.  </div><div>    I can only read the attribute of this vector object feature by feature. I do not know how to read all attribute at once. </div><div> Thanks</div><div>Ming</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Nicolas Cadieux <<a href="mailto:njacadieux.gitlab@gmail.com" target="_blank">njacadieux.gitlab@gmail.com</a>> 于2020年9月23日周三 下午12:03写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
More knowledgeable people than me surely  respond but are you looking for something like geopandas dataframe?  I image the QGIS API has something like this.<br>
<br>
Nicolas Cadieux<br>
<br>
> Le 23 sept. 2020 à 11:41, ming han <<a href="mailto:dustming@gmail.com" target="_blank">dustming@gmail.com</a>> a écrit :<br>
> <br>
> <br>
> Hi All<br>
> <br>
>     Is there a way to read the polygon attribute table at one time with python. I notice that there are several ways to read it feature by feature. <br>
> <br>
> Thanks<br>
> Ming<br>
> _______________________________________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div>
</div></blockquote></div></div></body></html>