- Practical GIS
- Gábor Farkas
- 277字
- 2021-07-02 22:49:15
Preparing our data
From the currently opened vector layers, the GeoNames layer has the largest attribute table with the most kinds of attributes. However, as the extract does not contain headers, it is quite hard to work with it. Fortunately, CSV files can be edited as regular text files or as spreadsheets. As the first step, let's open the GeoNames file with a text editor and prepend a header line to it. It is tab delimited; therefore, we need to separate the field names with tabs. The field names can be read out from the readme file in order. In the end, we should have a first line looking something like this:
geonameid name asciiname alternatenames latitude longitude
featureclass
featurecode countrycode cc2 admin1 admin2 admin3 admin4 population
elevation
dem timezone modification
Now we can remove our GeoNames layer from the layer tree and add it again. In the form, we have to check the option First record has field names. If we do so, and name the latitude and longitude fields accordingly, we can see QGIS automatically filling the X and Y fields:

- AngularJS入門與進階
- Computer Vision for the Web
- 信息可視化的藝術:信息可視化在英國
- MATLAB應用與實驗教程
- 精通API架構:設計、運維與演進
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- 快人一步:系統性能提高之道
- Protocol-Oriented Programming with Swift
- ArcGIS for Desktop Cookbook
- Serverless Web Applications with React and Firebase
- 輕松學Scratch 3.0 少兒編程(全彩)
- Mastering Machine Learning with scikit-learn
- Python編程基礎與數據分析
- 微信公眾平臺服務號開發:揭秘九大高級接口
- MATLAB/Simulink與過程控制系統仿真