Top Banner
From Geographic Information to GIS Getting the Map into the computer Part II: Processing Data Arnaud Vandecasteele Memorial Univ. of Newfoundland, Canada 3/02/2013
48

From Geographic Information to GIS - Part II: Processing Data

Jan 27, 2015

Download

Technology

arno974

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: From Geographic Information to GIS - Part II: Processing Data

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

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

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

4/48

I – Processing GPX data

Page 5: From Geographic Information to GIS - Part II: Processing Data

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

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

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

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

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

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

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

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

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

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

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

16/48

II - Using GPX in GIS

Page 17: From Geographic Information to GIS - Part II: Processing Data

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

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

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

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

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

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

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

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

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

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

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

28/48

III – Processing GPX in VGI

Page 29: From Geographic Information to GIS - Part II: Processing Data

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

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

31/48

More coverage, update, attributes

OpenStreetMap

Page 32: From Geographic Information to GIS - Part II: Processing Data

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

33/48

OpenStreetMapOpenStreetMap

Page 34: From Geographic Information to GIS - Part II: Processing Data

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

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

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

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

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

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

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

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

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

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

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

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

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

47/48

Processing GPX Data Using GPX in GIS Using GPX in VGI

Page 48: From Geographic Information to GIS - Part II: Processing Data

48/48

Questions ?

Arnaud Vandecasteele@geotribu