29
Friendly Survey - Introduction Friendly Survey - Introduction 1 PostGIS for Enterprise Jody Garnet Thanks to: Simon Greener Paul Ramsey Mark Leslie

Postgis for Enterprise

Embed Size (px)

DESCRIPTION

PostGIS para Empresas - Apresentação feita por Jody Garnett (OSGEO) no Geolivre 2009 Conference

Citation preview

Page 1: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 11

PostGIS for Enterprise

Jody Garnet

Thanks to:Simon Greener

Paul RamseyMark Leslie

Page 2: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 22

What is a Spatial DatabaseSpatial Data TypesSpatial IndexingSpatial Functions

Page 3: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 33

What is a Spatial Database?Spatial Data Types

Pointa single coordinate of two to four dimensions

Page 4: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 44

Line StringSpatial Data Types

Linestringa set of two or more coordinateslinear interpretation of path between coordinates

Page 5: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 55

Linear RingSpatial Data Types

Linearringa linestring with three or more coordinatesthe start and end points are the same

Page 6: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 66

PolygonSpatial Data Types

Polygona set of one or more linearringsone ring defines the exterior boundaryremainder defines the holes in the polygon

Page 7: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 77

Multi GeometriesSpatial Data Types

Multi-geometries (Multipoint, Multilinestring, Multipolygon)a set of like geometries

Page 8: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 88

Spatial IndexingSpatial Data TypesSpatial Indexing

R-treeQuadtreeGrid-based

Page 9: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 99

Spatial FunctionsSpatial Data TypesSpatial IndexingSpatial Functions

ConstructionSerialisationPredicatesAnalysisAccessorsBuildersAggregates

Page 10: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1010

Total Length

Page 11: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1111

ST_Intersection

Page 12: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1212

ST_Intersection

Page 13: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1313

ST_Buffer

Page 14: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1414

ST_Buffer

Page 15: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1515

ST_SIMPLIFY“Denormalisation” of feature types into multiple tables based on

known or expected access patternsRoads are visualised with different style classes and

rendered at different scales

Page 16: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1616

Spatial Extensions for PostgreSQLSpatial Extensions for PostgreSQL

Provides Spatial Data TypeProvides Spatial IndexingProvides Spatial Functions

Page 17: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 1717

PostgreSQL for SpatialSpatial Extensions for PostgreSQLPostgreSQL Extensions for Spatial

ACID transaction guaranteesEnterprise reliabilityCrash recoveryHot backupReplicationSQL support

Page 18: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 1818

PostGIS History• Developed in 2001 by Refractions Research– to assist Refractions in their data processing tasks

Page 19: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 1919

Growth• Initially just an indexed load-store extension to allow

concurrent access to data• Functions added based on Simple Features for SQL

(using GEOS which is a port of JTS)• PostGIS 1.0 provided fast / lighter Geometry object

Page 20: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2020

PostGIS Roadmap• Geography objects (spherical geometries)• Raster-in-db• curved geometry support• News update - PostGIS is now in OSGeo

Page 21: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2121

PostGIS ClientsYear Support2001 MapServer, OGR2002 GeoServer, QGIS2003 Safe FME200420052006200720082009 MapInfo, GeoConcept

Ionic Red Spider, OSSIMCadCorp SIS, GRASS, uDig, OpenJUMPESRI Interoperability Extension, gvSIGESRI ArcGIS Server, Manifold, GeoDjangoFDO, MapGuide, AutoCAD MAP3D

Page 22: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 2222

Institut Geographique National, FranceNational mapping agency of FranceStores high-res topographic data

Page 23: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 2323

GlobeXplorer• Provides web-based access to petabytes of imagery• PostGIS is used to manage metadata and search for relevant

imagery

Page 24: Postgis for Enterprise

20/10/200920/10/2009 Introduction to PostGISIntroduction to PostGIS 2424

LISAsoft

ServicesServicesPostGISGeoServer

PublicationPublicationTileCache

Data ServiceData ServiceSnapMapsStore LocatorReverse Geocoder

Mobile ApplicationsMobile ApplicationsBuddy Finder Mokbee

• (my employer!)

Page 25: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2525

Team CIMAR : DARPA Grand Challenge

Page 26: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2626

Standards• Level playing field– Open Geospatial Consortium– International Standards Organization– W3C Consortium (XML/SVG)

• Simple Features for SQL / SQL Multi-Media Extensions

Page 27: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2727

Simple Features for SQL

Page 28: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2828

Implementations• Can DB handle 100M spatial features?• Spatial transactions• PostGIS? Yes• DB2? Yes• Oracle? Yes• SQL Server? In progress• MySQL? no!

Page 29: Postgis for Enterprise

Friendly Survey - Introduction Friendly Survey - Introduction 2929

Enterprise