Unterstützte Datenformate¶
QField supports a wide variety of formats via QGIS data providers and GDAL. This page offers a non-exhaustive list of supported data formats.
Datenformat | Unterstützung | Notiz |
---|---|---|
Spatialite | ||
Geopackage | ||
WMS | ||
WFS | ||
WFS-T | ||
Postgis | ||
MBTiles | ||
Shapefile | ||
Tiff | ||
JPEG2000 | ||
WEBP | ||
ECW | Lizenz-beschränkte Nutzung | |
MrSID | Lizenz-beschränkte Nutzung |
Wenn Sie Ihr bevorzugtes Datenformat in dieser Tabelle nicht finden, prüfen Sie bitte, ob es funktioniert und passen Sie die Liste oben an um Ihre Ergebnisse mitzuteilen. Wenn es nicht funktioniert, öffnen Sie bitte ein Thema. Wir werden Ihnen gerne bei der Implementierung helfen.
Rasterdaten¶
Rasterdaten können schnell sehr groß werden, bei der Arbeit mit unkomprimierten tiff-Dateien sind es oft mehrere GB an Daten. Besonders auf mobilen Geräten, ist dies ineffizient.
Verwendung von COG (Cloud-optimiertes GeoTIFF)¶
Das Cloud-optimierte GeoTIFF (COG) bietet die beste Benutzererfahrung für Offline-Basemaps. In Kombination mit der JPEG-Komprimierung wird die Rastergröße reduziert.
Die folgende Kommandozeile konvertiert eine Datei mit Namen raster.tif
in die COG-Datei raster_cog.tif
mit Hilfe der JPEG-Komprimierung.
gdal_translate raster.tif raster_cog.tif -of COG -co BLOCKSIZE=512 -co COMPRESS=JPEG -co QUALITY=75 -co BIGTIFF=YES
Fortgeschrittene Beispiele mit COG¶
If you have several files to assemble, first, you need to create a VRT file with QGIS or through following commands to index all TIF files inside a directory. Make sure you adjust EPSG:2056
to your desired CRS.
gdalbuildvrt raster_mosaic.vrt TIF_Directory/*.tif -addalpha -hidenodata -a_srs EPSG:2056
Then convert the VRT file to COG.
gdal_translate raster_mosaic.vrt raster_cog.tif -of COG -co BLOCKSIZE=512 -co COMPRESS=JPEG -co QUALITY=75 -co BIGTIFF=YES
If the data quality of the raster data is too low, adjust the compression level and set QUALITY=85.
Es können zusätzliche Parameter eingestellt werden:
a_srs
can also be used in gdal_translate command when the CRS is not defined in the source raster dataset.OVERVIEW_RESAMPLING
offer different renderer when zooming out. The default value is NEAREST but you can try also BILINEAR or AVERAGE.NUM_THREADS
will help you to balance between use all your CPU resources or only part. Set ALL_CPUS or define the number of thread you want to use.
Wenn Sie alle zusätzlichen Parameter kombinieren, kann die Befehlszeile wie folgt aussehen:
gdal_translate raster.tif raster_cog.tif -a_srs EPSG:2056 -of COG -co BLOCKSIZE=512 -co OVERVIEW_RESAMPLING=BILINEAR -co COMPRESS=JPEG -co QUALITY=75 -co NUM_THREADS=6 -co BIGTIFF=YES