SpatiaLite: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(SpatiaLite-Tools)
(SpatiaLite-Tools)
Zeile 19: Zeile 19:
 
** spatialite-gis - Viewer
 
** spatialite-gis - Viewer
 
** spatialite-gui - Admin Tool (aka SQLite Database Browser)
 
** spatialite-gui - Admin Tool (aka SQLite Database Browser)
* Weitere
+
* Weitere:
 
** http://mapbox.com/tools/mbtiles - An OS X binary that takes a bunch of files in directories on disk and writes them into a sqlite database.
 
** http://mapbox.com/tools/mbtiles - An OS X binary that takes a bunch of files in directories on disk and writes them into a sqlite database.
** [[QGIS]]-Plugin 'Qspatialite': [http://pvanb.wordpress.com/2011/03/30/new-spatialite-plugin-for-qgis/ Ecostudies Blog 'New spatialite plugin for QGIS']. Installation:
+
** [[QGIS]]-Plugin 'Qspatialite': [http://pvanb.wordpress.com/2011/03/30/new-spatialite-plugin-for-qgis/ Ecostudies Blog 'New spatialite plugin for QGIS']. Installation: Mittels Erweiterungen > oder:
 
*** Download von Qspatialite.zip direkt [http://dl.free.fr/getfile.pl?file=/554xkFf1].
 
*** Download von Qspatialite.zip direkt [http://dl.free.fr/getfile.pl?file=/554xkFf1].
 
*** Auspacken von Qspatialite.zip in einem temp. Verzeichnis; nun sollte ein Ordner 'Qspatialite' vorhanden sein.
 
*** Auspacken von Qspatialite.zip in einem temp. Verzeichnis; nun sollte ein Ordner 'Qspatialite' vorhanden sein.

Version vom 7. April 2011, 00:59 Uhr

Erweiterung von SQLite mit Geometrie-Datentypen.

  • Enthält u.a. folgende z.T. OpenGIS-konforme Funktionen:
    • WKT and WKB formats
    • SQL spatial functions wie AsText(), GeomFromText(), Area(), PointN().
    • Das komplette Set von OpenGIS-Funktionen (via GEOS), wie Overlaps(), Touches(), Union(), Buffer().
    • Spatial metadata
    • Spatial Index based on the SQLite's RTree extension
  • Import/Export/Transformation:
    • supports importing and exporting from / to shapefiles
    • supports coordinate reprojection via PROJ.4 and EPSG geodetic parameters dataset
    • supports locale charsets via GNU libiconv
  • Direkte Unterstützung von folgenden Formaten als "Virtuelle Tabellen", ohne sie importieren zu müssen
    • VirtualShape für Shapefiles
    • VirtualText für CSV/Txt/Tab-Dateien

SpatiaLite-Tools

  • Tools from SpatiaLite original delivery/installation:
    • spatialite-gis - Viewer
    • spatialite-gui - Admin Tool (aka SQLite Database Browser)
  • Weitere:
    • http://mapbox.com/tools/mbtiles - An OS X binary that takes a bunch of files in directories on disk and writes them into a sqlite database.
    • QGIS-Plugin 'Qspatialite': Ecostudies Blog 'New spatialite plugin for QGIS'. Installation: Mittels Erweiterungen > oder:
      • Download von Qspatialite.zip direkt [1].
      • Auspacken von Qspatialite.zip in einem temp. Verzeichnis; nun sollte ein Ordner 'Qspatialite' vorhanden sein.
      • Den Ordner 'Qspatialite' ins QGIS-Python-Plugin-Verzeichnis kopieren: C:\Documents and Settings\<username>\.qgis\python\plugins (Windows).
      • QGIS (neu) starten und "Erweiterungen verwalten..." wählen. Dort sollte ein Eintrag 'Qspatialite' stehen => ankreuzen.

SpatialLite-Dateiformat

Binäres, umfassendes Geodatenformat (seit März 2008). Wir von mehreren GIS-Tools unterstützt, u.a. QGIS, OGR und FDO.

Siehe:

SpatiaLite, the Shapefile of the future?

Vergleich SpatiaLite vs. Shapefile: SpatiaLite hat...

  • Geometrie: OGC simple feature types, SQL SF
  • Weniger Files (mehrere Layer, Indizes, ...)
  • Aufhebung Limitierung Spaltennamen (>10!)
  • 64-bit IEEE Floating Point Typ
  • Eingebaute Unicode Unterstützung
  • Integrierte Metadaten (Projektion, etc.)
  • Library mit SQL-API (Insert, Join, etc.)
  • Funktionen wie Coordinate reprojection (proj.4)
  • Schema-Informationen (!) (wenn auch eine schwache konkrete Datentypisierung)
  • Keine Restriktion auf 8 Zeichen in Attributnamen (und weniger reservierte Worte, wie ID, TEXT, die dann oft in _ID und _TEXT umbenannt werden, was dann wieder einige DBase Tools nicht lesen können...)

Nachteile von SpatiaLite:

  • Kreisbogen-Geometrie ( => mit mittlerem Aufwand behebbar)
  • Strenge Typisierung (=> kaum realisierbar)
  • Typen-Casts gehen bei Views verloren
  • Fehlende quelloffenheit und Stabilität unabhängig vom Entwickler (= unklar)

Vgl. auch Vortrag SpatiaLite, das Shapefile der Zukunft? von P. Kalberer (Folien).

Spatialite und Python

http://www.gaia-gis.it/spatialite-2.4.0-4/spatialite-cookbook/html/python.html

Weblinks