- Practical GIS
- Gábor Farkas
- 210字
- 2021-07-02 22:49:17
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.
- 微服務(wù)設(shè)計(jì)(第2版)
- C語(yǔ)言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- Programming ArcGIS 10.1 with Python Cookbook
- Mastering Kali Linux for Web Penetration Testing
- TradeStation交易應(yīng)用實(shí)踐:量化方法構(gòu)建贏家策略(原書第2版)
- OpenCV 4計(jì)算機(jī)視覺(jué)項(xiàng)目實(shí)戰(zhàn)(原書第2版)
- 代替VBA!用Python輕松實(shí)現(xiàn)Excel編程
- Deep Learning with R Cookbook
- Python+Office:輕松實(shí)現(xiàn)Python辦公自動(dòng)化
- 視窗軟件設(shè)計(jì)和開(kāi)發(fā)自動(dòng)化:可視化D++語(yǔ)言
- 深入大型數(shù)據(jù)集:并行與分布化Python代碼
- Visual FoxPro程序設(shè)計(jì)習(xí)題及實(shí)驗(yàn)指導(dǎo)
- H5匠人手冊(cè):霸屏H5實(shí)戰(zhàn)解密
- Android從入門到精通
- jQuery權(quán)威指南