サポート対象のデータフォーマット¶
QField supports a wide variety of formats via QGIS data providers and GDAL. This page offers a non-exhaustive list of supported data formats.
データフォーマット | サポートの可否 | 備考 |
---|---|---|
Spatialite | ||
Geopackage | ||
WMS | ||
WFS | ||
WFS-T | ||
PostGIS | ||
MBTiles | ||
Shapefile | ||
Tiff | ||
JPEG2000 | ||
WEBP | ||
ECW | ライセンスにより使用が制限されています。 | |
MrSID | ライセンスにより使用が制限されています。 |
もしこの表にお気に入りのデータフォーマットが見当たらない場合は、QFieldで動作するかどうかチェックし、上記の表を更新 して結果を共有してくださればと思います。もしお気に入りのデータフォーマットが機能しない場合は、 問題の報告を行ってください。データフォーマットの実装を喜んでお手伝いいたします。
ラスターデータ¶
ラスターデータはとても大きなサイズになる可能性があります。非圧縮のTIFFファイルを扱う場合、多くの場合数GBのデータになるでしょう。 特にモバイルデバイスでは、これは非効率的といえます。
COG(クラウド最適化GeoTIFF)を使用する¶
The Cloud Optimized Geotiff (COG) format will offer best user experience for offline basemaps. Combined with JPEG compression, it will reduce the raster size.
以下のコマンドはraster.tif
というファイルをJPEG圧縮を使ってCOGファイルraster_cog.tif
に変換します。
gdal_translate raster.tif raster_cog.tif -of COG -co BLOCKSIZE=512 -co COMPRESS=JPEG -co QUALITY=75 -co BIGTIFF=YES
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.
いくつかの追加パラメータを設定することができます:
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.
追加のパラメータをすべて組み合わせると、コマンドラインは次のようになるでしょう:
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