Hi, 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.
Nicolas Cadieux > Le 23 sept. 2020 à 13:13, ming han <[email protected]> a écrit : > > > Hi Nicolas > > 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. > I can only read the attribute of this vector object feature by feature. I > do not know how to read all attribute at once. > Thanks > Ming > > Nicolas Cadieux <[email protected]> 于2020年9月23日周三 下午12:03写道: >> Hi, >> >> 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. >> >> Nicolas Cadieux >> >> > Le 23 sept. 2020 à 11:41, ming han <[email protected]> a écrit : >> > >> > >> > Hi All >> > >> > 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. >> > >> > Thanks >> > Ming >> > _______________________________________________ >> > Qgis-user mailing list >> > [email protected] >> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
