osgeo mashup : a practical look at 5 open source gis applications grass/qgis, gdal/ogr, postgis,...

26
OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot – GIS Programmer, Ecotrust [email protected] July 27th, 2006 A Citizen of Salmon Nation

Upload: carlos-thornton

Post on 26-Mar-2015

222 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGeo Mashup :A practical look at 5 Open Source GIS applications

GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT

Presented at OSCON 2006 by Aaron Racicot – GIS Programmer, Ecotrust

[email protected] 27th, 2006

A Citizen of Salmon Nation

Page 2: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

GIS – Geographic Information Systems

GIS

Maps – Print / Electronic

Cartography

Spatial Data Creation/Collection

Spatial Processing

Spatial Modeling

Spatial Analysis

Reasoning with a Sense of Place

Page 3: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Ecotrust - Salmon Nation

Page 4: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGeo – Open Source Geospatial Foundation

Board of Directors

Website Committee

Fundraising Committee

Incubation Committee

Promotion and Visibility Committee

Public Geospatial Data Committee

Education and Curriculum Committee

System Administration Committee

Voting Members

General Members

Page 5: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGeo – Open Source Geospatial Foundation

OSGeo Mission StatementTo support the development of open source geospatial software, and promote its

widespread use.

OSGeo Goals•To provide resources for foundation projects - eg. infrastructure, funding, legal. •To promote freely available geodata - free software is useless without data. •To promote the use of open source software in the geospatial industry (not just foundation software) - eg. PR, training, outreach. •To encourage the implementation of open standards and standards-based interoperability in foundation projects. •To ensure a high degree of quality in foundation projects in order to build and preserve the foundation "brand". •To make foundation and related software more accessible to end users - eg. binary "stack" builds, cross package documentation. •To provide support for the use of OSGeo software in education via curriculum development, outreach, and support. •To encourage communication and cooperation between OSGeo communities on different language (eg. Java/C/Python) and operating system (eg. Win32, Unix, MacOS) platforms. •To support use and contribution to foundation projects from the worldwide community through internationalization of software and community outreach. •To operate an annual OSGeo Conference, possibly in cooperation with related efforts (eg. EOGEO). •To award the Sol Katz award for service to the OSGeo community.

Page 6: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGeo – Open Source Geospatial Foundation

Mapbuilder GDAL/OGR

GeoToolsGRASS

MapServer OSSIM

MapGuide Open Source

Incu

bato

r Pro

jects

Released From Incubation

Mapbender

Page 7: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGIS Software Stacks… Desktop

Generic Stack FOSS4G Stack Grouping

Application QGis, Grass, OSSIM, JUMP, UDig

User Interface

Application Dev. Environment

Eclipse, QT, OpenGL, Tkl/Tk

High Level Utilities GeoTools, Postgresql, PostGIS

Data Serving

High Level Scripting Languages

PHP, PERL, Python

Low Level Utilities Shplib, GEOS, OGR/GDAL, R-Statistics, GMT

Data Processing

Low Level Languages

C, C++, Java, Fortran System Software

Operating System

Linux, Darwin, Cygwin

Hardware Drivers

32-64 bit processor drivers

Desktop Software Stack

Page 8: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGIS – Desktop Applications

GRASS GIS

Page 9: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGIS Software Stacks... ServerWeb-based Software

StackGeneric Stack FOSS4G Stack Grouping

Client Side Browser Firefox, Safari, Netscape User Interface

Client Side Scripting

Java Script, Java Applets

~~~~~~~~~~~WEB~~~~~~~~~~~

Server Side Application

Chameleon, Cartoweb3, MapGuide, Mapbender,

Mapbuilder, Custom

Data Serving

High Level Utilities Mapserver, MapGuide,

High Level Scripting Languages

PHP, PERL, Python Data Processing

Low Level Utilities Shplib, GEOS, OGR/GDAL, PostGIS, R-

Statistics, GMT

Low Level Languages

C, C++, Java, Fortran System Software

Operating System/Drivers

Linux, Darwin, Cygwin

Hardware Drivers 32-64 bit processor drivers

Page 10: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

OSGIS - Server Tools

GRASS GIS

GDAL/OGR

R-Statistics

Page 11: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Desktop Raster/Vector Processing

GRASS/GDAL/OGR - Data Crunching Both Raster and Vector support Very powerful tool set (similar to ArcINFO/ArcGRID) Traditionally Poor GUI, but getting better Very fast Cross platform

QGIS/GDAL/OGR – Data Viewing/Editing Both Raster and Vector support Nice GUI Cross platform QGIS can integrate with GRASS

Page 12: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

GRASS-Raster

Grass Raster Processing

GDAL

Page 13: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

GRASS-Vector

OGR

Grass Vector Processing

Page 14: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

QGIS

QGis 0.7.4

QGis 0.8.0pre1

Page 15: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Mapserver Web-Based Interface

AJAX-User Based Data Filter

GMT generate

d graphics

Spatially constrain

ed queries

and scenarios

Chameleon

Mapserver

framework

PostGIS Spatial Data

Page 16: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Now what….

How is this useful to you???????

Page 17: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Personal Use….

Thanks to Dylan Beaudette : http://casoilresource.lawr.ucdavis.edu/drupal/node/244

Navigating Wilderness Areas with GRASS Cla

ssifi

catio

n

Cost S

urfa

ce

Page 18: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Creating Data….Digitizing, Modifying, extracting…

Context Layer Viewing

Create new shapes

Create new attributes

Page 19: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Transforming Data….How to get coordinates in UTM to Geo-NAD83?

Page 20: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Web enable standard geo-data….

Page 21: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Web enable non-standard geo-data….

How to display and interact with model data?

GIS Model Results

Web Based Real-Time GIS

Model

Page 22: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Spatially enable your database….How to select data within a polygon area?

Intersects Geometry Definition

Distance(geometry, geometry)Equals(geometry, geometry)Disjoint(geometry, geometry)Intersects(geometry, geometry)Touches(geometry, geometry)Crosses(geometry, geometry)Within(geometry A, geometry B)Overlaps(geometry, geometry)Contains(geometry A, geometry B)Intersects(geometry, geometry)Relate(geometry, geometry, intersectionPatternMatrix)Relate(geometry, geometry)

Centroid(geometry)Area(geometry)Length(geometry)PointOnSurface(geometry)Boundary(geometry)Buffer(geometry, double, [integer])ConvexHull(geometry)Intersection(geometry, geometry)SymDifference(geometry A, geometry B)Difference(geometry A, geometry B)GeomUnion(geometry, geometry)GeomUnion(geometry set)MemGeomUnion(geometry set)

Page 23: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Display unique data….How can I plot geospatial and model data?

#!/bin/csh## GMT Example 24 $Id: job24.csh,v 1.5 2006/05/08 01:35:12 ## Purpose: Extract subsets of data based on geospatial criteria# GMT progs: gmtselect, pscoast, psxy, minmax# Unix progs: echo, cat, awk## Highlight oceanic earthquakes within 3000 km of Hobart and > 1000 kmecho "147:13 -42:48 3000 Hobart" >! point.dcat << EOF >! dateline.d> Our proxy for the dateline180 0180 -90EOFset R = `minmax -I10 oz_quakes.d`pscoast $R -JM9i -K -Gtan -Sdarkblue -Wthin,white -Dl -A500 -Ba20f10g10WeSn \

-U"Example 24 in Cookbook" >! example_24.pspsxy -R -J -O -K oz_quakes.d -Sc0.05i -Gred >> example_24.psgmtselect oz_quakes.d -L1000/dateline.d -Nk/s -C3000/point.d -fg -R -Il \

| psxy -R -JM -O -K -Sc0.05i -Ggreen >> example_24.psawk '{print $1, $2, 0, $3, $3}' point.d | psxy -R -J -O -K -SE -Wfat,white >> example_24.psawk '{print $1, $2, 14, 0, 1, "LT", $4}' point.d \

| pstext -R -J -O -K -Gwhite -D0.1i/-0.1i >> example_24.pspsxy -R -J -O -K point.d -Wfat,white -Sx0.2i >> example_24.pspsxy -R -J -O -M dateline.d -Wfat,white -A >> example_24.ps\rm -f point.d dateline.d .gmt* The Generic Mapping Tools

http://gmt.soest.hawaii.edu/

Page 24: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Where is Ecotrust going…DST’s

Web User Request

Web User Response

StaticData Storage

WebService

sData Gathering

Data Formatting

Data Processing

Map Formatting

Map Production

The Problem Is The Arrows! Connecting a web request to server side GIS analysis is tricky

Real-Time Web Decision Support Tools

Page 25: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

DST using GRASS/MapserverSiuslaw Watershed Restoration Initiative

Data Gathering

Data Formatting

Data Processing

PHP Mapscript

GRASS

Page 26: OSGeo Mashup : A practical look at 5 Open Source GIS applications GRASS/QGIS, GDAL/OGR, POSTGIS, MAPSERVER, GMT Presented at OSCON 2006 by Aaron Racicot

Where to go for more infoEcotrust

http://www.ecotrust.orgOSGeo

http://www.osgeo.orgOSGIS

Maptools - http://www.maptools.org FreeGIS - http://freegis.org/ Open Source GIS - http://opensourcegis.org/

Standards OGC - http://www.opengeospatial.org/

Desktop GRASS - http://grass.itc.it/ QGIS - http://qgis.org/ UDIG - http://udig.refractions.net/confluence/display/UDIG/Home JUMP – http://jump-project.org/ OSSIM - http://www.ossim.org/Welcome.html OpenEV - http://openev.sourceforge.net/

Server/Web Mapserver - http://mapserver.gis.umn.edu/ MapBender - http://www.mapbender.org MapBuilder - http://docs.codehaus.org/display/MAP/Home MapGuide OS - https://mapguide.osgeo.org/

Tools PostGIS - http://postgis.refractions.net/ Remote Sensing - http://remotesensing.org/tiki-index.php GDAL/OGR - http://gdal.maptools.org/index.html PROJ.4 - http://proj.maptools.org/ R-Statistics - http://www.r-project.org/ GMT - http://gmt.soest.hawaii.edu/