Shapefile: Unterschied zwischen den Versionen
Aus Geoinformation HSR
Stefan (Diskussion | Beiträge) K (→7 reasons not to use Shapefiles) |
Stefan (Diskussion | Beiträge) K |
||
Zeile 18: | Zeile 18: | ||
''For german see [[#7 Gründe, die gegen Shapefiles sprechen|below]].'' | ''For german see [[#7 Gründe, die gegen Shapefiles sprechen|below]].'' | ||
+ | |||
+ | == 7 Gründe, die gegen Shapefiles sprechen == | ||
+ | |||
+ | # Attributnamen beschränkt auf 8 Zeichen (DBF) | ||
+ | # Max. Dateigrösse beschränkt auf 2 GB (DBF) | ||
+ | # Dutzende Dateien .shp, .dbf., .prj, .shx, etc…, inkompatible Indexe | ||
+ | # Nur eine Geometrie pro Tabelle | ||
+ | # Keine Multi- und keine Collection-Geometrien | ||
+ | # Keine Kreisbogen, keine Topologie | ||
+ | # 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. | ||
== Notes in German == | == Notes in German == | ||
Zeile 32: | Zeile 48: | ||
** .shp: Shapefile geometry data | ** .shp: Shapefile geometry data | ||
** .dbf: database data, siehe [[DBF]] | ** .dbf: database data, siehe [[DBF]] | ||
+ | ** .shx: shapefile index (internal). Falls .shx fehlt, kann es mit Tools neu aus .shp generiert werden. | ||
* "important": | * "important": | ||
** .prj: projection file with coordinate reference system info, siehe [[PRJ]] | ** .prj: projection file with coordinate reference system info, siehe [[PRJ]] | ||
− | * " | + | * "other": |
− | |||
− | |||
** .sbn: shapefile (internal) | ** .sbn: shapefile (internal) | ||
** .sbx: shapefile (internal) | ** .sbx: shapefile (internal) | ||
** .avl: ArcView legend file | ** .avl: ArcView legend file | ||
** .rtf: data dictionary (rich text document) | ** .rtf: data dictionary (rich text document) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Dokumentation == | == Dokumentation == |
Version vom 14. Mai 2015, 18:15 Uhr
#TheShapefileChallenge - Current candidates: GeoPackage, GeoJSON, GeoCSV, Geobuf (2015-05-01).
Other propositions are welcome.
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.
Inhaltsverzeichnis
7 reasons not to use Shapefiles
- Attribute names are restricted to 8 chars (dbf).
- Max. file size is restricted to 2GB (dbf).
- Dozens of cluttered files (.shp, .dbf., .prj, .shx, etc.) and incompatible indexes.
- Only one geometry per table.
- No Multi Geometries and no Geometry Collection.
- No arcs, no topology.
- No schema (reference) and the layer name has to be derived from the filename.
For german see below.
7 Gründe, die gegen Shapefiles sprechen
- Attributnamen beschränkt auf 8 Zeichen (DBF)
- Max. Dateigrösse beschränkt auf 2 GB (DBF)
- Dutzende Dateien .shp, .dbf., .prj, .shx, etc…, inkompatible Indexe
- Nur eine Geometrie pro Tabelle
- Keine Multi- und keine Collection-Geometrien
- Keine Kreisbogen, keine Topologie
- 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.
Notes in German
Vektorformat mit Zusatzdateien. Für ArcView entwickelt.
Siehe auch:
- Geopackage - "the Shapefile of the Future!", GIS-Datei-Format
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
- .shx: shapefile index (internal). Falls .shx fehlt, kann es mit Tools neu aus .shp generiert werden.
- "important":
- .prj: projection file with coordinate reference system info, siehe PRJ
- "other":
- .sbn: shapefile (internal)
- .sbx: shapefile (internal)
- .avl: ArcView legend file
- .rtf: data dictionary (rich text document)
Dokumentation
- ESRI Whitepaper, 1998 (.pdf)
- http://en.wikipedia.org/wiki/Shapefile
- http://www.gdal.org/ogr/drv_shapefile.html