integrating mashups and open source webgis2007.foss4g.org/attachments/150/geopole_foss4g.pdf ·...

22
FOSS4G Victoria 25.9.07 geopole.org Integrating Mashups and Open Source Web-GIS Pirmin Kalberer Sourcepole AG, Bad Ragaz, Switzerland www.sourcepole.ch

Upload: others

Post on 30-Apr-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org

Integrating Mashups and Open Source Web­GIS

Pirmin KalbererSourcepole AG, Bad Ragaz, Switzerlandwww.sourcepole.ch

Page 2: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Sourcepole

Linux based software development

GIS-Knoppix: first GIS live CD

UMN MapserverInitial Ruby bindingsSDE raster support

OGR / GDALInterlis driverSchema support for PostGIS driver

Page 3: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Agenda

Mashups versus GIS

Combined architecture

geopole.org tour

Used OSS components

Scalability & performance

Page 4: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Mashups versus GIS

Map MashupsApplication data displayed in a map (e.g. Google Maps)Javascript API's -> client sideapplication-centric

Classic Web-GISApplication- and base map data in one databaseServer-side map creationmap-centric

Page 5: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Mashup Architecture

Web

 ser

ver

Clie

nts

BrowserJavascript viewer

Custom application

Javascript-API

goog

le/y

ahoo

/etc

.

Page 6: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Typical Web-GIS Architecture

Serv

er

geodata

(DB, Shape, TIFF)

Apache/PHPviewer & custom

application

Clien

ts

Browser

Page 7: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

MashupsSlow processing for high number of featuresAPI dependency

Drawbacks

Typical Web GISOwn map data neededGIS knowledgeIntegration of custom application in map viewer

Page 8: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

„Web 2.0 GIS-Architecture“

Web

 ser

ver

Raster files(TIFF)

Clie

nts

BrowserJavacript viewer

Mapserver(WMS)

Application server 

PostgreSQL/PostGIS

Javascript-API

goog

le

yaho

o

etc.

Geo module(WFS/ GeoJSON)

Page 9: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Issues to address

Client-side combination of OGC services and Javascript API's

Mercator projection of Google Maps

Support for multiple base map sources

Support for local geodata

Integration of map viewer into custom application

Page 10: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org tour 1/5

Place search

Multiple layer overlays

GeoRSS overlay

Page 11: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org tour 2/5

Choice of base map

>1000 features

KML- & WMS publication

Page 12: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org tour 3/5

Mouse-over feature info

Multiple features at one position

Page 13: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org tour 4/5

OpenID login

Drag&Drop import from spreadsheet

Custom columns

Page 14: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org tour 5/5

Feature info with HTML elements

Custom table editor

Edit/Create/Delete rows

Page 15: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Commercial add-ons

File upload

GIS data import (Shapefiles, etc.)

Dedicated PostgreSQL schema

PostGIS-Administration

Non-public maps

Customized embedding

Page 16: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Architecture

WMS server

Proxy server

Internet

App. server WMS serverApp. server

DB server DB server

FastCGIhttp

http

Page 17: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Used OSS components

Operating system: Linux with VServer

Database: PostgreSQL with PostGIS

Application framework: Ruby on Rails

Map viewer: OpenLayers

WMS server: UMN Mapserver

HTTP server/proxy: Mongrel/nginx

Page 18: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Ruby on Rails

Framework for database-backed web application

Model-View-Control pattern

Ruby language

Built-in Ajax support

GIS libraries:GeoRuby: PostGIS accessGraticule, GeoKit: geocodingRuby bindings for GDAL, Mapserver, etc.

Page 19: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Scalablity/Performance

Load-balancingApplication webserverUMN Mapserver (Fast-CGI)Tile server

Cachingmap tilesREST protocols

Page 20: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Roundup

Web 2.0 GIS platform proposals:Combination of OGC protocols and Javscript APIsState-of-the-art application frameworksUse of basic internet protocols gives interoperability and scalabilityAvoiding service vendor lock-inIntuitive map interaction

Page 21: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

Links

http://www.geopole.org/

http://www.rubyonrails.org/

http://www.openlayers.org/

http://postgis.refractions.net/

http://mapserver.gis.umn.edu/

http://nginx.net/

Page 22: Integrating Mashups and Open Source WebGIS2007.foss4g.org/attachments/150/geopole_foss4g.pdf · Integrating Mashups and Open Source WebGIS Pirmin Kalberer Sourcepole AG, Bad Ragaz,

FOSS4G Victoria 25.9.07

geopole.org

Questions?Live demo

Thanks!

Pirmin Kalberer<pka at sourcepole.ch>