The State of PostGIS Paul Ramsey Paul Ramsey

Slides:



Advertisements
Similar presentations
ArcGIS Geodatabase Miles Logsdon Spatial Information Technologies, UW Garry Trudeau - Doonesbury.
Advertisements

ISD3 Lecture 4 - Databases, SQL and MySQL. dept deptno dname location emp empno ename not null job not null hiredate sal comm manager The EMP DEPT database.
Databases, Spatial Databases, and PostGIS
Informatiesystemen in de Bouw 7M711 Joran Jessurun en Jos van Leeuwen Week 3.
Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.
TECNOLOGIAS DE ARMAZENAMENTO DE INFORMAÇÃO ESPACIAL.
Netherlands GML Relay TDN Emmen Friday 13th December 2002 Paul Hardy
The Database Market Presented to the class of BA 471 May, 2006 Dr. Rene Reitsma Amy Miller ● Elaina Reinhard ● Shannon Wegner.
Open Source Databases and GIS
Intro. To GIS Lecture 4 Data: data storage, creation & editing
MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro.
OpenGeo 1.
JTS Topology Suite JTS Topology Suite An API for Processing Linear Geometry Martin Davis, Senior Technical Architect
Parcel Data Models for the Geodatabase
“Codd’s Rules for Spatial ORDBMS”
Spatial Databases ENVE/CE 424/524. Definitions Database – an integrated set of data on a particular subject Spatial database - database containing geographic.
Case study DATABASE MANAGEMENT SYSTEMS Oracle Database 11g Release 2 (11.2) – MySQL 5.5 –
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
Creating High Performance Spatial Databases with SQL Server 2008 Alastair Aitchison.
The OpenGIS Consortium Geog 516 Presentation #2 Rueben Schulz March 2004.
OpenACS: Porting Oracle Applications to PostgreSQL Ben Adida
Attributes in ArcGIS. ArcGIS Attributes FID – ESRI’s internal identifier Shape – Actual spatial data.
NoSQL Databases Oracle - Berkeley DB Rasanjalee DM Smriti J CSC 8711 Instructor: Dr. Raj Sunderraman.
NoSQL Databases Oracle - Berkeley DB. Content A brief intro to NoSQL About Berkeley Db About our application.
OpenSource GIS 2004 Ottawa, Canada A Survey of Open Source GIS “The View from 30,000 Feet” or “A Mile Wide and an Inch Deep” Paul Ramsey.
SQL access and working with ST_Geometry Functions
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2015, Fred McClurg, All Rights.
PostGIS Tips for Power Users
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
Understanding our world.. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Editing Versioned Geodatabases.
Introduction to GeoDatabase Lecture
Microsoft SQL Server 2000 Cheng Ji November 3, 2003.
Esri UC 2014 | Technical Workshop | Editing Versioned Geodatabases : An Introduction Cheryl Cleghorn and Shawn Thorne.
Spatial Database Tips & Tricks Paul Ramsey
Nhóm thực hiện: nhóm 1 Nguyễn Ngọc Trường Trần Minh Khang Bùi Quốc Huy Nguyễn Ngọc Linh Nguyễn Thành Phương Trần.
Visual Programing SQL Overview Section 1.
Introduction to GIS GIS/CAD5.
Index pgRouting on PostgreSQL Introduction Installation Template Creation and Use Topological Structure Core Features Public Transit Implementation (Application.
Guofeng Cao CyberInfrastructure and Geospatial Information Laboratory Department of Geography National Center for Supercomputing Applications (NCSA) University.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
MySQL Overview Jed Reynolds Write Your Questions on the Board! Landscape, Engines, HA, Performance Questions.
Data Management Conference Performance & Scalability Simon Sabin London September 29th.
MIS 451 Building Business Intelligence Systems Data Staging.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
W W W. R E F R A C T I O N S. N E T PostGIS Case Studies What is it, who is using it, and why?
Introduction to MySQL  Working with MySQL and MySQL Workbench.
Geodatabase Kyung Hee University Geography Jinmu Choi 1.
Get Familiar with Spatial Data. Slava Murygin – SQL SlavaSQL.BlogSpot.com.
® Sponsored by Improving Access to Point Cloud Data 98th OGC Technical Committee Washington DC, USA 8 March 2016 Keith Ryden Esri Software Development.
Introduction to Geodatabases
DBM 380 Week 2 Individual Assignment Database Design Paper Write a 350- to 700-word paper in which you do the following: Explain what database systems.
Rayat Shikshan Sanstha’s Chhatrapati Shivaji College Satara
Key Terms Attribute join Target table Join table Spatial join.
Get Familiar with Spatial Data
Fun with SQL Server Spatial Data
CS320 Web and Internet Programming SQL and MySQL
9. Creating and Maintaining Geographic Databases
Understanding & Using Spatial Data Features in SQL Server
Spatial Database Systems
Spatial Data Types And Indexing SQL Server 2008
Using QGIS, GRASS and PostGIS to answer some difficult questions
Fun with SQL Server Spatial Data
A Survey of Open Source GIS
אבטחת נתונים בסביבת SQL Data Security
CS3220 Web and Internet Programming SQL and MySQL
CS3220 Web and Internet Programming SQL and MySQL
The Geodatabase : An Introduction
Presentation transcript:

The State of PostGIS Paul Ramsey Paul Ramsey

{

Spatial Database?

‣ Types ‣ string, float, date ‣ Indexes ‣ b-tree, hash ‣ Functions ‣ strlen(string), pow(float, float), now() Databas e

‣ Spatial Types ‣ geometry, geography ‣ Spatial Indexes ‣ r-tree, quad-tree, kd-tree ‣ Spatial Functions ‣ ST_Length(geometry), ST_X(geometry) Databas e

Open Geospatial Consortium (OGC) Simple Features for SQL (SFSQL)

‣ Open Source (BSD) ‣ “Enterprise” Database ‣ ACID, hot backup, replication, partitioning ‣ triggers, constraints, foreign keys, user functions ‣ PL/PGSQL, PL/Perl, PL/TCL, PL/Java, PL/R ‣ Corporate support ‣ Enterprise DB ‣ Red Hat ‣ Open Source (BSD) ‣ “Enterprise” Database ‣ ACID, hot backup, replication, partitioning ‣ triggers, constraints, foreign keys, user functions ‣ PL/PGSQL, PL/Perl, PL/TCL, PL/Java, PL/R ‣ Corporate support ‣ Enterprise DB ‣ Red Hat

What does PostGIS do?

“What parcels are within 1km of this fire?”

SELECT owner_phone FROM parcels WHERE ST_DWithin( geom, ‘POINT()’, 1000 );

“How far did the bus travel last week?”

SELECT Sum(ST_Length(geom)) FROM vehicle_paths WHERE (v_id = 12) AND (v_date > Now() - ‘7d’);

History!

“Managing changing data in shape files is a pain in the _____!”

History!!!

More History!!!

“Why are these companies supporting PostGIS?”

BDuni

Can DB handle 100M spatial features? Can DB do spatial transactions? PostGIS? DB2? Oracle? Yes! Yes! Yes! DB Evaluation

Transactional Maintenance Check in edits Check out working areas

GSM

GSM GSM GSM GSM GSM

OSSIM

“Enterprise”1 Dual-Core2 Quad-Core Oracle$40,000$160,000 IBM DB2$36,400$145,600 MS SQL Server$25,000$50,000 IBM Informix$50,000$200,000 PostGIS$0 Scalability

Functionality Price VALUE

What’s New?

PostGIS 1.4 January 2009 Prepared geometry Cascaded union Curves GeoJSON

Prepared geometry

Point in Polygon

Point in Polygon = O(n)

Line in Polygon = O(nm)

Build spatial index on edges! Point-in-polygon == O(log(n)) Line-in-polygon == O(mlog(n)) But, Building an index takes O(n) So, Cache index and re-use it!

Prepared geometry makes repeated tests on large geometries very fast.

SELECT... FROM points, polygons WHERE ST_Contains( polygons.geom, points.geom )

Cascaded union

CURVESTRING COMPOUNDCURVE CURVEPOLYGON Curves

ST_AsGeoJSON() {"type":"LineString", "coordinates": [[0,0],[1,1]]}

PostGIS 1.5 February 2010 Geography type GUI shape file loader Faster distance calculation KML/GML format readers

ST_AsGeoJSON() ST_AsKML() ST_GeomFromGML() ST_GeomFromKML() ST_AsGML()

GeoNewbies Who is geography for? “I want to find all the address points within one mile. My data is in lat/lon. Google Maps rocks.”

GeoHugies “Yeah, I own a freaking satellite, you got a problem with that?” Who is geography for?

Indexes spherical data ST_Intersects() ST_Distance() ST_DWithin() ST_Area() Casts to/from GEOMETRY Geography functions?

shp2pgsql -D -s 4326 \ -i \ countries.shp \ countries \ | psql -U pramsey \ -d geodatase shp2pgsql

PostGIS 2.0 December 2010 “typmod” support Raster support (see other talks!) 3D objects (polyhedra, TIN) New index support 3D, 4D, Nearest-neighbor (PgSQL 9.1) Breaking changes!! (yay!)

geometry_columns typmod?

CREATE TABLE my_spatial_table ( id INTEGER, name VARCHAR ); typmod?

SELECT AddGeometryColumn( 'my_schema', 'my_spatial_table', 'the_geom', 26910, 'POINT', 2); typmod?

CREATE TABLE my_spatial_table ( id INTEGER, name VARCHAR, geo GEOMETRY(Point,26910) ); typmod?

Thanks! Paul Ramsey Paul Ramsey