Spatial Database Tips & Tricks Paul Ramsey

Slides:



Advertisements
Similar presentations
2009.foss4g.org.
Advertisements

A Roadmap of Open Source components for GI Web Services and Clients A Paul R Cooper MAGIC.
© 2007 Bentley Systems, Inc. Integrating Oracle 10g Workflows via the Geospatial Enterprise Oracle Connector Francois Valois Geospatial Product Manager.
Spatial Database Systems. Spatial Database Applications GIS applications (maps): Urban planning, route optimization, fire or pollution monitoring, utility.
Geographic Information Systems GIS Data Models. 1. Components of Geographic Data Spatial locations Attributes Topology Time.
Spatial Database Systems Tyler Reainthong CSE 7330 Fall 2009.
Building an online tool for spatial joins using open source software Karsten Vennemann Seattle.
From portions of Chapter 8, 9, 10, &11. Real world is complex. GIS is used model reality. The GIS models then enable us to ask questions of the data by.
Hope Foley Perpetual Technologies SQL Saturday #51 - Nashville.
OpenSource GIS 2004 Ottawa, Canada Building MapServer Applications with PostGIS Chris Hodgson & Paul Ramsey Refractions Research.
Spatial Databases Semester 2 DT249/DT211/DT228 Semester Pat Browne
SQL/SDA: A Query Language for Supporting Spatial Data Analysis and Its Web-Based Implementation SQL/SDA: A Query Language for Supporting Spatial Data Analysis.
Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.
Paul Ramsey Build your own MapQuest! Adding Spatial Smarts to PostgreSQL with PostGIS Paul Ramsey Refractions Research.
OpenSource GIS 2004 Ottawa, Canada Introduction to PostGIS PostGIS Basics for the New User Paul Ramsey & Chris Hodgson Refractions.
TECNOLOGIAS DE ARMAZENAMENTO DE INFORMAÇÃO ESPACIAL.
Databases, MySQL, and PHP Peterson. The Social Network The first thing we're gonna need is a lot of pictures. Unfortunately, Harvard doesn't keep a public.
ICPCA 2008 Research of architecture for digital campus LBS in Pervasive Computing Environment 1.
Introduction to GIS fGRG360G – Summer Geographic Information System Text Computer system GIS software Brainware Infrastructure Ray Hardware Software.
Open Source Databases and GIS
Spatial and temporal data management Nothing puzzles me more than time and space; and yet nothing troubles me less, as I never think about them Charles.
Spatial Databases DT249,DT211,DT228 Semester Lecture 0 Pat Browne
GIS Analysis. Questions to answer Position – what is here? Condition – where are …? Trends – what has changed? Pattern – what spatial patterns exist?
Benjamin Post Cole Kelleher. Encyclopedia Articles: PostGIS, C. Strobl, pp Oracle Spatial, Geometries, R. Kothuri and S. Ravada, page
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
1 Introduction to web mapping Dissemination of results, maps and figures ESTP course on Geographic Information Systems (GIS): Use of GIS for making statistics.
JTS Topology Suite JTS Topology Suite An API for Processing Linear Geometry Martin Davis, Senior Technical Architect
“Codd’s Rules for Spatial ORDBMS”
Spatial Database Souhad Daraghma.
Cadastre software based on Open Source in Kyrgyzstan Alexander Solovov Solution developer.
Spatial Query Language Group No.15 Dhruv Dhokalia Yash Khandelwal Course Relation- Chapter 11- Object and Object-Relational Databases.
Different kinds of data Example of Elevation Topographic DEM (Digital Elevation Model)
Database for Location- Aware Applications Mohammad Rezaei School of Computing University of Eastern Finland
The State of PostGIS Paul Ramsey Paul Ramsey
The OpenGIS Consortium Geog 516 Presentation #2 Rueben Schulz March 2004.
The need for benchmarks for geographical data Frans Knibbe Geodan Introduction.
6. Simple Features Specification Background information UML overview Simple features geometry.
How to Spatially Enable Your IBM Informix Database Chris Bosch.
SQL access and working with ST_Geometry Functions
Spatial Tajo Supporting Spatial Queries on Apache Tajo Slideshare Shorten URL : goo.gl/j0VLXpgoo.gl/j0VLXp.
PostGIS and Spatial Queries Steve Signell, Instructor Robert Poirier, TA School of Science Rensselaer Polytechnic Institute.
Spatial Databases: Lecture 1 DT211-4 DT228-4 DT249-4 Semester Pat Browne
John Pickford IBM H11 Wednesday, October 4, :30. – 14:30. Platform: Informix Practical Applications of IDS Extensibility (Part 2 of 2)
GIS & Health ESPM 9: W 5-8 April 7, 2010 Instructors: Maggi Kelly Kevin Koy Mark O’Connor Geospatial Innovation Facility College of Natural Resources -
Benjamin Post Cole Kelleher.  Availability  Data must maintain a specified level of availability to the users  Performance  Database requests must.
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.
SDE Highlights Now licensed as a part of ArcGIS server Recommending SDE to be separate from RDBMS –Remove overhead from the server –Utilize direct connects.
Spatial Database Bryan Dennie Jian Huang Jianghong Li Judy Mays GISC 6383 GIS Management & Implementation.
What is GIS? “A powerful set of tools for collecting, storing, retrieving, transforming and displaying spatial data”
Intro. To GIS Pre-Lab Spatial Analysis April 1 st, 2013.
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?
Spatial Information Management
Oracle Spatial Extension of the RDBMS Oracle by spatial data types and operations –introduced in version 8 (current version.
Iguassu Software System a.s., Evropská 120, Praha 6, Czech Republic SOROCA Scalable Open Source Earth Observation Catalog Roman Benčík Miroslav.
Get Familiar with Spatial Data. Slava Murygin – SQL SlavaSQL.BlogSpot.com.
Get Familiar with Spatial Data
The roles of GIS and DBMS
Spatial Database Systems
Introduction to PostGIS
Geographic Information Systems
Using QGIS, GRASS and PostGIS to answer some difficult questions
Map Control / GIS library for DelftShell
JTS Topology Suite An API for Processing Linear Geometry
Building a Spatial Database in PostgreSQL
Spatial and temporal data management
Building an online tool for spatial joins using open source software
Spatial Databases SpatiaLite & PostGIS.
Mapping packages Unfortunately none come with Anaconda (only geoprocessing is which does lat/long to Cartesian conversions). matplotlib.
Presentation transcript:

Spatial Database Tips & Tricks Paul Ramsey

It’s not dead, it’s just resting…

Motivation Spatial databases are powerful Godlike, really You do not need “GIS software” Your database is “GIS software” You do not need “spatial middleware” See above

Standard Database Has data types –varchar –integer –real –date

Spatial Database Has spatial data types –point –linestring –polygon –multipoint –multilinestring –multipolygon

Standard Database Has one-dimensional indexes –b-tree –hash

Spatial Database Has spatial indexes –r-tree –quad-tree –grid

Find intersecting shapes…

Start with all boxes,

find intersecting boxes,

then find intersecting shapes.

Standard Database Has functions Work against standard types –lower()‏ –round()‏ –substring()‏ –trim()‏ –dayofweek ()‏

Spatial Database Has spatial functions Work against spatial types –ST_Area(geometry)‏ –ST_Distance(geometry,geometry)‏ –ST_Intersects(geometry,geometry)‏ –ST_DWithin(geometry,geometry,radius)‏ –ST_Union(geometry,geometry)‏

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

Locator Spatial

No buffer operation No union operation No intersection operation No centroid point No area or length calculation L O C A T O R

Linear referencing system (LRS) support Spatial analysis and mining functions and procedures (SDO_SAM package)‏ Geocoding support (SDO_GCDR package)‏ GeoRaster support Topology data model Network data model S P A T I A L

SFSQL compliant New release, not as many features No coordinate reference system transforms Windows only Grid index

SELECT * FROM the_table WHERE the_geom.STIntersects( geometry::STGeomFromText('POINT(0 0)',0)‏ ); SELECT * FROM the_table WHERE ST_Intersects( the_geom, ST_GeomFromText('POINT(0 0)',0)‏ );

PostgreSQL / PostGIS SFSQL compliant Open source (GPL)‏ Proprietary / open source clients “geographic” coordinates require care