Upload
minpa-lee
View
1.184
Download
4
Tags:
Embed Size (px)
DESCRIPTION
국토부·KOICA, 개발도상국 공간정보기술 연수 과정 중 QGIS를 이용한 UN Global Map 활용 및 편집
Citation preview
Using QGIS and ISCGM Global Map
2013. 11. 04
Minpa Lee([email protected])Heegu Park([email protected])
Lecturer
사진
Name: Minpa Lee
Department: R&D, Mango System inc.
Contact: #A201, 98, Haenggung-ro, Paldal-gu, Suwon-si, Gyeonggi-do, 442-130, Korea E-mail: [email protected]
<Education Background>- BA on Seoul National University, Korea, Geography Education(03. 1992 ~ 02. 1999)
<Community> - OSGeo, Charter member - OSGeo Korean Chapter, Korean Translator
2
Contents
• I. Overview–QGIS & Global map– I-1. QGIS Overview– I-2. ISCGM Global Map V.2
• II. Installing QGIS– II-1. Installing QGIS– II-2. Installing Google Earth
• III. Using QGIS – III-1. QGIS GUI– III-2. QGIS Toolbar– III-3. Working with Vector Data– III-4. Working with Raster Data
• IV. Extending QGIS– IV-1. QGIS Plugins
• V. Editing Global Map Data – V-1. Setting Environment– V-2. Digitizing Toolbar– V-3. Digitizing an Existing Layer– V-4. Creating a New Layer
• VI. Import & Export– VI-1. Import– VI-2. Export– VI-3. Export to OGC GML format
3
I. OVERVIEW – QGIS & GLOBAL MAP
4
I-1. QGIS Overview
QGIS Free & Open Source Geographic Information System
OS
MS Windows Mac OSX Linux, Unix
License
GPL
Language
C++, Python
5
I-1. QGIS Overview QGIS
QGISDesk-top QGIS
Browser
QGISClient
QGISServer
QGIS Library(C++)
Desktop GIS for querying, creating, editing, analyzing geospatial data
Browser for spatial data
Web Mapping Frame-work based on QGIS Server and GeoExt
WMS 1.3.0, 1.1.1 Server FastCGI/CGI Program SLD Support
6
I-2. ISCGM Global Map V.2ISCGM - International Steering Committee for Global Mapping
http://iscgm.org7
I-2. ISCGM Global Map V.2
Layer Name Type Inclusion Abbreviation
Transportation
Airport Point Optional airpRailroad Station Point Optional rstatpRailroad Edge Mandatory raillRoad Edge Mandatory roadlTrails and Tracks line Edge Mandatory TraillFerry route Edge Optional ferrylPort Point Optional portp
Boundaries
Political Boundary Point Mandatory polbndpCoast Line Edge Mandatory coastlPolitical Boundary Line Edge Mandatory polbndlPolitical Boundary Area Face Mandatory polbnda
Drainage
Miscellaneous(Dam/Weir/Island, Spring/Water-Hole)
Point Optional miscp
Aqueduct/Canal/Flume/Penstock Edge Optional aquelMiscellaneous(Dam/Weir) Edge Optional misclWater Course Edge Mandatory riverlInland Water Face Mandatory inwatera
PopulationCentres
Built-up Area (point) Point Optional builtuppBuilt-up Area (face) Face Optional builtupa
Global Map data is equivalent to 1:1 million scale map
Vector Layer – Transportation, Boundaries, Drainage, Population Centres
8
I-2. ISCGM Global Map V.2
Layer Name Type
Raster
Elevation RasterThe vertical distance between the surface of the earth and the standard sea level
Vegetation Raster Percent Tree Cover data by an integer value from 0 to 100 Land Cover Raster GLCNMO global legend Land Use Raster Codes developed for Global Map
Eleva-tion
Vegeta-tion
Land Cover
Land Use
Raster Layer – Elevation, Vegetation, Land Cover, Land Use
9
I-2. ISCGM Global Map V.2Process overview
10
I-2. ISCGM Global Map V.2Topology Rule – Edge(Line)
11
I-2. ISCGM Global Map V.2Topology Rule – Face(Polygon)
12
I-2. ISCGM Global Map V.2Sample Layers - Korea
13
II. INSTALLING QGIS
14
II-1. Installing QGISInstall QGIS Dufour (2.0.1) on Windows OS
① Download latest QGIS Dufour (2.0.1) from http://www.qgis.org/ ② Save the File to your machine and double click on the .exe file to in-
stall ③ Accept the install defaults to complete the process ④ Launch QGIS
15
II-1. Installing QGISChange the language setting/interface of QGIS
① Launch QGIS② [ 설정 ] [ 옵션… ] [ 언어설정 ] [U.S. English] [ 확인 ]③ Select [Setting] [Options…] menu and Select [Locale] [U.S. Eng-
lish] [OK] ④ Restart QGIS
16
II-2. Installing Google EarthInstall Google Earth on Windows OS
① Download latest Google Earth from http://www.google.com/intl/en/earth/ or http://earth.google.com
② Save the File to your machine and Double click on the .exe file to install
③ Accept the install defaults to complete the process ④ Launch Google Earth
17
II-2. Installing Google EarthChange the language setting/interface of Google Earth
① Launch Google Earth② [ 도구 ] [ 옵션… ] [ 일반 ] [ 언어 설정 ] [English (US)] [ 확인 ]③ Select [Tools] [Options…] [General] [Language settings]
[ English (US)] [OK] ④ Restart Google Earth
18
III. USING QGIS
19
III-1. QGIS GUI
① Menu bar
② Tool bar
③ Layer List
④ Map View
⑤ Overview
⑥ Status bar
12
3
4
5
6
20
III-2. QGIS ToolbarCustomizing toolbar
Right-click on empty gray part of TOOLBAR area
Click on the TOOLBAR handle (gray dots on left edge) to enable MOVE control
Drag the TOOLBAR handle to any open space on TOOLBAR AREA and let go
21
III-3. Working with Vector DataAdding vector data
• Click [Layer] [Add Vector Layer…]• Browse to the “C:\WorldMap\vector” folder and select all files that
ends “*.shp“• Notice that the Source Type will default to SYSTEM encoding.
– QGIS is VERY good at handling various character set encodings (such as multi-byte Chinese & Japanese, or UTF-8)!
• Click [open] button to add the selected layers to the current project.
22
III-3. Working with Vector DataExploring maps
23
Pan Map
Zoom In
Zoom Out
Zoom Full
Zoom To Selection
Zoom To Layer
III-3. Working with Vector DataIdentifying features
24
Identify Features
III-3. Working with Vector DataSelecting features & opening attribute tables
25
Identify
III-3. Working with Vector DataStyling point layers
26
III-3. Working with Vector DataStyling line layers
27
III-3. Working with Vector DataStyling polygon layers
28
III-3. Working with Vector DataLabeling layers
29
III-4. Working with Raster DataAdding raster data
30
• Click [Layer] [Add Raster Layer…]• Browse to the “C:\WorldMap” folder and select the filename that
ends “ALPSMW274822845_ortho.tif“• Click [open] button to add the selected layers to the current
project.
III-4. Working with Raster DataStyling raster layer
31
<Style> <Transparency>
IV. EXTENDING QGIS
32
IV-1. QGIS PluginsInstalling QGIS plugins
① Click [Plugins] [Manage and Install Plugins…] menu② Select [OpenLayers Plugin]③ Click [Install] button
Manual Installation① Copy [C:\WorldMap\plugin\openlayers_plugin.zip] file to [C:\Users\[your login
name]\.qgis2\python\plugins] folder② unzip files and restart QGIS
33
IV-1. QGIS PluginsHow to use OpenLayers Plugin
① Click [Plugins] [OpenLayers Plugin] menu② Select [Add Google Satellite layer]③ Select vector layer and click [Zoom to Layer Extent]
34
V. EDITING GLOBAL MAP DATA
35
V-1. Setting EnvironmentSetting the Snapping Tolerance and Search Radius
① Click [Settings] [Options…] menu② Select Digitizing tab③ Set snapping environment: Default snap mode
To vertex and segment
Default snapping tolerance 10.0 pixels
Default radius for vertex edits 10.0 pixels
36
V-2. Digitizing ToolbarVector layer basic editing toolbar
Tips: Panning the map during digitizing is possible with the arrow keys or mouse wheel or space bar + mouse
1. Current Edits
2. Toggle Editing
3. Save Layer Edits
4. Add Feature
5. Move Feature(s)
6. Node Tool
7. Delete Selected Features
8. Cut Features
9. Copy Features
10. Paste Features
1
2
3
4
5
6
7
8
9
10
37
V-3. Digitizing an Existing Layer
Editing layers
① Select the target layer you want to edit② Click button from the digitizing toolbar③ Click button to add feature④ Start digitizing on the map⑤ To finish digitizing, right-click anywhere on the
map⑥ Enter the attributes for the new feature⑦ Click button to save edits.⑧ Click button to stop editing
38
V-3. Digitizing an Existing Layer
Editing polygon layer - inwatera kor
39
V-3. Digitizing an Existing Layer
Editing line layer - roadl kor
40
V-4. Creating a New LayerCreating and Editing Shapefiles
① Click [Layer] [New] [New Shapefile Layer…] menu② Select Polygon Type and set WGS 84 CRS③ Enter “Name” by manually typing in the Name textbox④ Click [Add to attributes list] button⑤ Click OK button and specify new layer name
41
VI. IMPORT & EXPORT
42
VI-1. ImportImport CSV File 1
① Click [Layer] [Add Delimited Text Layer…]② Select the CSV file from [C:\WorldMap\ events.csv]③ Check X, Y fields
X = LON Y = LAT
43
VI-1. ImportImport CSV File 2
① Click OK and Select Coordinate Reference System② Right-click on the layer to Open the Attribute Table, and make sure
the tabular data was imported
44
VI-2. Export to ShapefileExport to ESRI Shape file
① Select [events] layer② Right-click and select [Save As…] menu③ Options
CRS transformation Encoding
④ Click OK
45
VI-2. Export to OGC GML for-mat
OGC GML: XML grammar for expressing geographical features
① Add [roadl kor] layer from shapefiles and select layer② Right-click and select [Save As…] menu③ Select UTF-8 Encoding
Default xml encoding
④ Click OK
46
VI-2. Export to KML formatExport to Google Earth KML format
① Add [roadl kor] layer from shapefiles and select layer② Right-click and select [Save As…] menu③ Select WGS 84 CRS④ Click OK⑤ Go to [Windows Explorer] and double click kml file
47
Q & A
48
•QGIS Home: http://www.qgis.org •QGIS Online Manuals: http://www.qgis.org/en/documentation/manuals.html
•QGIS Workshop : http://maps.cga.harvard.edu/qgis/•UC Davis QGIS Lab: http://www.plantsciences.ucdavis.edu/plant/qgislabs.htm
•Scratching Surfaces : http://www.surfaces.co.il/?p=872•Nathans QGIS Blog: http://woostuff.wordpress.com/•Spatial Galaxy : http://spatialgalaxy.net/
Reference
49
THANK YOU!
50