Shapefile

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche

7 reasons not to use Shapefiles:

  1. attribute names are restricted to 8 chars (dbf)
  2. max. file size is restricted to 2GB (dbf)
  3. dozens of cluttered files (.shp, .dbf., .prj, .shx, etc.) and incompatible indexes
  4. only one geometry per table
  5. no Multi Geometries and no Geometry Collection
  6. no arcs, no topology
  7. no schema (reference)

For german see below.

Notes in German

Vektorformat mit Zusatzdateien. Für ArcView entwickelt.

Siehe auch:

Spezifikation:

Ein Shapefile besteht aus einem zwingenden Paar mit Endung .shp und .dbf. Dazu können weitere Dateien kommen:

  • "essential":
    • .shp: Shapefile geometry data
    • .dbf: database data, siehe DBF
  • "important":
    • .prj: projection file with coordinate reference system info, siehe PRJ
  • "derivable":
    • .shx: shapefile index (internal), falls .shx fehlt, kann es mit Tools neu aus .shp generiert werden.
  • other:
    • .sbn: shapefile (internal)
    • .sbx: shapefile (internal)
    • .avl: ArcView legend file
    • .rtf: data dictionary (rich text document)

7 Gründe, die gegen Shapefiles sprechen

  1. Attributnamen beschränkt auf 8 Zeichen (DBF)
  2. Max. Dateigrösse beschränkt auf 2 GB (DBF)
  3. Dutzende Dateien .shp, .dbf., .prj, .shx, etc…, inkompatible Indexe
  4. Nur eine Geometrie pro Tabelle
  5. Keine Multi- und keine Collection-Geometrien
  6. Keine Kreisbogen, keine Topologie
  7. Keine Schema-Referenz

Dokumentation

Software

  • Shapefile reader/writer von GeoTools (Java)
  • shapelib - Shapefile C Library
  • JShape, frei aber ohne Source code