Top Banner
Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge, 27th April 2006 Oliver Duke-Williams [email protected] www.geog.leeds.ac.uk/people/o.duke-williams / ESRC Award number H507 255177
22

Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Dec 29, 2015

Download

Documents

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: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Using PostGIS and MapServer in the Census Interaction Data Service

Presentation to

AGI Technical SIG'Open-Source in GIS'

British Antarctic Survey, Cambridge, 27th April 2006

Oliver [email protected]

www.geog.leeds.ac.uk/people/o.duke-williams/

ESRC Award number H507 255177

Page 2: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Contents

• What is CIDS

• What is PostGIS?

• What is MapServer?

• Why did we select these tools?

• How do we use them?

Page 3: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Census Interaction Data Service (CIDS)

• A Data Support Unit funded through the ESRC/JISC Census Programme 2001-2006

• Provide access to Census interaction data sets

• Data is provided via WICID, the Web-based Interface to Census Interaction Data

Page 4: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Census Interaction Data• What are the Census interaction data?

– Migration data– Journey to work data– Journey to school data

• Interaction data are flow data– Also referred to as ‘origin-destination’ data

• They have historically been under-used

Page 5: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

CIDS challenges

• Data are large and sparse• Need to support many geographies• Need to provide simple interface to complex

data sets

0.0000000001%

0.0000000010%

0.0000000100%

0.0000001000%

0.0000010000%

0.0000100000%

0.0001000000%

0.0010000000%

0.0100000000%

0.1000000000%

1.0000000000%

10.0000000000%

100.0000000000%

0 10 20 30 40 50

Cell values

Pro

po

rtio

n o

f all

ecll

s

Proportion of interior cells in 2001 SMS Table MG301 of various values (detail)

Source: Dale, A. and Marsh, C. (eds) (1993) The 1991 Census User's Guide

Relationships between geographies used for 1991 Census outputs

Page 6: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

WICID• Facilitate data extraction and downloading

• User-friendly

• Flexible query-building approaches

• Analysis functions

• Outputs in various formats

Page 7: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

WICID components

• Apache web server• PostgreSQL DBMS

– PostGIS spatial extensions

• PHP• MapServer

– PHP/MapScript

Page 8: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

What is PostGIS?

• An extension to the PostgreSQL database• Allows vector based geometric objects to

be stored and manipulated• Open GIS Consortium (OGC) standards

– Well Known Text (WKT)– Well Known Binary (WKB)– OGC Simple Features for SQL– OGC feature catalogues

Page 9: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

What is MapServer?

• Open source package distributed by University of Minnesota

• One of a number of tools that can use PostGIS data

• Can also a variety of other formats

Page 10: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Why did we select PostGIS and Mapserver?

• Open source

• Already using PostgreSQL– Benefit of map and other data being stored in

the same database

• Mapserver includes PHP scripting abilities

• Can implement map based tools with very low client requirements

Page 11: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

How do we use these tools?

• Maps created by MapServer

• Data queried directly by SQL

Page 12: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,
Page 13: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,
Page 14: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,
Page 15: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Selection tools

Page 16: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Selection tools

Page 17: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Selection tools

Page 18: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Distance usage

Page 19: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

The future

• CIDS to CIDER

• Future uses of PostGIS and MapServer

Page 20: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

CIDER

• Centre for Interaction Data Estimation and Research– August 2006 to July 2011– ESRC 2006 Census Programme

• Objectives– Continuity– Improvement– Expansion– Preparation

Page 21: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Use of PostGIS and MapServer

• Use of OS backdrops in maps

• Thematic maps for displaying results

• Downloads of spatial data

• Distance based generation of new geographies

Page 22: Using PostGIS and MapServer in the Census Interaction Data Service Presentation to AGI Technical SIG 'Open-Source in GIS' British Antarctic Survey, Cambridge,

Using PostGIS and MapServer in the Census Interaction Data Service

Oliver [email protected]

www.geog.leeds.ac.uk/people/o.duke-williams/