Open Source Databases And Gis

8,124 views

Published on

Open Source Databases and GIS

Published in: Technology
0 Comments
12 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,124
On SlideShare
0
From Embeds
0
Number of Embeds
53
Actions
Shares
0
Downloads
564
Comments
0
Likes
12
Embeds 0
No embeds

No notes for slide

Open Source Databases And Gis

  1. 1. Open Source Databases and GIS Flexible Technologies for Flexible People
  2. 2. Open Source Databases <ul><li>What Open Source Databases are there? </li></ul><ul><ul><li>MySQL </li></ul></ul><ul><ul><li>PostgreSQL </li></ul></ul><ul><ul><li>Berkeley DB </li></ul></ul><ul><ul><li>mSQL </li></ul></ul><ul><ul><li>SAP DB </li></ul></ul><ul><ul><li>InterBase </li></ul></ul>
  3. 3. Berkeley DB <ul><li>Embedded database </li></ul><ul><li>Widely used in software </li></ul><ul><ul><li>Sendmail </li></ul></ul><ul><ul><li>Netscape </li></ul></ul><ul><li>Extremely fast </li></ul><ul><li>Only usable via language bindings </li></ul><ul><ul><li>C, C++, TCL, Python </li></ul></ul><ul><li>Commercially Supported </li></ul><ul><ul><li>Sleepycat Software </li></ul></ul>
  4. 4. MySQL <ul><li>Most widely used OSDB </li></ul><ul><li>Very fast read access, good for web apps </li></ul><ul><li>SQL interface, ODBC, JDBC </li></ul><ul><li>Language bindings </li></ul><ul><ul><li>C, C++, Perl, Python, TCL </li></ul></ul><ul><li>Commercially supported </li></ul><ul><ul><li>MySQL AB </li></ul></ul><ul><ul><li>NuSphere </li></ul></ul>
  5. 5. PostgreSQL <ul><li>Most extensible OSDB </li></ul><ul><li>Object relational design </li></ul><ul><li>ACID database </li></ul><ul><li>SQL interface, ODBC, JDBC </li></ul><ul><li>Language bindings </li></ul><ul><ul><li>C, C++, Perl, Python, TCL </li></ul></ul><ul><li>Commercially supported </li></ul><ul><ul><li>PgSQL Inc </li></ul></ul><ul><ul><li>Red Hat (as Red Hat Database) </li></ul></ul>
  6. 6. Why Not Oracle? <ul><li>Complexity </li></ul><ul><ul><li>OSDBs are relatively simple to install and administer </li></ul></ul><ul><li>Overhead </li></ul><ul><ul><li>OSDBs have a lighter system footprint </li></ul></ul><ul><li>Cost </li></ul><ul><ul><li>OSDBs have no licensing fees </li></ul></ul><ul><li>Accessibility </li></ul><ul><ul><li>OSDBs are not a black box </li></ul></ul>
  7. 7. When to use an OSDB? <ul><li>When it is organizationally appropriate </li></ul><ul><li>When you are accessing data using standard APIs </li></ul><ul><li>When you are building web based applications </li></ul><ul><li>When you are building deployable applications </li></ul><ul><li>When you control the architecture from end to end </li></ul>
  8. 8. Spatial Data and RDBMs <ul><li>Spatial Databases </li></ul><ul><ul><li>Spatial data and attributes reside together in the database </li></ul></ul><ul><ul><li>Complex hybrid queries are possible select area(forestpoly) from forestcover,history where forestcover.ageclass > 80 and history.restocking = true and forestcover.fid = history.fid and distance( forestcover.forestpoly, GeometryFromText(’POINT(514234,5019313)’,26910) ) < 500 </li></ul></ul><ul><ul><li>Very large seamless datasets can be stored </li></ul></ul><ul><ul><li>Unified data models are possible </li></ul></ul>
  9. 9. Spatial Databases <ul><li>Proprietary software </li></ul><ul><ul><li>ArcSDE </li></ul></ul><ul><ul><li>DB2 Spatial </li></ul></ul><ul><ul><li>OracleSpatial </li></ul></ul><ul><li>Open source software </li></ul><ul><ul><li>PostGIS / PostgreSQL </li></ul></ul>
  10. 10. PostGIS / PostgreSQL <ul><li>Spatial database functionality in PostgreSQL </li></ul><ul><li>OpenGIS “Simple Features for SQL” (SFSQL) as design guide </li></ul>
  11. 11. PostGIS Objects <ul><li>OpenGIS SFSQL Objects </li></ul><ul><ul><li>POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, GEOMETRYCOLLECTION </li></ul></ul><ul><li>OpenGIS SFSQL Representations </li></ul><ul><ul><li>AsBinary()  Well-Known Binary </li></ul></ul><ul><ul><li>AsText()  Well-Known Text </li></ul></ul><ul><ul><ul><li>POINT(-128 45) </li></ul></ul></ul><ul><ul><ul><li>MULTILINESTRING((-128 45,-128 46),(-130 50,-131 55)) </li></ul></ul></ul>
  12. 12. PostGIS Functionality <ul><li>Spatial indexing for all object types </li></ul><ul><ul><li>R-Tree on GiST Index </li></ul></ul><ul><li>Analysis functions </li></ul><ul><ul><li>Area() </li></ul></ul><ul><ul><li>Length() </li></ul></ul><ul><ul><li>Distance() </li></ul></ul><ul><ul><li>Transform() </li></ul></ul>
  13. 13. PostGIS Data Access <ul><li>Loading / Dumping </li></ul><ul><ul><li>Includes shp2pgsql and pgsql2shp utilities </li></ul></ul><ul><ul><li>OGR utility allows importing from multiple formats </li></ul></ul><ul><ul><li>E00Pg utility allows importing from E00 files </li></ul></ul><ul><li>Java </li></ul><ul><ul><li>Includes JDBC Extension Objects for Geometries </li></ul></ul><ul><li>C/C++ </li></ul><ul><ul><li>Using Well-Known Binary over the PostgreSQL C/C++ API </li></ul></ul>
  14. 14. PostGIS Data Visualization <ul><li>Internet mapping with Mapserver </li></ul><ul><ul><li>PHP/Mapscript and PHP/PgSQL to build interactive web mapping applications </li></ul></ul><ul><ul><li>ArcIMS emulator with Mapserver to view PostGIS data within Arc8 </li></ul></ul><ul><li>Java mapping with GeoTools </li></ul><ul><ul><li>GeoTools has a beta PostGIS layer data source </li></ul></ul>
  15. 15. PostGIS in the Real World (1) <ul><li>City of Boston, USA </li></ul><ul><ul><li>Online property analysis internal web application </li></ul></ul><ul><ul><li>Identify parcels which are proximate and display results using Mapserver </li></ul></ul><ul><li>Queensland, Australia Department of Natural Resources </li></ul><ul><ul><li>Forestry permitting internal web application </li></ul></ul><ul><ul><li>Query database by attribute and return map of parcel area with supporting information from database </li></ul></ul>
  16. 16. PostGIS in the Real World (2) <ul><li>I-Cubed Inc, USA </li></ul><ul><li>Large automated image processing system </li></ul><ul><ul><li>Uses database to coordinate image processing functions, tracking spatial extents of incoming requests and required imagery and farming work out to client computers. </li></ul></ul><ul><li>Intevation Gmbh, Germany </li></ul><ul><li>Massive multiplayer online game </li></ul><ul><ul><li>Players will have mobile devices (pagers, cell phones) and their position recorded in the database. Extraction and visualization tools will be used to visualize game play. </li></ul></ul>
  17. 17. PostGIS in the Real World (3) <ul><li>Finnish Geodetic Institute </li></ul><ul><ul><li>Creating nationwide distributed GIS network using the GeoServer OpenGIS WFS with PostGIS as the database backend </li></ul></ul><ul><li>Refractions Research, Canada </li></ul><ul><ul><li>Maintaining the Digital Road Atlas, a richly attributed provincial road network. Geometries are integrated into a complex data model including versioning, network integrity, and multiple views of the data. </li></ul></ul>
  18. 18. In Conclusion <ul><li>Open source databases have the capabilities to handle real world problems, and are in widespread use </li></ul><ul><li>Open source spatial databases (PostGIS) are new, but are already in use around the world </li></ul><ul><li>Many GIS database problems can now realistically be addressed with open source technology </li></ul>

×