Einführung in Geodatenbanken, Zusatzfolien Stefan Wiesmeier, AUG, Unibasel (stefan.wiesmeier@unibas.ch) Inhalt: ab 2-5 Dateiformate Webservices ab 2-10 Übersicht DBMS mit Spatial Extension GIS Funktionen in PostgresSQL ab 2-24 Beispiel Bohrungen / Grundwassermessstellen Beispiel Kneipen Ausblick / Entwicklung
Dateiformate VEKTORDATEN BGRUND ALK in Baden Württemberg Coverage (ArcInfo) DFK Digitale Flurkarte (Bayern) DGN Intergraph/Bentley Standard File Format DWG AutoCAD Drawing DXF Drawing Interchange Format E00 ArcInfo-Export-Format EDB EDBS, Einheitliche Datenbankschnittstelle, (ALK und ATKIS) GDF Geographic Data Files GML Geography Markup Language (Open GIS Consortiums) GPX GPS Exchange Format IFF Interchange Format File ILI/ILT/ITF/XTF INTERLIS-Transferformat KML Keyhole Markup Language (Google Inc) LAY GfK GeoMarketing RegioGraph/DISTRICT Layer MDB Microsoft Access Database MIF/MID MapInfo Interchange Format NAS Normbasierte Austauschschnittstelle, Neumodellierung des AFIS-ALKIS-ATKIS-Modells OVL Overlay, (Geogrid Viewer, Top50) PMF POLYGIS-Metafile SHP + SHX + DBF ESRI-Shapefile SVG Scalable Vector Graphics (W3 Consortium) SQD SICAD/open VEC/VEH SPANS Vektor Archivformat Quelle: http://www.gismngt.de/format/format.htm
Dateiformate RASTERDATEN CIT Intergraph CCITT Group IV, Type 24 (.CIT,.COT), Bentley Microstation ESRI Grid GIF Graphics Interchange Format IMG ERDAS IMAGINE Image JPG JPEG File Interchange Format, oft zusammen mit world file (Endung JFW) MrSID Multi Resolution Seamless Image Database PCX PiCture exchange PGR POLYGIS-Raster-Format TIFF Tagged Image File Format, oft zusammen mit world file (Endung TFW) GeoTIFF wie TIFF, Geometrie und Lage in Header gespeichert Quelle: http://www.gismngt.de/format/format.htm
Webservices Karten- und Feature Dienste über Webdienste (mapserver, ArcIMS, Geoserver, etc.) Standardisiert vom OGC (Open Geospatial Consortium), http://www.opengeospatial.org/ Bekannteste: WMS Web Map Service (Kartenausschnitte) WFS Web Feature Service (Attribute zu Geodaten) WCS Web Coverage Service (Satellitenbilder, DHM/DGM Daten)... see http://www.opengeospatial.org/standards Wichtig zur Einhaltung der europäischen Richtlinie INSPIRE und dem Schweizer Pendants BGDI und NGDI (Bundes-/Nationale Geodaten-Infrastruktur) Quelle:http://www.geo.admin.ch/internet/geoportal/de/home/geoadmin/mission/bgdi.html SWITCH
Datenbanken mit geographischer Erweiterung (Auswahl) Oracle Spatial Microsoft SQL Server 2008 IBM DB2 Spatial Extender MySQL und PostgreSQL, mit Erweiterung PostGIS (aktuelle Version 1.5.2, ab V 2.0 auch direkter Raster Support!) wird von Refractions Research als OpenSource Projekt betreut/geleitet (http://postgis.refractions.net/) Speicherung der Geometrien in Spalte the_geom Tabellen mit geographischen Daten werden in tbl geometry_coloumns gespeichert Tabelle spatial_ref_systems hält alle Projektionen bereit Optional: pg_routing Modul
GIS Funktionen in PostgresSQL Über 300 Funktionen verfügbar, Anwendungsfälle: Constructor functions Use these functions to create PostGIS geometries from either a well-known-text (WKT), well-known-binary (WKB). Output functions Use these functions to output geometry representations in various well-defined standard formats (WKT, WKB, GML, SVG, KML, GeoJSON). Accessor and Setter functions - These are functions that work against a single geometry and return or set attributes of the geometry. Decomposition functions These functions find and return geometries that can be extracted from the input geometry. Composition functions Use these functions to stitch, splice, or group together geometries. Measurement functions Return scalar measurements of the geometry. Simplification functions Sometimes you do not need the full resolution of a geometry. These functions simplify a geometry by removing points, linestrings or rounding the coordinates. The resultant geometry will still have the basic look and feel of the original, but made up of fewer points or coordinates of lower precision. Demo (Postgresql/PostGIS, pgadmin3; Aufbau, Funktionen und Speicherung,THICK.)
Anwendungsbeispiele Beispiel Grundwasser Daten in Postgres/PostGIS laden Pgadmin3 und QuantumGIS Demo Beispiel 2 Eigene Datenaufnahme, Kneipen Demo DO YOU WANT MORE? >>
Ausblick / Entwicklung (im Mobile Devices Bereich) : - Augmented Reality - Location Based Services - Device Orientation Event Specification (W3C) http://dev.w3.org/geo/api/spec-source-orientation.html Alles mit GeoDatenbanken MÖGLICH (und einigem mehr Know-How;) )