50
Using QGIS and ISCGM Global Map 2013. 11. 04 Minpa Lee([email protected]) Heegu Park([email protected])

Using QGIS and ISCGM Global Map

Embed Size (px)

DESCRIPTION

국토부·KOICA, 개발도상국 공간정보기술 연수 과정 중 QGIS를 이용한 UN Global Map 활용 및 편집

Citation preview

Page 1: Using QGIS and ISCGM Global Map

Using QGIS and ISCGM Global Map

2013. 11. 04

Minpa Lee([email protected])Heegu Park([email protected])

Page 2: Using QGIS and ISCGM Global Map

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

Page 3: Using QGIS and ISCGM Global Map

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

Page 4: Using QGIS and ISCGM Global Map

I. OVERVIEW – QGIS & GLOBAL MAP

4

Page 5: Using QGIS and ISCGM Global Map

I-1. QGIS Overview

QGIS Free & Open Source Geographic Information System

OS

MS Windows Mac OSX Linux, Unix

License

GPL

Language

C++, Python

5

Page 6: Using QGIS and ISCGM Global Map

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

Page 7: Using QGIS and ISCGM Global Map

I-2. ISCGM Global Map V.2ISCGM - International Steering Committee for Global Mapping

http://iscgm.org7

Page 8: Using QGIS and ISCGM Global Map

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

Page 9: Using QGIS and ISCGM Global Map

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

Page 10: Using QGIS and ISCGM Global Map

I-2. ISCGM Global Map V.2Process overview

10

Page 11: Using QGIS and ISCGM Global Map

I-2. ISCGM Global Map V.2Topology Rule – Edge(Line)

11

Page 12: Using QGIS and ISCGM Global Map

I-2. ISCGM Global Map V.2Topology Rule – Face(Polygon)

12

Page 13: Using QGIS and ISCGM Global Map

I-2. ISCGM Global Map V.2Sample Layers - Korea

13

Page 14: Using QGIS and ISCGM Global Map

II. INSTALLING QGIS

14

Page 15: Using QGIS and ISCGM Global Map

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

Page 16: Using QGIS and ISCGM Global Map

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

Page 17: Using QGIS and ISCGM Global Map

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

Page 18: Using QGIS and ISCGM Global Map

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

Page 19: Using QGIS and ISCGM Global Map

III. USING QGIS

19

Page 20: Using QGIS and ISCGM Global Map

III-1. QGIS GUI

① Menu bar

② Tool bar

③ Layer List

④ Map View

⑤ Overview

⑥ Status bar

12

3

4

5

6

20

Page 21: Using QGIS and ISCGM Global Map

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

Page 22: Using QGIS and ISCGM Global Map

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

Page 23: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataExploring maps

23

Pan Map

Zoom In

Zoom Out

Zoom Full

Zoom To Selection

Zoom To Layer

Page 24: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataIdentifying features

24

Identify Features

Page 25: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataSelecting features & opening attribute tables

25

Identify

Page 26: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataStyling point layers

26

Page 27: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataStyling line layers

27

Page 28: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataStyling polygon layers

28

Page 29: Using QGIS and ISCGM Global Map

III-3. Working with Vector DataLabeling layers

29

Page 30: Using QGIS and ISCGM Global Map

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.

Page 31: Using QGIS and ISCGM Global Map

III-4. Working with Raster DataStyling raster layer

31

<Style> <Transparency>

Page 32: Using QGIS and ISCGM Global Map

IV. EXTENDING QGIS

32

Page 33: Using QGIS and ISCGM Global Map

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

Page 34: Using QGIS and ISCGM Global Map

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

Page 35: Using QGIS and ISCGM Global Map

V. EDITING GLOBAL MAP DATA

35

Page 36: Using QGIS and ISCGM Global Map

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

Page 37: Using QGIS and ISCGM Global Map

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

Page 38: Using QGIS and ISCGM Global Map

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

Page 39: Using QGIS and ISCGM Global Map

V-3. Digitizing an Existing Layer

Editing polygon layer - inwatera kor

39

Page 40: Using QGIS and ISCGM Global Map

V-3. Digitizing an Existing Layer

Editing line layer - roadl kor

40

Page 41: Using QGIS and ISCGM Global Map

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

Page 42: Using QGIS and ISCGM Global Map

VI. IMPORT & EXPORT

42

Page 43: Using QGIS and ISCGM Global Map

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

Page 44: Using QGIS and ISCGM Global Map

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

Page 45: Using QGIS and ISCGM Global Map

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

Page 46: Using QGIS and ISCGM Global Map

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

Page 47: Using QGIS and ISCGM Global Map

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

Page 48: Using QGIS and ISCGM Global Map

Q & A

48

Page 49: Using QGIS and ISCGM Global Map

•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

Page 50: Using QGIS and ISCGM Global Map

THANK YOU!

50