presented by: shahab spring 2016
TRANSCRIPT
Presented by: Shahab
Spring 2016
Introduction
Data
Analytics
Plugins
Learning Resources
Introduction
Data
Analytics
Plugins
Learning Resources
Q(uantum)GIS is an open source Geographic Information System that supports mostgeospatial vector and raster file types and database formats.
Unlike many other open source GIS programs, QGIS is available for a number ofoperating systems, including both Windows and Mac OSX.
From: http://spatialnews.geocomm.com/articles/qgisreview/
4
Install QGIS (the standalone version)
http://www.qgis.org/en/site/forusers/download.html
Download Data: City of Nanaimo, British Columbia, Canada
Dropbox Link (temporary)
5
Feature QGIS ArcGIS
License Free (open source) Free for 60 days
Supported data types
GUI Things are more accessible
Browsers QGIS Browser ArcCatalog
Joining tables
Coordinating Systems
Online datasets
Plugins, tools
Geo statistical tools
Remote Sensing Tools
Workflow builders
Symbology
Labeling
6
7
Feature QGIS ArcGIS
3D
Animations
Color coding maps
Editing maps
Fixing topological errors
Geocoding
Allows viewing and editing data
Shape Data
Raster Data
Web Services (Demo)
http://maps.ngdc.noaa.gov/
Web Services
Global Relief Model
8
Introduction
Data
Analytics
Plugins
Learning Resources
Data
Vector
SHP
WFS
Raster
ECW
WMS
DEM
Styling
Points
Polylines
Polygons
Other
Create
CSV
Export
Edit
Data
Vector
SHP
WFS
Raster
ECW
WMS
DEM
Styling
Points
Polylines
Polygons
Other
Create
CSV
Export
Edit
Vector data is used to show spatial features, such as trees, buildings, rivers …
They are 2.5 D! X, Y and optional Z (captures either depth or height)
1. Point feature: trees
2. Polyline feature: connected points that do not form an enclosed shape such as highways andrivers
3. Polygon feature: connected points that form an enclosed shape ,such as school boundaries
Shape Files (By ESRI, standard in QGIS)
WFS (Web Feature Service): streams data directly from a server to QGIS (try this)
Caching (faster but doesn’t update automatically)
12
They are widely used for spatial analysis
Accuracy is very important
Scale problem
Silver problem
Undershoot and overshoot problems
13
Data
Vector
SHP
WFS
Raster
ECW
WMS
DEM
Styling
Points
Polylines
Polygons
Other
Create
CSV
Export
Edit
Image-based: they have to be georeferenced
They need a helper file or coordinates are saved within the file
Coordinate system should be known
ECW (Enhance Compressed Wavelet): much smaller than GIF or JPEG
Data → Raster → load 4 ecw files with the UTM ZONE 10n
Transform to WGS84 which has latitude and longitude
WMS (Web Mapping Service) / WMTS (Web Mapping Tiles Service)
WMS-Toporama, road network, built-ups (PNG24 vs. JPEG)
Add Parcels layer
15
DEM (Digital Elevation Model)
Raster → 092…
Color-coded based on the elevation (in meters from the sea level) by default.
Rename to east coast and west coast
Set 0 to 313
Make it white to black
Extracting contours as shapes
Raster → Extraction → Contours
Set Elevation to 5 (meters)
Pick a line a see the elevation of the region!
Merge layers Vector → Data Management Tools → Merge Shapefiles to One
16
Data
Vector
SHP
WFS
Raster
ECW
WMS
DEM
Styling
Points
Polylines
Polygons
Other
Create
CSV
Export
Edit
Data → Shape → Water → APPURTENANCES.shp
Rename to Fire Hydrants
Filter only Public Hydrants using the query builder
Use the Hydrant.svg to represent them
Drag and drop Pipes.shp
18
Data → ROAD_CENTERLINES.shp
Make it dashed yellow
Add a solid black line (1mm) under it
Add Data → WATER → PIPES.shp
Make it blue
Filter main ‘Primary Supplies’
19
Data → Water → BUILDINGS.shp
DATA → WATER → PARCELS.shp
Data → Raster → 452D.ecw
Edit buildings
Border = No pen
Fill = Gray
20
Edit Parcels
Border: White
Fill: orange
Transparency = 50%
DATA → WATER → PIPES.shp
Instead of single symbol, use Categorized
Choose the column ‘Type’
Click on classify
Remove the null ones!
Same color different diameters
Edit, Fields and Values, chosoe ‘Diameter’/100
If we want different colors:
Choose Graduate instead of single Symbol
Classify into 5 interval groups
21
DATA → SHP → ROAD_CENTERLINES.shp
Show Labels
Label with: STREETNAME
Data → Raster → 452D.ecw
Add Buffer
Go to Placement: choose Curve, Above line
DATA → SHP → PARCELS.shp
Make it transparent
Add HOUSENUMBE(R)
Make it more complex! "HOUSENUMBE" + '\n' + "STREETNAME"
Make it invisible for small scales: Rendering → Check Scale-based visibility
22
Data
Vector
SHP
WFS
Raster
ECW
WMS
DEM
Styling
Points
Polylines
Polygons
Other
Create
CSV
Export
Edit
Create new data
Export data: we want to save only supply lines!
DATA → WATER → PIPES.shp
Query builder: "TYPE" LIKE '%Supply‘
Right click → Save as ESRI Shapefile
Loading From CSV
Layer → Add Layer → Delimited Text File
DATA → CSV → incidents.csv, set x and y as lat and long, WSG 84
Check info
To edit data, either edit it from the original file or save at as a shape file
24
Edit data
DATA → PARCELS.shp
Click on edit
Change the nodes locations
Delete using the select tool
Add feature
Fields
Introduction
Data
Analytics
Plugins
Learning Resources
Analytics Overlaying Heatmap Centroids
Analytics Overlaying Heatmap Centroids
Add zones from parcels to buildings
DATA → SHP → BUILDINGS.shp
DATA → SHP → PARCELS.shp
Vector → Data Management tools → Join Attributes by Location
28
Analytics Overlaying Heatmap Centroids
Layer → Add Layer → Delimited Text File
DATA → CSV → incidents.csv, set x and y as lat and long, WSG 84
DATA → SHP → ROAD_CENTERLINES.shp
30
Analytics Overlaying Heatmap Centroids
DATA → SHP → PARCELS.shp
Vector → Geometry Tools → Polygon Centroids
Zoom in over the island
Add house numbers
Move one label
Select label
Click on edit
Move using the Move Feature tool
32
Introduction
Data
Analytics
Plugins
Learning Resources
Plug-ins Open Layers GeoSearch
Plug-ins Open Layers GeoSearch
DATA → SHP → ROAD_CENTERLINES.shp
Plugins → Manage and Install
OPENLAYERSPLUGIN
Web -> Open Layers -> OpenStreetMap
Web -> Open Layers -> Google Maps -> Google Hybrid
36
Plug-ins Open Layers GeoSearch
DATA → SHP → ROAD_CENTERLINES.shp
DATA → SHP → Buildings.shp
Plugins → Manage and Install
GEPSEARCH
Look for nanimo city hall, rename
Look for Lios lane, nanimo
Distance
Route (right click to finish)
38
Introduction
Data
Analytics
Plugins
Learning Resources
QGIS documentation: http://www.qgis.org/en/docs/index.html
Mastering QGIS
QGIS By Example
Learning QGIS
QGIS Tutorials and Tips
QGIS Course on Lynda
40