From Geographic Information to GIS - Part II: Processing Data
-
Upload
arno974 -
Category
Technology
-
view
107 -
download
0
description
Transcript of From Geographic Information to GIS - Part II: Processing Data
![Page 1: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/1.jpg)
From Geographic Information to GISGetting the Map into the computer
Part II: Processing Data
Arnaud Vandecasteele
Memorial Univ. of Newfoundland,
Canada
3/02/2013
![Page 2: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/2.jpg)
2/48
Outline
Introduction
1 – Processing GPX Data
2 – Using GPX Data in GIS
3 – Using GPX Data in VGI
Conclusion
Introduction
![Page 3: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/3.jpg)
3/48
Objectives
Introduction
Methods and tools to process your GPX data
Integration of your GPX inside a GIS platform
Integration of your GPX inside a VGI platform
![Page 4: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/4.jpg)
4/48
I – Processing GPX data
![Page 5: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/5.jpg)
5/48
GPX, or GPS eXchange is a light-weight XML data format for the interchange of GPS data (waypoints, route and tracks)
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx ...>
<metadata> ... </metadata>
</gpx>
<wpt lat="#" lon="#"> <ele>#</ele> <name>...</name> …</wpt><wpt lat="#" lon="#"> …</wpt>
<trk> <trkseg> <trkpt lat="#" lon="#"> <ele>#</ele> </trkpt> <trkpt ...> …. </trkpt> </trkseg></trk>
Metadata
Data
Track Waypoint
GPX File.Gpx
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 6: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/6.jpg)
6/48
Analysing GPZ File - Metadata
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx ...
creator="eTrex 20" version="1.1" ...<metadata>
<link href="http://www.garmin.com"> <text>Garmin International</text></link><time>2013-02-05T12:03:16Z</time>
</metadata><trk> <name>MMMMMMMK3 08:33:02</name> <trkseg> <trkpt lat="47.5536662433" lon="-52.7926951088"><ele>169.81</ele><time>2013-02-05T11:44:41Z</time></trkpt> <trkpt lat="47.5540290959" lon="-52.7929564565"><ele>168.37</ele><time>2013-02-05T11:44:50Z</time></trkpt> <trkpt lat="47.5542206224" lon="-52.7935003582"><ele>167.41</ele><time>2013-02-05T11:44:57Z</time></trkpt> <trkpt lat="47.5541830715" lon="-52.7945925202"><ele>167.41</ele><time>2013-02-05T11:45:07Z</time></trkpt> <trkpt lat="47.5543716643" lon="-52.7948338352"><ele>166.93</ele><time>2013-02-05T11:45:15Z</time></trkpt>
</trkseg></trk>
</gpx>
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 7: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/7.jpg)
7/48
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><gpx ...
creator="eTrex 20" version="1.1" ...<metadata>
<link href="http://www.garmin.com"> <text>Garmin International</text></link><time>2013-02-05T12:03:16Z</time>
</metadata><trk> <name>MMMMMMMK3 08:33:02</name> <trkseg> <trkpt lat="47.5536662433" lon="-52.7926951088"><ele>169.81</ele><time>2013-02-05T11:44:41Z</time></trkpt> <trkpt lat="47.5540290959" lon="-52.7929564565"><ele>168.37</ele><time>2013-02-05T11:44:50Z</time></trkpt> <trkpt lat="47.5542206224" lon="-52.7935003582"><ele>167.41</ele><time>2013-02-05T11:44:57Z</time></trkpt> <trkpt lat="47.5541830715" lon="-52.7945925202"><ele>167.41</ele><time>2013-02-05T11:45:07Z</time></trkpt> <trkpt lat="47.5543716643" lon="-52.7948338352"><ele>166.93</ele><time>2013-02-05T11:45:15Z</time></trkpt>
</trkseg></trk>
</gpx>
What does this file tell us?
GPS Metadata
GPS Positions: Tracks
Analysing GPZ File - Metadata
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 8: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/8.jpg)
8/48
GPX Visualisation
GPX Path
Elevation Profil
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 9: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/9.jpg)
9/48
GPX Visualisation
Specific PointInformation
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 10: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/10.jpg)
10/48
GPX Cleaning Manual Process
Potential error
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 11: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/11.jpg)
11/48
GPX Cleaning Manual Process
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 12: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/12.jpg)
12/48
GPX Cleaning Automatic Process
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 13: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/13.jpg)
13/48
e.g., KML, SVG, export
GPX Export
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 14: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/14.jpg)
14/48
First GPX
GPX Comparison, two GPS same place/time
Second GPX
Data Collection Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 15: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/15.jpg)
15/48
Data Collection Process
How to get accurate GPS positions?
Geometric Dilution of Precision (GDOP) :● Horizontal DOP (HDOP)● Vertical DOP (VDOP)● Positional DOP (PDOP)● Time DOP (TDOP)
Good GDOP
Bad GDOP
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 16: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/16.jpg)
16/48
II - Using GPX in GIS
![Page 17: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/17.jpg)
17/48
Conversion Process
Example with QGIS → Add Vector Layer
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 18: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/18.jpg)
18/48
Example with QGIS → Save as ...
Conversion Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 19: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/19.jpg)
19/48
Conversion Process
From GIS to internet
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 20: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/20.jpg)
20/48
From GIS to internet
Conversion Process
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 21: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/21.jpg)
21/48
Data Storage
A focus on Postgis @ http://postgis.net/
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 22: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/22.jpg)
22/48
Data Storage
What is PostGIS ?
Postgis is a spatial extension for Postgresql:● Provides Spatial Data Type ● Provides Spatial Indexing ● Provides Spatial Functions
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 23: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/23.jpg)
23/48
PostGIS DataTypes
Point Line LinearRing Multypolygon
+ MultiLine, MultiPolygon, GeometryCollection...
Data Storage
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 24: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/24.jpg)
24/48
PostGIS Spatial Indexing
R-treeQuadtreeGrid-based
Data Storage
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 25: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/25.jpg)
25/48
PostGIS Spatial Functions
ConstructionSerialisationPredicatesAnalysisAccessorsBuildersAggregates
Example:ST_Simplify(geom, tolerance)
1
Data Storage
2
3
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 26: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/26.jpg)
26/48
Data Storage
Using GIS and PostGIS
1 2Import your data into PostGIS Load your data into QGIS
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 27: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/27.jpg)
27/48
Using GIS and PostGIS
Data Storage
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 28: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/28.jpg)
28/48
III – Processing GPX in VGI
![Page 29: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/29.jpg)
29/48
Processing GPX Data Using GPX in GIS Using GPX in VGI
Geographic data● For driving, riding, walking, boating, skiing, hiking, anything ● Free (ODBL License)● Wiki-like editing
+
=
OpenStreetMap
What is OpenStreetMap?
![Page 30: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/30.jpg)
30/48
Volunteered Geographic Information
Processing GPX Data Using GPX in GIS Using GPX in VGI
What not just use commercial map providers?
![Page 31: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/31.jpg)
31/48
More coverage, update, attributes
OpenStreetMap
![Page 32: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/32.jpg)
32/48
OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 33: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/33.jpg)
33/48
OpenStreetMapOpenStreetMap
![Page 34: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/34.jpg)
34/48
OpenStreetMap
Source : http://www.geofabrik.de
Paris : Aout 2006Paris : Aout 2006
Paris : Décembre 2010Paris : Décembre 2010
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 35: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/35.jpg)
35/48
Source :http://www.flickr.com/photos/itoworld/
Processing GPX Data Using GPX in GIS Using GPX in VGI
OpenStreetMap
Humanitarian OSM
![Page 36: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/36.jpg)
36/48
Contributing to OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 37: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/37.jpg)
37/48
Nodes lines Polygon
Relations
Geometric Objects Conceptual Objects
Relations
OpenStreetMap Objects
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 38: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/38.jpg)
38/48
higway = Tert iary
higway = trunk
higway = Residential
higway = trunktunnel = yes
leisure = garden
building = yestourism = museum
higway = secondary
OpenStreetMap Objects
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 39: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/39.jpg)
39/48
Contributing to OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
Field Papers@ http://fieldpapers.org
![Page 40: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/40.jpg)
40/48
Contributing to OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 41: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/41.jpg)
41/48
Adding data to OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 42: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/42.jpg)
42/48
Adding data to OpenStreetMap
Missing roads ?
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 43: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/43.jpg)
43/48
Creation of the missing object
Adding data to OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 44: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/44.jpg)
44/48
Adding data to OpenStreetMap
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 45: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/45.jpg)
45/48
Results
Before
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 46: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/46.jpg)
46/48
After
Results
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 47: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/47.jpg)
47/48
Processing GPX Data Using GPX in GIS Using GPX in VGI
![Page 48: From Geographic Information to GIS - Part II: Processing Data](https://reader033.fdocuments.us/reader033/viewer/2022061223/54c68cea4a79591d558b4592/html5/thumbnails/48.jpg)
48/48
Questions ?
Arnaud Vandecasteele@geotribu