SlideShare a Scribd company logo
Building a Spatial Database in PostgreSQL David Blasby Refractions Research [email_address] http://postgis.refractions.net
Introduction PostGIS  is a spatial extension for PostgreSQL PostGIS  aims to be an “OpenGIS Simple Features for SQL” compliant spatial database I am the principal developer
Topics of Discussion Spatial data and spatial databases Adding spatial extensions to PostgreSQL OpenGIS and standards
Why PostGIS? There aren’t any good open source  spatial  databases available commercial ones are very expensive Aren’t any open source spatial functions extremely difficult to properly code building block for any spatial project Enable information to be organized, visualized, and analyzed like never before
What is a Spatial Database? Database that: Stores spatial objects Manipulates spatial objects just like other objects in the database
What is Spatial data? Data which describes either location or shape e.g.House or Fire Hydrant location Roads, Rivers, Pipelines, Power lines Forests, Parks, Municipalities, Lakes
What is Spatial data? In the abstract, reductionist view of the computer, these entities are represented as Points, Lines, and Polygons.
Roads are represented as Lines  Mail Boxes are represented as Points
Topic Three Land Use Classifications are represented as Polygons
Topic Three Combination of all the previous data
Spatial Relationships Not just interested in location, also interested in “Relationships” between objects that are very hard to model outside the spatial domain. The most common relationships are  Proximity : distance Adjacency : “touching” and “connectivity” Containment : inside/overlapping
Spatial Relationships Distance between a toxic waste dump and a piece of property you were considering buying.
Spatial Relationships Distance to various pubs
Spatial Relationships Adjacency: All the lots which share an edge
Connectivity: Tributary relationships in river networks
Spatial Relationships Containment: Rivers inside watersheds and  land (islands) inside lakes
Spatial Relationships Stream side logging - adjacency and containment.
Most Organizations have Spatial Data Geocodable addresses Customer location Store locations Transportation tracking Statistical/Demographic Cartography Epidemiology Crime patterns Weather Information  Land holdings Natural resources City Planning Environmental planning Information Visualization  Hazard detection
Why put spatial data in a RDBMS?  Spatial data is usually related to other types of data. Allows one to encode more complex spatial relationships. Fire Hydrant: number of uses, service area, last maintenance date. River: flow, temperature, fish presence, chemical concentrations Forested Area: monetary value, types of trees, ownership
Historically?  In early GIS implementations, spatial data and related attribute information were stored separately.  The attribute information was in a database (or flat file), while the spatial information was in a separate, proprietary, GIS file structure. For example, municipalities often would store property line information in a GIS file and ownership information in a database. Spatial databases were born when people started to treat spatial information as first class database objects.
Advantages of Spatial Databases  Able to treat your spatial data like anything else in the DB transactions backups integrity checks less data redundancy fundamental organization and operations handled by the DB multi-user support security/access control locking
 
Advantages of Spatial Databases  Offset complicated tasks to the DB server organization and indexing done for you do not have to re-implement operators do not have to re-implement functions Significantly lowers the development time of client applications
Advantages of Spatial Databases  Spatial querying using SQL use simple SQL expressions to determine spatial  relationships distance adjacency containment use simple SQL expressions to perform spatial  operations area length intersection union buffer
Original Polygons Union Intersection
Original river network Buffered rivers
Advantages of Spatial Databases  …  WHERE distance(<me>,pub_loc) < 1000 SELECT distance(<me>,pub_loc)*$0.01 + beer_cost … ... WHERE touches(pub_loc, street) …  WHERE inside(pub_loc,city_area) and city_name = ...
Advantages of Spatial Databases  Simple value of the proposed lot  Area(<my lot>) * <price per acre>  + area(intersect(<my log>,<forested area>) ) * <wood value per acre> - distance(<my lot>, <power lines>) * <cost of power line laying>
New Electoral Districts Changes in areas between 1996 and 2001 election. Want to predict voting in 2001 by looking at voting in 1996. Intersect the 2001 district polygon with the voting areas polygons. Outside will have zero area Inside will have 100% area On the border will have partial area Multiply the % area by 1996 actual voting and sum Result is a simple prediction of 2001 voting More advanced: also use demographic data.
Disadvantages of Spatial Databases  Cost to implement can be high Some inflexibility Incompatibilities with some GIS software Slower than local, specialized data structures User/managerial inexperience and caution
Spatial Database Offerings  ESRI ArcSDE (on top of several different DBs) Oracle Spatial IBM DB2 Spatial Extender Informix Spatial DataBlade MS SQL Server (with ESRI SDE) Geomedia on MS Access PostGIS / PostgreSQL
The OpenGIS Consortium  From the OpenGIS Consortium guide “ Much geospatial data is available on the web and in off-line archives, but it is complex, heterogeneous, and incompatible. Users must possess considerable expertise and special geographic information system (GIS) software to overlay or otherwise combine different map layers of the same geographic region. Data conversion is cumbersome and time-consuming, and the results are often unsatisfactory. Common interfaces are the only way to enable overlays and combinations of complex and essentially different kinds of geographic information to happen automatically over the Internet, despite differences in the underlying GIS software systems. OGC brings together the key players and provides a formal structure for achieving consensus on the common interfaces.”
The OpenGIS Consortium  From the OpenGIS Consortium FAQ “ OpenGIS is defined as transparent access to heterogeneous geodata and geoprocessing resources in a networked environment. The goal of the OpenGIS Project is to provide a comprehensive suite of open interface specifications that enable developers to write inter-operating components that provide these capabilities.”
Who is involved in the OpenGIS Consortium?  ESRI Oracle IBM and Informix Intergraph Bentley (Microstation) MapInfo MicroSoft AutoDesk
Important OpenGIS Publications  Simple Features Specification for OLE/COM for COBRA for SQL Web Map Server Specification (WMS) Web Feature Server Specification (WFS)
Why make PostgreSQL into an OpenGIS SFSQL Spatial DB?  Why choose PostgreSQL? Proven reliability and respect No cost (open source) Supports most of the SQL standard Ability to add new data-types TOAST - no limit on column size GiST index / Index extensions Easy to add custom functions
Why make PostgreSQL into an OpenGIS SFSQL Spatial DB?  Why choose OpenGIS SFSQL? Third Party reviewed roadmap One of the only open, respected standards Participation by the major GIS/DB organizations Other spatial DB are at least partially compliant Future interoperability/exchangeability with other DBs  SFSQL provides complex functionality required by Web Feature Server / Web Map Server User familiarity
Implementing the OpenGIS specification.  Understand the Specification Much harder than it sounds Add a GEOMETRY data type Point  /  Multipoint Linestring  /  Multilinestring Polygon  / Multipolygon GeometryCollection Add support functions (and types)
Spatial Indexing  Used the GiST (Generalized Search Tree) index Actively being developed Teodor Sigaev  and Oleg Bartunov http://www.sai.msu.su/~megera/postgres/gist/ Fast index creation Handles compression  use bounding box of the feature NULL safe Can implement an R-Tree using GiST
R-Tree Indexing  Generalize all the geometries to their bounding box. small to store operations are simple Typical search is to find all the objects that overlap a box Result is an approximation  too many features are returned Used to solve overlap and distance problems
R-Tree Indexing  Overlap
R-Tree Indexing  Distance
Guttman A.: 'R-trees: A Dynamic Index Structure for Spatial Searching', Proc ACM SIGMOD Int. Conf. on Management of Data, 1984
SQL example  Create “pubs” table create table pubs (name varchar,   beer_price float4); addgeometrycolumn(‘beer_db’,'pubs','location’   ,2167,'POINT',3);
Insert data insert into pubs values ( 'Garricks Head', 4.50, GeometryFromText( 'POINT (1196131 383324)’  ,2167)  );
Perform Query select name, beer_price,  distance(location, GeometryFromText('POINT(1195722 383854)',2167))  from pubs order by beer_price; name  | beer_price |  distance  ---------------+------------+------------------ Fireside  |  4.25 | 1484.10275160491 The Forge  |  4.33 | 1533.06561109862 Rumours  |  4.46 | 2042.00094093097 Garricks Head |  4.5 | 669.389105609889 Slap Happy  |  4.5 | 1882.31910168298 Old Bailys  |  4.55 | 1147.20900404641 Black Sheep  |  4.66 | 536.859935972633 Big Bad Daves |  4.75 | 907.446543878884
Perform Query select name, beer_price + 0.001 * distance(location, GeometryFromText('POINT(1195722 383854)',2167)) as net_price from pubs order by price; name  |  net_price  ---------------+------------------ Garricks Head | 5.16938910560989 Black Sheep  | 5.19685978338474 Big Bad Daves | 5.65744654387888 Old Bailys  | 5.69720919478127 Fireside  | 5.73410275160491 The Forge  | 5.86306553480468 Slap Happy  | 6.38231910168298 Rumours  | 6.50200097907794
Client Software  What talks to PostGIS? Uses standard SQL so can connect to it from any client FME (Safe Software): GIS translation/processing Mapserver (http://mapserver.gis.umn.edu), an OpenGIS Web Map Server OGR (http://gdal.velocet.ca/projects/opengis/) - open source GIS reader/writer ESRI shapefile reader/writer In progress: ESRI ArcGIS connection, AutoCAD, Java Viewer, Web Feature Server
Open Standards in a Proprietary World  Biggest obstacle is that most GIS companies have a closed/proprietary method for accessing and organizing spatial data ERSI’s SDE (US$10,000) is required to effectively connect its software to a spatial database. “ As explained above, ArcSDE is the gateway to the DBMS for ESRI's client applications. Without ArcSDE, customer sites are limited in what they can do with their spatial databases. “  - ESRI’s ARC-SDE FAQ (www.esri.com)
Status  PostGIS 0.6 was released last week Implements all of the OGC specification except the “hard” spatial operations. Over 500 downloads and many people actually using it The PostGIS development team is working with Vivid Solutions to include the Java Topology Suite (JTS).  The JTS is an open source, rigorous, and robust implementation of OGC compliant spatial operations. Martin Davis  http://www.vividsolutions.com/jts/jtshome.htm
Conclusions  PostGIS spatially enables PostgreSQL by adding spatial objects, functions, and indexing. PostGIS is free software (GPL) PostGIS follows the OpenGIS Simple Features for SQL  hope it will be certified next year PostGIS is an important component in open and free GIS. PostGIS is an important building block for all future open source spatial projects.
Questions David Blasby Refractions Research [email_address]   http://postgis.refractions.net

More Related Content

What's hot (20)

introduction to GIS
introduction to GIS introduction to GIS
introduction to GIS
niazali15CRP92
 
An introduction to geographic information systems (gis) m goulbourne 2007
An introduction to geographic information systems (gis)   m goulbourne 2007An introduction to geographic information systems (gis)   m goulbourne 2007
An introduction to geographic information systems (gis) m goulbourne 2007
Michelle Goulbourne @ DiaMind Health
 
Getting started with GIS
Getting started with GISGetting started with GIS
Getting started with GIS
Esri India
 
Web GIS using Google Map and QGIS
Web GIS using Google Map and QGISWeb GIS using Google Map and QGIS
Web GIS using Google Map and QGIS
IndranilChakraborty42
 
GIS
GISGIS
GIS
Ahmed EL ATARI
 
Gis functions
Gis functionsGis functions
Gis functions
Shah Naseer
 
Spatial analysis and Analysis Tools
Spatial analysis and Analysis ToolsSpatial analysis and Analysis Tools
Spatial analysis and Analysis Tools
Swapnil Shrivastav
 
THE NATURE AND SOURCE OF GEOGRAPHIC DATA
THE NATURE AND SOURCE OF GEOGRAPHIC DATATHE NATURE AND SOURCE OF GEOGRAPHIC DATA
THE NATURE AND SOURCE OF GEOGRAPHIC DATA
Nadia Aziz
 
07 Image classification.pptx
07 Image classification.pptx07 Image classification.pptx
07 Image classification.pptx
eshitaakter2
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Joey Li
 
GIS
GISGIS
GIS
Akanksha Sangwan
 
GIS and Mapping Software Introduction
GIS and Mapping Software IntroductionGIS and Mapping Software Introduction
GIS and Mapping Software Introduction
removed_62798267384a091db5c693ad7f1cc5ac
 
Introduction to arc gis
Introduction to arc gisIntroduction to arc gis
Introduction to arc gis
Mohamed Hamed
 
Digital soil mapping
Digital soil mappingDigital soil mapping
Digital soil mapping
CIAT
 
Spatial analysis and modeling
Spatial analysis and modelingSpatial analysis and modeling
Spatial analysis and modeling
Tolasa_F
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Uday kumar Devalla
 
WEB GIS AND WEB MAP.pptx
WEB GIS AND WEB MAP.pptxWEB GIS AND WEB MAP.pptx
WEB GIS AND WEB MAP.pptx
Asim Pt
 
Introduction to GIS
Introduction to GISIntroduction to GIS
Introduction to GIS
Ehsan Hamzei
 
Gis
GisGis
Gis
Sumeet Pattanaik
 

Viewers also liked (20)

AAG_2011
AAG_2011AAG_2011
AAG_2011
ohuisman
 
Vondráková, A: The influence of applied cartographic methods on the map infor...
Vondráková, A: The influence of applied cartographic methods on the map infor...Vondráková, A: The influence of applied cartographic methods on the map infor...
Vondráková, A: The influence of applied cartographic methods on the map infor...
indogpr
 
Popelka, S: Space-Time-Cube for Visualization of Eye-tracking data
Popelka, S: Space-Time-Cube for Visualization of Eye-tracking dataPopelka, S: Space-Time-Cube for Visualization of Eye-tracking data
Popelka, S: Space-Time-Cube for Visualization of Eye-tracking data
indogpr
 
05 predictive with spss
05 predictive with spss05 predictive with spss
05 predictive with spss
IBM_cloud_ecosystem_development_france
 
PostgreSQL
PostgreSQLPostgreSQL
PostgreSQL
Reuven Lerner
 
Pro PostgreSQL, OSCon 2008
Pro PostgreSQL, OSCon 2008Pro PostgreSQL, OSCon 2008
Pro PostgreSQL, OSCon 2008
Robert Treat
 
PostgreSQL Scaling And Failover
PostgreSQL Scaling And FailoverPostgreSQL Scaling And Failover
PostgreSQL Scaling And Failover
John Paulett
 
My experience with embedding PostgreSQL
 My experience with embedding PostgreSQL My experience with embedding PostgreSQL
My experience with embedding PostgreSQL
Jignesh Shah
 
Why use PostgreSQL?
Why use PostgreSQL?Why use PostgreSQL?
Why use PostgreSQL?
Gabriele Bartolini
 
Android & PostgreSQL
Android & PostgreSQLAndroid & PostgreSQL
Android & PostgreSQL
Mark Wong
 
PostgreSQL Hooks for Fun and Profit
PostgreSQL Hooks for Fun and ProfitPostgreSQL Hooks for Fun and Profit
PostgreSQL Hooks for Fun and Profit
David Fetter
 
PostgreSQL and RAM usage
PostgreSQL and RAM usagePostgreSQL and RAM usage
PostgreSQL and RAM usage
Alexey Bashtanov
 
Get to know PostgreSQL!
Get to know PostgreSQL!Get to know PostgreSQL!
Get to know PostgreSQL!
Oddbjørn Steffensen
 
PostgreSQL Performance Tuning
PostgreSQL Performance TuningPostgreSQL Performance Tuning
PostgreSQL Performance Tuning
elliando dias
 
Data Processing Inside PostgreSQL
Data Processing Inside PostgreSQLData Processing Inside PostgreSQL
Data Processing Inside PostgreSQL
EDB
 
Really Big Elephants: PostgreSQL DW
Really Big Elephants: PostgreSQL DWReally Big Elephants: PostgreSQL DW
Really Big Elephants: PostgreSQL DW
PostgreSQL Experts, Inc.
 
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and ExceptableHowdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Command Prompt., Inc
 
PostgreSQL Deep Internal
PostgreSQL Deep InternalPostgreSQL Deep Internal
PostgreSQL Deep Internal
EXEM
 
PostgreSQL Replication in 10 Minutes - SCALE
PostgreSQL Replication in 10  Minutes - SCALEPostgreSQL Replication in 10  Minutes - SCALE
PostgreSQL Replication in 10 Minutes - SCALE
PostgreSQL Experts, Inc.
 
Mastering PostgreSQL Administration
Mastering PostgreSQL AdministrationMastering PostgreSQL Administration
Mastering PostgreSQL Administration
EDB
 
Vondráková, A: The influence of applied cartographic methods on the map infor...
Vondráková, A: The influence of applied cartographic methods on the map infor...Vondráková, A: The influence of applied cartographic methods on the map infor...
Vondráková, A: The influence of applied cartographic methods on the map infor...
indogpr
 
Popelka, S: Space-Time-Cube for Visualization of Eye-tracking data
Popelka, S: Space-Time-Cube for Visualization of Eye-tracking dataPopelka, S: Space-Time-Cube for Visualization of Eye-tracking data
Popelka, S: Space-Time-Cube for Visualization of Eye-tracking data
indogpr
 
Pro PostgreSQL, OSCon 2008
Pro PostgreSQL, OSCon 2008Pro PostgreSQL, OSCon 2008
Pro PostgreSQL, OSCon 2008
Robert Treat
 
PostgreSQL Scaling And Failover
PostgreSQL Scaling And FailoverPostgreSQL Scaling And Failover
PostgreSQL Scaling And Failover
John Paulett
 
My experience with embedding PostgreSQL
 My experience with embedding PostgreSQL My experience with embedding PostgreSQL
My experience with embedding PostgreSQL
Jignesh Shah
 
Android & PostgreSQL
Android & PostgreSQLAndroid & PostgreSQL
Android & PostgreSQL
Mark Wong
 
PostgreSQL Hooks for Fun and Profit
PostgreSQL Hooks for Fun and ProfitPostgreSQL Hooks for Fun and Profit
PostgreSQL Hooks for Fun and Profit
David Fetter
 
PostgreSQL Performance Tuning
PostgreSQL Performance TuningPostgreSQL Performance Tuning
PostgreSQL Performance Tuning
elliando dias
 
Data Processing Inside PostgreSQL
Data Processing Inside PostgreSQLData Processing Inside PostgreSQL
Data Processing Inside PostgreSQL
EDB
 
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and ExceptableHowdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Howdah - An Application using Pylons, PostgreSQL, Simpycity and Exceptable
Command Prompt., Inc
 
PostgreSQL Deep Internal
PostgreSQL Deep InternalPostgreSQL Deep Internal
PostgreSQL Deep Internal
EXEM
 
PostgreSQL Replication in 10 Minutes - SCALE
PostgreSQL Replication in 10  Minutes - SCALEPostgreSQL Replication in 10  Minutes - SCALE
PostgreSQL Replication in 10 Minutes - SCALE
PostgreSQL Experts, Inc.
 
Mastering PostgreSQL Administration
Mastering PostgreSQL AdministrationMastering PostgreSQL Administration
Mastering PostgreSQL Administration
EDB
 
Ad

Similar to Building a Spatial Database in PostgreSQL (20)

Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
Sohail Akbar Goheer
 
Building A Spatial Database In Postgresql (Ppt).pdf
Building A Spatial Database In Postgresql (Ppt).pdfBuilding A Spatial Database In Postgresql (Ppt).pdf
Building A Spatial Database In Postgresql (Ppt).pdf
ssuser0ab1a4
 
FOSS4G 2017 Spatial Sql for Rookies
FOSS4G 2017 Spatial Sql for RookiesFOSS4G 2017 Spatial Sql for Rookies
FOSS4G 2017 Spatial Sql for Rookies
Todd Barr
 
Spatial Databases
Spatial DatabasesSpatial Databases
Spatial Databases
Pratibha Chaudhary
 
PostGIS and Spatial SQL
PostGIS and Spatial SQLPostGIS and Spatial SQL
PostGIS and Spatial SQL
Todd Barr
 
Spot db consistency checking and optimization in spatial database
Spot db  consistency checking and optimization in spatial databaseSpot db  consistency checking and optimization in spatial database
Spot db consistency checking and optimization in spatial database
Pratik Udapure
 
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
GIS in the Rockies
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
Vikas Jagtap
 
Postgis for Enterprise
Postgis for EnterprisePostgis for Enterprise
Postgis for Enterprise
GeoLivre Conference
 
Post gispguk
Post gispgukPost gispguk
Post gispguk
lbtlsystems
 
Open Source Databases And Gis
Open Source Databases And GisOpen Source Databases And Gis
Open Source Databases And Gis
Kudos S.A.S
 
Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...
Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...
Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...
Jerin John
 
Spatial Data in SQL Server
Spatial Data in SQL ServerSpatial Data in SQL Server
Spatial Data in SQL Server
Eduardo Castro
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
vikramvsu
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
Fatima891926
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
GodwinKingNyamador
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
safayetmim1
 
What is spatial sql
What is spatial sqlWhat is spatial sql
What is spatial sql
shawty_ds
 
Spatial Data in SQL Server
Spatial Data in SQL ServerSpatial Data in SQL Server
Spatial Data in SQL Server
Eduardo Castro
 
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
TYBSC IT PGIS Unit II Chapter I Data Management and Processing SystemsTYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
Arti Parab Academics
 
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQLBuilding a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL
Sohail Akbar Goheer
 
Building A Spatial Database In Postgresql (Ppt).pdf
Building A Spatial Database In Postgresql (Ppt).pdfBuilding A Spatial Database In Postgresql (Ppt).pdf
Building A Spatial Database In Postgresql (Ppt).pdf
ssuser0ab1a4
 
FOSS4G 2017 Spatial Sql for Rookies
FOSS4G 2017 Spatial Sql for RookiesFOSS4G 2017 Spatial Sql for Rookies
FOSS4G 2017 Spatial Sql for Rookies
Todd Barr
 
PostGIS and Spatial SQL
PostGIS and Spatial SQLPostGIS and Spatial SQL
PostGIS and Spatial SQL
Todd Barr
 
Spot db consistency checking and optimization in spatial database
Spot db  consistency checking and optimization in spatial databaseSpot db  consistency checking and optimization in spatial database
Spot db consistency checking and optimization in spatial database
Pratik Udapure
 
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World2017 RM-URISA Track:  Spatial SQL - The Best Kept Secret in the Geospatial World
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
GIS in the Rockies
 
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtapADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
ADVANCE DATABASE MANAGEMENT SYSTEM CONCEPTS & ARCHITECTURE by vikas jagtap
Vikas Jagtap
 
Open Source Databases And Gis
Open Source Databases And GisOpen Source Databases And Gis
Open Source Databases And Gis
Kudos S.A.S
 
Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...
Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...
Databases Basics and Spacial Matrix - Discussig Geographic Potentials of Data...
Jerin John
 
Spatial Data in SQL Server
Spatial Data in SQL ServerSpatial Data in SQL Server
Spatial Data in SQL Server
Eduardo Castro
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
vikramvsu
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
Fatima891926
 
GIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.pptGIS_Whirlwind_Tour.ppt
GIS_Whirlwind_Tour.ppt
safayetmim1
 
What is spatial sql
What is spatial sqlWhat is spatial sql
What is spatial sql
shawty_ds
 
Spatial Data in SQL Server
Spatial Data in SQL ServerSpatial Data in SQL Server
Spatial Data in SQL Server
Eduardo Castro
 
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
TYBSC IT PGIS Unit II Chapter I Data Management and Processing SystemsTYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
TYBSC IT PGIS Unit II Chapter I Data Management and Processing Systems
Arti Parab Academics
 
Ad

More from Kudos S.A.S (20)

AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...
AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...
AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...
Kudos S.A.S
 
Miradas al exterior.
Miradas al exterior. Miradas al exterior.
Miradas al exterior.
Kudos S.A.S
 
Bringing GEOSS services into Practice for Beginners: GeoNode Tutorial
Bringing GEOSS services into Practice for Beginners: GeoNode TutorialBringing GEOSS services into Practice for Beginners: GeoNode Tutorial
Bringing GEOSS services into Practice for Beginners: GeoNode Tutorial
Kudos S.A.S
 
Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...
Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...
Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...
Kudos S.A.S
 
Using python to analyze spatial data
Using python to analyze spatial dataUsing python to analyze spatial data
Using python to analyze spatial data
Kudos S.A.S
 
Proyecto Mapa Nacional de Amenaza Relativa por Movimientos en Masa
Proyecto Mapa Nacional de Amenaza Relativa por Movimientos en MasaProyecto Mapa Nacional de Amenaza Relativa por Movimientos en Masa
Proyecto Mapa Nacional de Amenaza Relativa por Movimientos en Masa
Kudos S.A.S
 
Presentación software libre v2
Presentación software libre v2Presentación software libre v2
Presentación software libre v2
Kudos S.A.S
 
A Web Application Designed to Publish Information of Surface Manifestations o...
A Web Application Designed to Publish Information of Surface Manifestations o...A Web Application Designed to Publish Information of Surface Manifestations o...
A Web Application Designed to Publish Information of Surface Manifestations o...
Kudos S.A.S
 
Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013
Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013
Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013
Kudos S.A.S
 
Conferencias ACIS: Análisis y visualización de información georreferenciada u...
Conferencias ACIS: Análisis y visualización de información georreferenciada u...Conferencias ACIS: Análisis y visualización de información georreferenciada u...
Conferencias ACIS: Análisis y visualización de información georreferenciada u...
Kudos S.A.S
 
Implementación de Fábricas de Software en el Sector Público Colombiano
Implementación de Fábricas de Software en el Sector Público ColombianoImplementación de Fábricas de Software en el Sector Público Colombiano
Implementación de Fábricas de Software en el Sector Público Colombiano
Kudos S.A.S
 
Presentacion SNC : Sistema Nacional Catastral de Colombia
Presentacion SNC : Sistema Nacional Catastral de ColombiaPresentacion SNC : Sistema Nacional Catastral de Colombia
Presentacion SNC : Sistema Nacional Catastral de Colombia
Kudos S.A.S
 
Analizando y visualizando información geoespacial utilizando cloud computing
Analizando y visualizando información geoespacial utilizando cloud computingAnalizando y visualizando información geoespacial utilizando cloud computing
Analizando y visualizando información geoespacial utilizando cloud computing
Kudos S.A.S
 
Manejo de información raster_en_post_gis-2.0-
Manejo de información raster_en_post_gis-2.0-Manejo de información raster_en_post_gis-2.0-
Manejo de información raster_en_post_gis-2.0-
Kudos S.A.S
 
Crowd-sourcing free and open geographic data: information poverty solutions f...
Crowd-sourcing free and open geographic data: information poverty solutions f...Crowd-sourcing free and open geographic data: information poverty solutions f...
Crowd-sourcing free and open geographic data: information poverty solutions f...
Kudos S.A.S
 
Software libre y Sistemas de Información Geográfica
Software libre y Sistemas de Información GeográficaSoftware libre y Sistemas de Información Geográfica
Software libre y Sistemas de Información Geográfica
Kudos S.A.S
 
Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...
Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...
Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...
Kudos S.A.S
 
Kudos Flashcamp Bogota 2009
Kudos Flashcamp Bogota 2009Kudos Flashcamp Bogota 2009
Kudos Flashcamp Bogota 2009
Kudos S.A.S
 
Geo Marketing, ¿Herramienta o Gadget?:
Geo Marketing, ¿Herramienta o Gadget?: Geo Marketing, ¿Herramienta o Gadget?:
Geo Marketing, ¿Herramienta o Gadget?:
Kudos S.A.S
 
Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...
Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...
Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...
Kudos S.A.S
 
AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...
AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...
AWS - Ingrese a la era de las bases de datos personalizadas: Encuentre la bas...
Kudos S.A.S
 
Miradas al exterior.
Miradas al exterior. Miradas al exterior.
Miradas al exterior.
Kudos S.A.S
 
Bringing GEOSS services into Practice for Beginners: GeoNode Tutorial
Bringing GEOSS services into Practice for Beginners: GeoNode TutorialBringing GEOSS services into Practice for Beginners: GeoNode Tutorial
Bringing GEOSS services into Practice for Beginners: GeoNode Tutorial
Kudos S.A.S
 
Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...
Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...
Uso de Tecnologías Geoespaciales y Big Data para mejorar los procesos de actu...
Kudos S.A.S
 
Using python to analyze spatial data
Using python to analyze spatial dataUsing python to analyze spatial data
Using python to analyze spatial data
Kudos S.A.S
 
Proyecto Mapa Nacional de Amenaza Relativa por Movimientos en Masa
Proyecto Mapa Nacional de Amenaza Relativa por Movimientos en MasaProyecto Mapa Nacional de Amenaza Relativa por Movimientos en Masa
Proyecto Mapa Nacional de Amenaza Relativa por Movimientos en Masa
Kudos S.A.S
 
Presentación software libre v2
Presentación software libre v2Presentación software libre v2
Presentación software libre v2
Kudos S.A.S
 
A Web Application Designed to Publish Information of Surface Manifestations o...
A Web Application Designed to Publish Information of Surface Manifestations o...A Web Application Designed to Publish Information of Surface Manifestations o...
A Web Application Designed to Publish Information of Surface Manifestations o...
Kudos S.A.S
 
Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013
Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013
Portafolio Empresarial Egresados Universidad Nacional de Colombia 2013
Kudos S.A.S
 
Conferencias ACIS: Análisis y visualización de información georreferenciada u...
Conferencias ACIS: Análisis y visualización de información georreferenciada u...Conferencias ACIS: Análisis y visualización de información georreferenciada u...
Conferencias ACIS: Análisis y visualización de información georreferenciada u...
Kudos S.A.S
 
Implementación de Fábricas de Software en el Sector Público Colombiano
Implementación de Fábricas de Software en el Sector Público ColombianoImplementación de Fábricas de Software en el Sector Público Colombiano
Implementación de Fábricas de Software en el Sector Público Colombiano
Kudos S.A.S
 
Presentacion SNC : Sistema Nacional Catastral de Colombia
Presentacion SNC : Sistema Nacional Catastral de ColombiaPresentacion SNC : Sistema Nacional Catastral de Colombia
Presentacion SNC : Sistema Nacional Catastral de Colombia
Kudos S.A.S
 
Analizando y visualizando información geoespacial utilizando cloud computing
Analizando y visualizando información geoespacial utilizando cloud computingAnalizando y visualizando información geoespacial utilizando cloud computing
Analizando y visualizando información geoespacial utilizando cloud computing
Kudos S.A.S
 
Manejo de información raster_en_post_gis-2.0-
Manejo de información raster_en_post_gis-2.0-Manejo de información raster_en_post_gis-2.0-
Manejo de información raster_en_post_gis-2.0-
Kudos S.A.S
 
Crowd-sourcing free and open geographic data: information poverty solutions f...
Crowd-sourcing free and open geographic data: information poverty solutions f...Crowd-sourcing free and open geographic data: information poverty solutions f...
Crowd-sourcing free and open geographic data: information poverty solutions f...
Kudos S.A.S
 
Software libre y Sistemas de Información Geográfica
Software libre y Sistemas de Información GeográficaSoftware libre y Sistemas de Información Geográfica
Software libre y Sistemas de Información Geográfica
Kudos S.A.S
 
Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...
Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...
Modelamiento en Web de Geoinformación de la Amazonía Colombiana con el uso de...
Kudos S.A.S
 
Kudos Flashcamp Bogota 2009
Kudos Flashcamp Bogota 2009Kudos Flashcamp Bogota 2009
Kudos Flashcamp Bogota 2009
Kudos S.A.S
 
Geo Marketing, ¿Herramienta o Gadget?:
Geo Marketing, ¿Herramienta o Gadget?: Geo Marketing, ¿Herramienta o Gadget?:
Geo Marketing, ¿Herramienta o Gadget?:
Kudos S.A.S
 
Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...
Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...
Integración de Adobe Flex y Google Maps: Aplicaciones Geográficas Enriquecida...
Kudos S.A.S
 

Recently uploaded (20)

What is Interior designing(introduction).pdf
What is Interior designing(introduction).pdfWhat is Interior designing(introduction).pdf
What is Interior designing(introduction).pdf
bhatiagitali
 
Vacuum Truck Industry Insights & Outlook
Vacuum Truck Industry Insights & OutlookVacuum Truck Industry Insights & Outlook
Vacuum Truck Industry Insights & Outlook
chanderdeepseoexpert
 
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost - The Chief Executive Officer Of GeminosStuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost
 
20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...
20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...
20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...
FINNOMENAMarketing
 
Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...
Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...
Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...
KaiNexus
 
International Business, 4th Edition- Alan M. Rugman.pdf
International Business, 4th Edition- Alan M. Rugman.pdfInternational Business, 4th Edition- Alan M. Rugman.pdf
International Business, 4th Edition- Alan M. Rugman.pdf
GamingwithUBAID
 
Kirill Klip GEM Royalty TNR Gold Copper Presentation
Kirill Klip GEM Royalty TNR Gold Copper PresentationKirill Klip GEM Royalty TNR Gold Copper Presentation
Kirill Klip GEM Royalty TNR Gold Copper Presentation
Kirill Klip
 
Architecture that Advances Part I Review.pdf
Architecture that Advances Part I Review.pdfArchitecture that Advances Part I Review.pdf
Architecture that Advances Part I Review.pdf
Brij Consulting, LLC
 
1911 Gold Corporate Presentation June 2025
1911 Gold Corporate Presentation June 20251911 Gold Corporate Presentation June 2025
1911 Gold Corporate Presentation June 2025
Shaun Heinrichs
 
Redefining Business Experiences: The Role of a Corporate Event Management Com...
Redefining Business Experiences: The Role of a Corporate Event Management Com...Redefining Business Experiences: The Role of a Corporate Event Management Com...
Redefining Business Experiences: The Role of a Corporate Event Management Com...
Be Executive Events
 
Miriam Cho: Transforming Healthcare through Visionary Leadership
Miriam Cho: Transforming Healthcare through Visionary LeadershipMiriam Cho: Transforming Healthcare through Visionary Leadership
Miriam Cho: Transforming Healthcare through Visionary Leadership
jessicashaw101998
 
Oleksandr Osypenko: Комунікації у проєкті (UA)
Oleksandr Osypenko: Комунікації у проєкті (UA)Oleksandr Osypenko: Комунікації у проєкті (UA)
Oleksandr Osypenko: Комунікації у проєкті (UA)
Lviv Startup Club
 
chapter 9 leadership qualityies university of windsor
chapter 9 leadership qualityies university of windsorchapter 9 leadership qualityies university of windsor
chapter 9 leadership qualityies university of windsor
zamananalyst29
 
Book - Behavioral finance and wealth management(1).pdf
Book - Behavioral finance and wealth management(1).pdfBook - Behavioral finance and wealth management(1).pdf
Book - Behavioral finance and wealth management(1).pdf
GamingwithUBAID
 
Sathesh Murthy_ Mastering the Art of Communication for Business Success.pdf
Sathesh Murthy_ Mastering the Art of Communication for Business Success.pdfSathesh Murthy_ Mastering the Art of Communication for Business Success.pdf
Sathesh Murthy_ Mastering the Art of Communication for Business Success.pdf
Enterprise world
 
Oleksandr Osypenko: Assessing Organizational Readiness (UA)
Oleksandr Osypenko: Assessing Organizational Readiness (UA)Oleksandr Osypenko: Assessing Organizational Readiness (UA)
Oleksandr Osypenko: Assessing Organizational Readiness (UA)
Lviv Startup Club
 
smidmart industrial Automation Ones Stop Solution
smidmart industrial Automation Ones Stop Solutionsmidmart industrial Automation Ones Stop Solution
smidmart industrial Automation Ones Stop Solution
smidmart
 
solulab.com-How to Build a Private LLM.pdf
solulab.com-How to Build a Private LLM.pdfsolulab.com-How to Build a Private LLM.pdf
solulab.com-How to Build a Private LLM.pdf
celinedion89121
 
zlib.pub_fundamental-analysis-for-investors-4th-edition.pdf
zlib.pub_fundamental-analysis-for-investors-4th-edition.pdfzlib.pub_fundamental-analysis-for-investors-4th-edition.pdf
zlib.pub_fundamental-analysis-for-investors-4th-edition.pdf
ssuserc74044
 
Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...
Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...
Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...
RUPAL AGARWAL
 
What is Interior designing(introduction).pdf
What is Interior designing(introduction).pdfWhat is Interior designing(introduction).pdf
What is Interior designing(introduction).pdf
bhatiagitali
 
Vacuum Truck Industry Insights & Outlook
Vacuum Truck Industry Insights & OutlookVacuum Truck Industry Insights & Outlook
Vacuum Truck Industry Insights & Outlook
chanderdeepseoexpert
 
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost - The Chief Executive Officer Of GeminosStuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost - The Chief Executive Officer Of Geminos
Stuart Frost
 
20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...
20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...
20250606_A. Stotz All Weather Strategy - Weights update & Performance review ...
FINNOMENAMarketing
 
Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...
Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...
Breaking Through Cultural Friction: The Role of Respect for People (Strengthe...
KaiNexus
 
International Business, 4th Edition- Alan M. Rugman.pdf
International Business, 4th Edition- Alan M. Rugman.pdfInternational Business, 4th Edition- Alan M. Rugman.pdf
International Business, 4th Edition- Alan M. Rugman.pdf
GamingwithUBAID
 
Kirill Klip GEM Royalty TNR Gold Copper Presentation
Kirill Klip GEM Royalty TNR Gold Copper PresentationKirill Klip GEM Royalty TNR Gold Copper Presentation
Kirill Klip GEM Royalty TNR Gold Copper Presentation
Kirill Klip
 
Architecture that Advances Part I Review.pdf
Architecture that Advances Part I Review.pdfArchitecture that Advances Part I Review.pdf
Architecture that Advances Part I Review.pdf
Brij Consulting, LLC
 
1911 Gold Corporate Presentation June 2025
1911 Gold Corporate Presentation June 20251911 Gold Corporate Presentation June 2025
1911 Gold Corporate Presentation June 2025
Shaun Heinrichs
 
Redefining Business Experiences: The Role of a Corporate Event Management Com...
Redefining Business Experiences: The Role of a Corporate Event Management Com...Redefining Business Experiences: The Role of a Corporate Event Management Com...
Redefining Business Experiences: The Role of a Corporate Event Management Com...
Be Executive Events
 
Miriam Cho: Transforming Healthcare through Visionary Leadership
Miriam Cho: Transforming Healthcare through Visionary LeadershipMiriam Cho: Transforming Healthcare through Visionary Leadership
Miriam Cho: Transforming Healthcare through Visionary Leadership
jessicashaw101998
 
Oleksandr Osypenko: Комунікації у проєкті (UA)
Oleksandr Osypenko: Комунікації у проєкті (UA)Oleksandr Osypenko: Комунікації у проєкті (UA)
Oleksandr Osypenko: Комунікації у проєкті (UA)
Lviv Startup Club
 
chapter 9 leadership qualityies university of windsor
chapter 9 leadership qualityies university of windsorchapter 9 leadership qualityies university of windsor
chapter 9 leadership qualityies university of windsor
zamananalyst29
 
Book - Behavioral finance and wealth management(1).pdf
Book - Behavioral finance and wealth management(1).pdfBook - Behavioral finance and wealth management(1).pdf
Book - Behavioral finance and wealth management(1).pdf
GamingwithUBAID
 
Sathesh Murthy_ Mastering the Art of Communication for Business Success.pdf
Sathesh Murthy_ Mastering the Art of Communication for Business Success.pdfSathesh Murthy_ Mastering the Art of Communication for Business Success.pdf
Sathesh Murthy_ Mastering the Art of Communication for Business Success.pdf
Enterprise world
 
Oleksandr Osypenko: Assessing Organizational Readiness (UA)
Oleksandr Osypenko: Assessing Organizational Readiness (UA)Oleksandr Osypenko: Assessing Organizational Readiness (UA)
Oleksandr Osypenko: Assessing Organizational Readiness (UA)
Lviv Startup Club
 
smidmart industrial Automation Ones Stop Solution
smidmart industrial Automation Ones Stop Solutionsmidmart industrial Automation Ones Stop Solution
smidmart industrial Automation Ones Stop Solution
smidmart
 
solulab.com-How to Build a Private LLM.pdf
solulab.com-How to Build a Private LLM.pdfsolulab.com-How to Build a Private LLM.pdf
solulab.com-How to Build a Private LLM.pdf
celinedion89121
 
zlib.pub_fundamental-analysis-for-investors-4th-edition.pdf
zlib.pub_fundamental-analysis-for-investors-4th-edition.pdfzlib.pub_fundamental-analysis-for-investors-4th-edition.pdf
zlib.pub_fundamental-analysis-for-investors-4th-edition.pdf
ssuserc74044
 
Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...
Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...
Visualizing SOPs with Flow Charts: A Step-by-Step Guide to Streamlining Stand...
RUPAL AGARWAL
 

Building a Spatial Database in PostgreSQL

  • 1. Building a Spatial Database in PostgreSQL David Blasby Refractions Research [email_address] http://postgis.refractions.net
  • 2. Introduction PostGIS is a spatial extension for PostgreSQL PostGIS aims to be an “OpenGIS Simple Features for SQL” compliant spatial database I am the principal developer
  • 3. Topics of Discussion Spatial data and spatial databases Adding spatial extensions to PostgreSQL OpenGIS and standards
  • 4. Why PostGIS? There aren’t any good open source spatial databases available commercial ones are very expensive Aren’t any open source spatial functions extremely difficult to properly code building block for any spatial project Enable information to be organized, visualized, and analyzed like never before
  • 5. What is a Spatial Database? Database that: Stores spatial objects Manipulates spatial objects just like other objects in the database
  • 6. What is Spatial data? Data which describes either location or shape e.g.House or Fire Hydrant location Roads, Rivers, Pipelines, Power lines Forests, Parks, Municipalities, Lakes
  • 7. What is Spatial data? In the abstract, reductionist view of the computer, these entities are represented as Points, Lines, and Polygons.
  • 8. Roads are represented as Lines Mail Boxes are represented as Points
  • 9. Topic Three Land Use Classifications are represented as Polygons
  • 10. Topic Three Combination of all the previous data
  • 11. Spatial Relationships Not just interested in location, also interested in “Relationships” between objects that are very hard to model outside the spatial domain. The most common relationships are Proximity : distance Adjacency : “touching” and “connectivity” Containment : inside/overlapping
  • 12. Spatial Relationships Distance between a toxic waste dump and a piece of property you were considering buying.
  • 14. Spatial Relationships Adjacency: All the lots which share an edge
  • 16. Spatial Relationships Containment: Rivers inside watersheds and land (islands) inside lakes
  • 17. Spatial Relationships Stream side logging - adjacency and containment.
  • 18. Most Organizations have Spatial Data Geocodable addresses Customer location Store locations Transportation tracking Statistical/Demographic Cartography Epidemiology Crime patterns Weather Information Land holdings Natural resources City Planning Environmental planning Information Visualization Hazard detection
  • 19. Why put spatial data in a RDBMS? Spatial data is usually related to other types of data. Allows one to encode more complex spatial relationships. Fire Hydrant: number of uses, service area, last maintenance date. River: flow, temperature, fish presence, chemical concentrations Forested Area: monetary value, types of trees, ownership
  • 20. Historically? In early GIS implementations, spatial data and related attribute information were stored separately. The attribute information was in a database (or flat file), while the spatial information was in a separate, proprietary, GIS file structure. For example, municipalities often would store property line information in a GIS file and ownership information in a database. Spatial databases were born when people started to treat spatial information as first class database objects.
  • 21. Advantages of Spatial Databases Able to treat your spatial data like anything else in the DB transactions backups integrity checks less data redundancy fundamental organization and operations handled by the DB multi-user support security/access control locking
  • 22.  
  • 23. Advantages of Spatial Databases Offset complicated tasks to the DB server organization and indexing done for you do not have to re-implement operators do not have to re-implement functions Significantly lowers the development time of client applications
  • 24. Advantages of Spatial Databases Spatial querying using SQL use simple SQL expressions to determine spatial relationships distance adjacency containment use simple SQL expressions to perform spatial operations area length intersection union buffer
  • 25. Original Polygons Union Intersection
  • 26. Original river network Buffered rivers
  • 27. Advantages of Spatial Databases … WHERE distance(<me>,pub_loc) < 1000 SELECT distance(<me>,pub_loc)*$0.01 + beer_cost … ... WHERE touches(pub_loc, street) … WHERE inside(pub_loc,city_area) and city_name = ...
  • 28. Advantages of Spatial Databases Simple value of the proposed lot Area(<my lot>) * <price per acre> + area(intersect(<my log>,<forested area>) ) * <wood value per acre> - distance(<my lot>, <power lines>) * <cost of power line laying>
  • 29. New Electoral Districts Changes in areas between 1996 and 2001 election. Want to predict voting in 2001 by looking at voting in 1996. Intersect the 2001 district polygon with the voting areas polygons. Outside will have zero area Inside will have 100% area On the border will have partial area Multiply the % area by 1996 actual voting and sum Result is a simple prediction of 2001 voting More advanced: also use demographic data.
  • 30. Disadvantages of Spatial Databases Cost to implement can be high Some inflexibility Incompatibilities with some GIS software Slower than local, specialized data structures User/managerial inexperience and caution
  • 31. Spatial Database Offerings ESRI ArcSDE (on top of several different DBs) Oracle Spatial IBM DB2 Spatial Extender Informix Spatial DataBlade MS SQL Server (with ESRI SDE) Geomedia on MS Access PostGIS / PostgreSQL
  • 32. The OpenGIS Consortium From the OpenGIS Consortium guide “ Much geospatial data is available on the web and in off-line archives, but it is complex, heterogeneous, and incompatible. Users must possess considerable expertise and special geographic information system (GIS) software to overlay or otherwise combine different map layers of the same geographic region. Data conversion is cumbersome and time-consuming, and the results are often unsatisfactory. Common interfaces are the only way to enable overlays and combinations of complex and essentially different kinds of geographic information to happen automatically over the Internet, despite differences in the underlying GIS software systems. OGC brings together the key players and provides a formal structure for achieving consensus on the common interfaces.”
  • 33. The OpenGIS Consortium From the OpenGIS Consortium FAQ “ OpenGIS is defined as transparent access to heterogeneous geodata and geoprocessing resources in a networked environment. The goal of the OpenGIS Project is to provide a comprehensive suite of open interface specifications that enable developers to write inter-operating components that provide these capabilities.”
  • 34. Who is involved in the OpenGIS Consortium? ESRI Oracle IBM and Informix Intergraph Bentley (Microstation) MapInfo MicroSoft AutoDesk
  • 35. Important OpenGIS Publications Simple Features Specification for OLE/COM for COBRA for SQL Web Map Server Specification (WMS) Web Feature Server Specification (WFS)
  • 36. Why make PostgreSQL into an OpenGIS SFSQL Spatial DB? Why choose PostgreSQL? Proven reliability and respect No cost (open source) Supports most of the SQL standard Ability to add new data-types TOAST - no limit on column size GiST index / Index extensions Easy to add custom functions
  • 37. Why make PostgreSQL into an OpenGIS SFSQL Spatial DB? Why choose OpenGIS SFSQL? Third Party reviewed roadmap One of the only open, respected standards Participation by the major GIS/DB organizations Other spatial DB are at least partially compliant Future interoperability/exchangeability with other DBs SFSQL provides complex functionality required by Web Feature Server / Web Map Server User familiarity
  • 38. Implementing the OpenGIS specification. Understand the Specification Much harder than it sounds Add a GEOMETRY data type Point / Multipoint Linestring / Multilinestring Polygon / Multipolygon GeometryCollection Add support functions (and types)
  • 39. Spatial Indexing Used the GiST (Generalized Search Tree) index Actively being developed Teodor Sigaev and Oleg Bartunov http://www.sai.msu.su/~megera/postgres/gist/ Fast index creation Handles compression use bounding box of the feature NULL safe Can implement an R-Tree using GiST
  • 40. R-Tree Indexing Generalize all the geometries to their bounding box. small to store operations are simple Typical search is to find all the objects that overlap a box Result is an approximation too many features are returned Used to solve overlap and distance problems
  • 41. R-Tree Indexing Overlap
  • 42. R-Tree Indexing Distance
  • 43. Guttman A.: 'R-trees: A Dynamic Index Structure for Spatial Searching', Proc ACM SIGMOD Int. Conf. on Management of Data, 1984
  • 44. SQL example Create “pubs” table create table pubs (name varchar, beer_price float4); addgeometrycolumn(‘beer_db’,'pubs','location’ ,2167,'POINT',3);
  • 45. Insert data insert into pubs values ( 'Garricks Head', 4.50, GeometryFromText( 'POINT (1196131 383324)’ ,2167) );
  • 46. Perform Query select name, beer_price, distance(location, GeometryFromText('POINT(1195722 383854)',2167)) from pubs order by beer_price; name | beer_price | distance ---------------+------------+------------------ Fireside | 4.25 | 1484.10275160491 The Forge | 4.33 | 1533.06561109862 Rumours | 4.46 | 2042.00094093097 Garricks Head | 4.5 | 669.389105609889 Slap Happy | 4.5 | 1882.31910168298 Old Bailys | 4.55 | 1147.20900404641 Black Sheep | 4.66 | 536.859935972633 Big Bad Daves | 4.75 | 907.446543878884
  • 47. Perform Query select name, beer_price + 0.001 * distance(location, GeometryFromText('POINT(1195722 383854)',2167)) as net_price from pubs order by price; name | net_price ---------------+------------------ Garricks Head | 5.16938910560989 Black Sheep | 5.19685978338474 Big Bad Daves | 5.65744654387888 Old Bailys | 5.69720919478127 Fireside | 5.73410275160491 The Forge | 5.86306553480468 Slap Happy | 6.38231910168298 Rumours | 6.50200097907794
  • 48. Client Software What talks to PostGIS? Uses standard SQL so can connect to it from any client FME (Safe Software): GIS translation/processing Mapserver (http://mapserver.gis.umn.edu), an OpenGIS Web Map Server OGR (http://gdal.velocet.ca/projects/opengis/) - open source GIS reader/writer ESRI shapefile reader/writer In progress: ESRI ArcGIS connection, AutoCAD, Java Viewer, Web Feature Server
  • 49. Open Standards in a Proprietary World Biggest obstacle is that most GIS companies have a closed/proprietary method for accessing and organizing spatial data ERSI’s SDE (US$10,000) is required to effectively connect its software to a spatial database. “ As explained above, ArcSDE is the gateway to the DBMS for ESRI's client applications. Without ArcSDE, customer sites are limited in what they can do with their spatial databases. “ - ESRI’s ARC-SDE FAQ (www.esri.com)
  • 50. Status PostGIS 0.6 was released last week Implements all of the OGC specification except the “hard” spatial operations. Over 500 downloads and many people actually using it The PostGIS development team is working with Vivid Solutions to include the Java Topology Suite (JTS). The JTS is an open source, rigorous, and robust implementation of OGC compliant spatial operations. Martin Davis http://www.vividsolutions.com/jts/jtshome.htm
  • 51. Conclusions PostGIS spatially enables PostgreSQL by adding spatial objects, functions, and indexing. PostGIS is free software (GPL) PostGIS follows the OpenGIS Simple Features for SQL hope it will be certified next year PostGIS is an important component in open and free GIS. PostGIS is an important building block for all future open source spatial projects.
  • 52. Questions David Blasby Refractions Research [email_address] http://postgis.refractions.net