官术网_书友最值得收藏!

Removing columns

In the first example, let's delete some values from our administrative boundaries layer. If we inspect its attribute table, we can see some unnecessary columns. In my table, ID_0 and CCN_1 have constant values, which have absolutely no meaning to me. The CCA_1 and NL_NAME_1 columns are filled with null values, while VARNAME_1 is scarcely filled, therefore, I cannot use them. Let's pick every unnecessary column and remember their names. In the attribute table's toolbar, we can see some tools related to data management. We can add and remove columns; however, those options are disabled. We can enable them by starting an edit session by clicking on the first, Toggle editing mode button. With the editing options enabled, we can proceed by activating the Delete field tool, selecting the columns we would like to remove, and approving the operation with the OK button:

When the operation stops, we can see our unnecessary columns removed. If we save our edits, QGIS overwrites our layer and they are gone for good. Of course, we can change our mind or realize we accidentally removed some important data. In this case, we can restore the original conditions by not saving our edits.

主站蜘蛛池模板: 桑日县| 都兰县| 福海县| 洪湖市| 滨海县| 交口县| 都兰县| 兴山县| 晋中市| 桐梓县| 黑河市| 桦南县| 溆浦县| 文安县| 济源市| 东城区| 通道| 峡江县| 加查县| 曲水县| 沁水县| 黎川县| 汶上县| 石渠县| 高台县| 甘泉县| 霍山县| 泸溪县| 吴川市| 德庆县| 丰顺县| 永嘉县| 汾西县| 特克斯县| 中卫市| 卓尼县| 尼木县| 安陆市| 宣武区| 开阳县| 长葛市|