Geometry Attribute Table

att_table An attribute table window which includes a geometry describing column for any vector layer.

The geometry column uses the icons shown in Table 1 to indicate a feature’s geometry value or type in descending precedence: unknown (null); empty; point; multi-part point; line; multi-part line; polygon; and, multi-part polygon.

Table 1 Icons used to represent various geometries.
Icon Geometry Description Precedence
Null Unknown value First
Empty Empty value Second
poin_1x Point type Third
poin_2x Multi-Part Point type Fourth
line_1x Line type Fifth
line_2x Multi-Part Line type Sixth
poly_1x Polygon type Seventh
poly_2x Multi-Part Polygon type Eighth

The plugin does not distinguish between two dimensional and three dimensional shapes, nor between those with or without measurements. The plugin does not consider whether geographic or cartesian coordinates are used for the spatial reference system.

Use

This tool works on the current active layer within QGIS. The current layer needs to be a vector layer. This tool will not work on a raster layer.

Within QGIS, click on the vector layer to be analysed in the Layers Panel to make it active, then click on the Geometry Attribute Table icon att_table or select the Geometry Attribute Table item from the Geometry Attribute Table group on the Plugins menu. Successful use of the Geometry Attribute Table tool will display a new window with the title “Geometry-Attribute Table” that contains an attribute table where the last column has the heading “Geometry”. Fig. 1 shows an example of an open Geometry Attribute Table output window with a “Geometry” column heading. This geometry describing column uses the icons shown in Table 1 to represent each record’s geometry.

../_images/pluginScreenShot.png

Fig. 1 A screen shot of the window containing an attribute table produced by the Geometry Attribute Table tool in a Microsoft Windows environment.

A text version of the Geometry column will also be appended to the conventional QGIS attribute table (Fig. 2). Successful closing of the Geometry Attribute Table window will also remove this appended Geometry column.

../_images/stdScreenShot.png

Fig. 2 A screen shot of the standard QGIS Attribute Table window showing the same dataset shown in Fig. 1 in a Microsoft Windows environment. The column with the heading “Geometry” is a virtual field created by the Geometry Attribute Table tool and will be removed when the Geometry-Attribute Table window is closed.