Shapefile: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
K
K
Zeile 1: Zeile 1:
 
 
   #TheShapefileChallenge
 
   #TheShapefileChallenge
  
We (GIS) deserve a better desktop/mobile exchange format! See the "7 reasons not to use Shapefiles2.
+
We (GIS) deserve a better desktop/mobile exchange format than Shapefiles! See the "7 reasons not to use Shapefiles".
  
Help finding the "Shapefile der Zukunft" within one year. It will be presented at next [[Spirgarten-Treffen]] March 24, 2016.  
+
Help finding the "Shapefile of the future" within one year. It will be presented at next [[Spirgarten-Treffen]] March 24, 2016.  
  
Current candidates are: GeoJSON, Geobuf, GeoPackage. Other propositions are welcome.
+
Current candidates are: [[GeoJSON]], [[Geobuf]], [[GeoPackage]]. Other propositions are welcome.
  
 
== 7 reasons not to use Shapefiles ==
 
== 7 reasons not to use Shapefiles ==
Zeile 57: Zeile 56:
 
Helft mit bis in einem Jahr das "Shapefile der Zukunft" zu finden. Es wird am nächsten [[Spirgarten-Treffen]] vom 24. März 2016 - also Gründonnerstag - vorgestellt.  
 
Helft mit bis in einem Jahr das "Shapefile der Zukunft" zu finden. Es wird am nächsten [[Spirgarten-Treffen]] vom 24. März 2016 - also Gründonnerstag - vorgestellt.  
  
Aktuelle Kandidaten sind: GeoJSON, Geobuf, GeoPackage - weitere Vorschläge sind willkommen.
+
Aktuelle Kandidaten sind: [[GeoJSON]], [[Geobuf]], [[GeoPackage]]. Weitere Vorschläge sind willkommen.
  
 
== Dokumentation ==
 
== Dokumentation ==

Version vom 27. März 2015, 23:57 Uhr

 #TheShapefileChallenge

We (GIS) deserve a better desktop/mobile exchange format than Shapefiles! See the "7 reasons not to use Shapefiles".

Help finding the "Shapefile of the future" within one year. It will be presented at next Spirgarten-Treffen March 24, 2016.

Current candidates are: GeoJSON, Geobuf, GeoPackage. Other propositions are welcome.

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
 #TheShapefileChallenge

Helft mit bis in einem Jahr das "Shapefile der Zukunft" zu finden. Es wird am nächsten Spirgarten-Treffen vom 24. März 2016 - also Gründonnerstag - vorgestellt.

Aktuelle Kandidaten sind: GeoJSON, Geobuf, GeoPackage. Weitere Vorschläge sind willkommen.

Dokumentation

Software

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