QField for QGIS

The mobile GIS application from OPENGIS.ch combines a minimalistic design with advanced technology for easy and comfortable data collection from the field to the office.

QField is built on the open source professional project QGIS and allows users to configure maps and forms in QGIS on their workstation and deploy them in the field via QField. Benefit from QGIS data suppliers – OGR, GDAL, PostGIS, etc. – QField supports a wide range of vector and grid formats.

Documents can be stored locally or accessed remotely and synchronized via WiFi, USB cable or a mobile network.

Enter the Google game


For Android

Fast and dirty

Use the pre-certified QField SDK.

# get the last tag from https://hub.docker.com/r/opengisch/qfield-sdk/tags/
cd QField

updating git sub-module
git sub-module

docker run -v $(pwd):/usr/src/qfield docker.io/opengish/qfield-sdk:$TAG /usr/src/qfield/scripts/docker-build.sh –rm

The apk is then placed in the build-docker/out/outputs/apk subfolder.

Walking the difficult road

Building OSGeo4A

CD QField

updating git sub-module
git sub-module

cp config.pri.default config.pri
# edit config.pri

This has the advantage that you can build and deploy directly from QtCreator.

For desktop computers

Create a QField for the office environment :

  • Get the QGIS development libraries.

git update submodule
cd QField in submodule

cp config.pri.default config.pri
# edit config.pri

  • Open CMakeList.txt with QtCreator (installed during OSGeo4A installation).
  • Hit Building.

When creating your own QGIS assembly, use the following variables: QGIS_ANALYSIS_LIBRARY, QGIS_CORE_LIBRARY, QGIS_INCLUDE_DIR and QGIS_PLUGIN_DIR.

On the control system X

In addition to the above steps, add the following variables in the QtCreator building environment (accessible via Projects > Build) :

  • QGIS_INSTALL_PATH : The same value as in the config.pri file (can be /usr/local/opt/qgis3/ or the local build install directory).
  • Add DYLD_LIBRARY_PATH :_QGIS_INSTALL_PATH_/QGIS.app/Contents/Frameworks/qgis_core.framework/Versions/Current (replace _QGIS_INSTALL_PATH_)

Wrong version number output

If you get an invalid version number in -mmacosx-version-min=, you must hardcode the minimum bet target by setting version_min_flag = -m$${version_identifier}-version-min=10.10 in /usr/local/opt/qt/mkspecatures/features/mac/default.post.prf.

Single line control :

gsed -i s/version_min_flag = -m$${version_identifier}-version-min=$${version_min_flag = -m$$${version_identifier}-version-min=10.10/ /usr/local/opt/qt/mkspecs/features/mac/default_post.prf

In Qt Creator > Projects > Execute >

  • Using the debugging version of the framework
  • Add a custom insertion step: _QField_SOURCE_DIR_/scripts/mac_deploy.sh with argument ${QGIS_INSTALL_PATH}.
  • In the debugger settings, select the Enable QML checkbox.

Other matters

If you have a qmake problem that does not find the correct SDK, replace in /usr/local/opt/qt/mkspecs/features/mac/default_post.prf $$QMAKE_MAC_SDK_PATH (3 cases) with /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk.


qfield source,qfield code,qfield server,qfield postgis,qfield form,qfield download,gis for android,qfield tutorial,qgis software download,qgis full form,qgis tutorial,qgis 3.12 tutorial pdf,qgis 3.16 tutorial pdf,qgis 3.14 pi tutorial pdf,qgis 3.16 user guide pdf,qgis documentation(pdf),qgis 3.14 user guide pdf,qfield,qgis in android,qfiled,qfield review

You May Also Like

🥇 Configure Telegram Bot  Step by Step Guide ▷ 2021

Telegram is a messaging service that allows you to create your own…

🥇 Does MEGADEDE close?  How to enter? + Alternatives + List ▷ 2021

It is a portal where people go to watch videos, movies or…

How to automate virtual machine configuration with cloud-init in RedHat Virtualization –

RedHat Enterprise Virtualization is nothing but a virtualization platform for use on…

How to Uninstall or Remove Opera from Mac

I write a lot of articles about how to remove programs from…