QGIS QField Lizmap workflow: from the field to the online map, end to end

Published on 23 min read

This guide follows the QGIS QField Lizmap workflow from start to finish, on a single concrete case: a town's inventory of water points. We design the data model in QGIS and PostGIS, publish the map on LizPack Map, send the collection project to LizPack Field, survey with QField online and offline, then check, correct and share the data. Each step links to the guide that covers it in detail, when there is one.

The QGIS QField Lizmap workflow at a glance

Going from the field to the online map takes four free and open source programs that talk to each other: QGIS to design, QField to collect, PostgreSQL and PostGIS to store, Lizmap with QGIS Server to publish. None of them does everything, and that is by design: each one excels at its role, and all of them read the same QGIS project file. The work is therefore less about learning four tools than about making them hold together, with a single data model at the center.

LizPack is an open source geospatial infrastructure: it hosts, connects, updates and monitors these programs, without replacing them and without being their author. In this workflow it provides three pieces: LizPack Map, Lizmap hosting with QGIS Server and PostGIS; LizPack Field, the QField synchronization service; and the QGIS plugin LizPack Publisher, which sends the project to the instance. For the big picture, see what LizPack does.

  1. Design the database and the project in QGIS: PostGIS tables, forms, value lists, constraints, styles.
  2. Publish the viewing map on LizPack Map with LizPack Publisher.
  3. Send the collection project to LizPack Field, where field staff pick it up in QField.
  4. Collect in the field, with or without a network.
  5. Synchronize: with the LizPack Field Pro plan, surveys are written into the project's PostGIS layers.
  6. See the surveys on the LizPack Map map, and in LizPack Viewer, without republishing anything.
  7. Check, correct, validate, then share the validated version.

The common thread is the PostGIS database. The collection project feeds it, the online map reads it, the office corrects it. As long as all three look at the same tables, there is no export, no merging of files and no map to republish after each day in the field. That is what separates a workflow from a pile of tools: data entered once is seen everywhere, in its most recent state.

This guide does not repeat the details of each link. Offline collection is covered in offline field data collection with QField, the database link in syncing QField, PostGIS and Lizmap, and publishing in publishing a Lizmap map from QGIS. Here we look at the whole: the order of the steps, the decisions that commit everything that follows, and the places where the chain most often breaks.

The case we follow: a town's water point inventory

A town wants to know the condition of its water points: wells, boreholes, public standpipes, protected springs. The public works department has an old, incomplete list with no reliable coordinates. Three field agents will cover the neighborhoods over two weeks, often in areas with no mobile coverage. The mayor wants an online map that council members, and eventually residents, can consult, showing which water points work and which need repairs.

The requirements translate as follows:

  • One feature per water point, with its type, condition, use and a photo.
  • Several visits per point: a borehole inspected twice must keep its history, not overwrite the first record.
  • Closed lists for type and condition, so that three agents describe the same reality with the same words.
  • Offline work for a full day, with synchronization in the evening at the office.
  • Validation by the department head before anything is shared publicly.
  • Two maps: a complete working map for the department, and a public map that shows only validated points, without internal fields.

This case is deliberately ordinary. Yet it contains every choice that matters in a QGIS QField Lizmap workflow: a main table and a related table, value lists, constraints, photos, offline work, several agents, validation and two audiences. If you replace water points with street trees, streetlights, farm plots or businesses to survey, the steps stay the same; only the fields change.

The same example illustrates the form in the offline collection guide and the table in the sync guide. Here we extend it with a related table of visits and follow it all the way to publication.

Who does what in the workflow

Before opening QGIS, it helps to know which link carries which responsibility. Most difficulties come from a misplaced expectation: looking in Lizmap for a setting that belongs in QGIS, or expecting QField to make up for a poorly designed data model.

LinkIts role in the workflowWhat you configure there
QGIS DesktopThe design workstation. Everything starts from the QGIS project: layers, styles, forms, Lizmap configuration.PostGIS connection, forms, value lists, constraints, default values, relations, symbology, Lizmap plugin.
QFieldThe free mobile app, on Android and iOS. It opens the QGIS project and displays its forms.Nothing in the model: the agent enters data, takes photos, saves. The behavior comes from the project.
LizPack FieldThe synchronization service, built on the same technology as QFieldCloud. It distributes the project and receives the changes.Projects, collaborators and roles, processing log, received changes. PostGIS link with the Pro plan.
PostgreSQL and PostGISThe heart of the data. Every map and every agent reads and writes the same tables.Tables, primary keys, types, database constraints, spatial indexes, publication views.
LizPack MapHosted Lizmap and QGIS Server, with a PostGIS database and a tile cache, on your subdomain over HTTPS.Access rights in the Lizmap administration, published projects, instance files, collaborators.
LizPack PublisherThe QGIS plugin that connects QGIS Desktop to LizPack Map instances.Validation and publication of the open project, instance files, work in the PostGIS database from the Pro plan.
LizPack ViewerA blank map to compose in the browser, included with LizPack Field.Layers from several projects, WMS or WFS services, styles, sharing by link.

One simple rule emerges from this table: behavior is decided in QGIS, data lives in PostGIS. QField, Lizmap and LizPack Viewer are windows onto the same project and the same database. A badly configured form will be badly configured everywhere; a well-designed table will serve every link.

LizPack adds something the programs taken one by one do not provide: a single account. The LizPack account also opens LizPack Field, so the same login works for Lizmap hosting and for data collection. For the team, that means one login per person, not one per tool.

The plans you need for the complete workflow

The whole workflow can be tested before paying, but the direct link between QField and PostGIS requires a paid plan. Here is what you need, link by link, according to the public pricing grid.

NeedRequired planWhy
Surveys written to PostGISLizPack Field Pro, 15 USD per monthThe PostGIS link is reserved for the Pro plan, which also unlocks unlimited projects and up to 5 collaborators. On the Free plan (200 MB, one project), surveys stay in the project files, which you retrieve in QGIS.
Online Lizmap mapLizPack Map Basic, 10 USD per month, or Pro, 20 USD per monthBasic gives one instance with its QGIS Server. Pro gives two instances, direct database access from QGIS Desktop or pgAdmin, and included updates.
PostGIS databaseThe instance's database, or a dedicated oneThe Basic and Pro plans include PostgreSQL/PostGIS storage tied to the instance. A dedicated database from 1 to 10 GB, billed per GB, stays independent of the instance.
Working on the database from LizPack PublisherLizPack Map ProConnection, files and publishing work on every plan; direct work in the instance's PostGIS database requires the Pro plan.
Composed and shared mapNo extra costLizPack Viewer is included with LizPack Field, on every plan.
Trying the whole workflowLizPack Map FreeA free 30-day trial, no credit card required.

For the town's case, the simplest combination is therefore LizPack Field Pro for collection and the PostGIS link, and LizPack Map Pro for the online map and database access from QGIS. A town that only wants a viewing map, without working on the database from its own computer, can make do with LizPack Map Basic as long as the tables live in a database reachable from QGIS, such as a dedicated database.

Prices at the time of writing, taken from the public pricing grid on 11/10/2026. Current grids are on the pricing page. The choice between the instance's database and a dedicated one is discussed in hosted PostGIS: which service to choose.

Step 1: design the data model in PostGIS

This is the step that commits all the others. A model mistake is paid for three times: in the field, where agents work around an unsuitable form; in the database, which has to be cleaned up; and on the map, which displays inconsistent categories. It is better to spend an extra half day on it, with the department head, before writing a single table.

For the town, we keep three tables in a dedicated schema: a reference list of structure types, the water point table and the visit table, linked to the points. The reference list lets you add a type without touching the project; the visit table keeps the history.

CREATE SCHEMA IF NOT EXISTS eau;

CREATE TABLE eau.type_ouvrage (
  code text PRIMARY KEY,
  libelle text NOT NULL
);

INSERT INTO eau.type_ouvrage VALUES
  ('puits', 'Well'),
  ('forage', 'Borehole'),
  ('borne', 'Standpipe'),
  ('source', 'Protected spring');

CREATE TABLE eau.point_eau (
  id serial PRIMARY KEY,
  uuid uuid NOT NULL DEFAULT gen_random_uuid() UNIQUE,
  type_ouvrage text NOT NULL REFERENCES eau.type_ouvrage(code),
  nom text,
  quartier text,
  usage text,
  photo text,
  statut text NOT NULL DEFAULT 'a_valider',
  cree_le timestamptz DEFAULT now(),
  geom geometry(Point, 4326) NOT NULL
);
CREATE INDEX ON eau.point_eau USING gist (geom);

CREATE TABLE eau.visite (
  id serial PRIMARY KEY,
  point_uuid uuid NOT NULL REFERENCES eau.point_eau(uuid),
  date_visite date NOT NULL DEFAULT current_date,
  etat text NOT NULL,
  debit_estime text,
  agent text,
  remarque text,
  photo text
);

CREATE VIEW eau.point_eau_public AS
  SELECT id, type_ouvrage, nom, quartier, geom
  FROM eau.point_eau WHERE statut = 'valide';

A few choices deserve an explanation, because they serve the rest of the workflow:

  • An auto-incrementing primary key (serial): the Lizmap documentation requires it for online editing, and it prevents two agents from creating the same identifier.
  • A uuid for the relation: a visit is attached to its point by an identifier generated at entry time, which does not depend on the database numbering. A point created offline and its visits therefore stay linked until synchronization.
  • NOT NULL and a foreign key: the database rejects an unknown structure type or a point without geometry, even if a form were bypassed.
  • A status field with a default value: every new survey arrives as a_valider (to be validated), and only the office switches it to valide.
  • A publication view: the public map reads the view, which shows neither unvalidated points nor internal fields.
  • Field names without spaces or accents: Lizmap requires it for editable layers, and the SQL stays readable.

The coordinate reference system is chosen once and for all. The code above uses WGS 84 (EPSG:4326), which every link reads; a town whose reference data uses a national projection may prefer that one, as long as it sticks to it in every table. The gen_random_uuid function is built into recent PostgreSQL versions; LizPack's dedicated databases run PostgreSQL 17 with PostGIS 3.5, and the uuid-ossp extension is already installed if you prefer its functions.

Where do you create these tables? From the QGIS DB Manager, from pgAdmin, or from QGIS with LizPack Publisher, which lets you work in the instance's PostGIS database from the Pro plan. The connection uses SSL with the host, port and credentials provided when the database was created.

Step 2: forms, value lists and constraints in QGIS

Once the tables exist, add them to the QGIS project as PostGIS layers and configure their forms in each layer's properties, Attributes Form tab. This configuration travels with the project: QField displays it on the phone, and Lizmap reuses it for online editing. You set it up once and benefit from it everywhere.

QField supports the widgets that data collection needs. According to its documentation, these include:

  • Value Map: a closed list entered in the project, shown as a drop-down or as buttons. For the town, it is the right choice for condition: good, degraded, out of service.
  • Value Relation: a list read from another table, with optional search and multiple selection. For the structure type, it reads the type_ouvrage table: adding a type in the database adds it to the form.
  • Date/Time, Checkbox and Attachment for photos, audio, video, documents and sketches.
  • Relation Editor: from a water point's record, the agent adds a visit, which automatically inherits the point's identifier.

Constraints are set field by field, with a QGIS expression and a custom message. QField refuses to save until every constraint is met. For the town: type and condition mandatory, an estimated flow only if the structure is in service, a remark mandatory if the condition is out of service. A soft constraint shows a warning without blocking, useful to flag an unusual value without forbidding it.

Default values prefill the record with an expression: today's date, the user's name, the neighborhood computed by intersecting with a neighborhood layer. QField accepts variables specific to the GNSS position and to synchronization, which makes it possible, for example, to record the accuracy of the position. Its documentation advises against applying a default value on update to a primary key: let the database do the numbering.

For the relation between points and visits, declare it in the project properties, Relations tab: parent layer point_eau, field uuid; child layer visite, field point_uuid. Then add the relation editor to the water point form, in drag-and-drop mode, so the list of visits appears in the record. In the field, the agent opens the borehole, sees its past visits and adds a new one.

Finally, organize the form into tabs or groups: identification, condition, photos, visits. A short record, in the order in which the agent observes things, is filled in faster and with fewer errors than a long list of fields. Hide technical fields such as id, uuid and statut, which have no place on the phone. For a detailed example of a water point form, see offline field data collection with QField.

Test the form in QGIS before sending it: create three or four dummy points, try to break each constraint, add a visit. What QGIS rejects, QField will reject; what QGIS lets through, QField will too.

Step 3: publish the online map on LizPack Map

It may seem odd to publish the map before collecting anything. It is, however, the safest order: the online map reads the PostGIS tables, empty at first, and will fill itself. By publishing early, you check that connections, styles and rights work, and the mayor sees the first points appear right after the first synchronization.

You usually prepare two QGIS projects from the same tables: a collection project for QField, with complete forms and basemaps usable offline; and a viewing project for Lizmap, with polished styles, readable information popups and the publication view. The viewing project can itself offer two maps: a working map restricted to the department, reading point_eau and visite, and a public map that reads only point_eau_public.

  1. Create the LizPack Map instance: the name you choose becomes your subdomain, and the instance is ready in about four minutes, over HTTPS.
  2. In QGIS, configure the viewing project with the Lizmap plugin, as for any Lizmap publication: visible layers, popups, tools.
  3. Install LizPack Publisher from the official QGIS plugin repository, sign in with your LizPack credentials and choose the instance.
  4. Validate and publish the open project: it is sent to the instance with its data, and the map is online in Lizmap.
  5. Set access rights in the Lizmap administration: the working map for the department's group, the public map for everyone or for council members.

Because the layers are in PostGIS, publishing sends only the project and its supporting files; the data stays in the database, which Lizmap reads directly. That is what will later let you see surveys without republishing. If the project also contains file layers, such as a raster basemap or a GeoPackage of boundaries, LizPack Publisher sends them along with it.

If office staff need to correct records from the browser, enable online editing in the Lizmap plugin. The Lizmap documentation sets the conditions: a PostgreSQL layer, published as WFS with its primary key, an auto-incrementing key, field names without spaces. You choose the allowed actions (create, edit attributes, edit geometry, delete) and, if needed, the list of authorized groups. It also recommends not using the QGIS authentication system for an editable layer, but storing credentials in the project or in a PostgreSQL service file. Edits made in Lizmap are written to the same table as those from QField.

The step-by-step publishing process, with common pitfalls, is in publishing a Lizmap map from QGIS. For styling, a theme from the marketplace can be copied for your maps, and Lizmap modules add dashboards to the portal.

Step 4: send the project to LizPack Field and collect with QField

The collection project now heads to the phones. With LizPack Field, you send it from QGIS: it becomes available to the project's collaborators, who open it in the official QField app, on Android or iOS. The LizPack account also opens LizPack Field; agents have only one login to remember.

In the LizPack Field dashboard, invite the three agents as project collaborators and assign them a role. The Pro plan allows up to 5 collaborators, which covers the town's case with the department head and a backup. The dashboard then shows the processing log and the received changes, so you can follow each person's contribution.

Before leaving, each agent opens the project on their phone with a network connection, at the office. The project is then stored on the device: layers, forms, styles and basemaps prepared for offline use. In the field, they enter surveys without a connection; the surveys are kept locally and sent as soon as a connection is available.

QGIS offers several ways to handle each layer when a project goes to the field. The documentation of QFieldSync, QField's QGIS plugin, describes five: copy a file layer, keep the existing copy, offline editing, which copies the layer and records every change in a log applied to the source at synchronization, direct access to the data source for layers such as WMS, WFS or PostGIS, and removing the layer. For collection without a network, data entry layers must use offline editing; a WMS basemap with direct access will not display without a network, so prefer an embedded basemap.

  • Basemaps: plan for an embedded basemap covering the town rather than an online one. A basemap that is too large weighs down the project; clip it to the extent of the neighborhoods.
  • Photos: set the image size in the attachment widget; lighter photos sync faster in the evening.
  • Position: check the accuracy shown by QField before saving a point, especially under tree cover or near buildings.
  • Battery: a lit screen and active positioning use a lot of power; one external battery per agent is a modest expense.

Choosing phones, organizing the day and dividing neighborhoods among agents are covered in offline field data collection with QField. To compare QField with other collection tools, see QField or ArcGIS Field Maps.

Step 5: sync to PostGIS and see the surveys on the map

In the evening, at the office or as soon as they are back in coverage, the agent synchronizes from QField. The changes go up to LizPack Field. With the Pro plan, LizPack Field writes them directly into the project's PostGIS layers: new water points into point_eau, visits into visite, each linked to its point by the uuid.

From then on, there is nothing more to do to see the surveys. The LizPack Map map reads the same tables: it displays the current state on the next load, without republishing. If your collection layers are in a PostGIS database hosted by LizPack, the Lizmap map that displays them updates with every synchronization, with no manual step. The department sees the day's points on its working map; the public map, on the other hand, does not show them until they are validated, since it reads the publication view.

LizPack Viewer offers a second window onto the same data, without a Lizmap project. You start from a blank map, add layers from the LizPack Field projects you have access to, plus WMS, WMTS, WFS services or an online GeoJSON. For the town, it is the department head's handy tool: they compose a map of the water points over a reference basemap, measure, select, check the attribute table and statistics, then save it, with its styling, among their saved maps. They can share it by link, keeping it private, opening it to LizPack Field accounts that have the link, or to everyone, choosing which layers and fields are visible.

When should you prefer one over the other? The LizPack Map map is the official map: a subdomain, rights managed by group in the Lizmap administration, online editing, printing and modules. LizPack Viewer is for composing quickly, combining several projects and sharing a one-off view. Both read the same surveys; neither copies the data. To go further, see creating and sharing an online map.

On the LizPack Field Free plan, surveys stay in the project files. You then retrieve them in QGIS and load them into the database yourself, which brings back a manual step. The PostGIS link is precisely what removes that step. The details of the link and how to check it are in syncing QField, PostGIS and Lizmap.

Step 6: check, correct and share

A survey campaign is not finished when the points are in the database. You still need to check that they are right, correct those that are not, then decide what becomes public. This step is often skipped; yet it is what gives the published map its value.

Check. A few simple queries, run every evening from QGIS or pgAdmin, are enough to catch the essentials:

-- Points without a visit
SELECT p.id, p.nom FROM eau.point_eau p
LEFT JOIN eau.visite v ON v.point_uuid = p.uuid
WHERE v.id IS NULL;

-- Likely duplicates: two points less than 10 meters apart
SELECT a.id, b.id FROM eau.point_eau a
JOIN eau.point_eau b ON a.id < b.id
AND ST_DWithin(a.geom::geography, b.geom::geography, 10);

-- Today's surveys per agent
SELECT agent, count(*) FROM eau.visite
WHERE date_visite = current_date GROUP BY agent;

Correct. Corrections are made at the source, in the database, through one of three paths: in QGIS Desktop, on the PostGIS layer; in the LizPack Map map, if online editing is enabled for the department's group; or, for an error spotted on site, by the agent during a new visit. Since everyone writes to the same tables, a correction is seen everywhere. Avoid, however, correcting the same point at the office and in the field on the same day: set a rule, for example that the office only touches points that are already synchronized and validated.

Validate. The department head switches the status of checked points to valide, one by one in the working map or in bulk with SQL. That action is what makes them appear on the public map, since the publication view shows only validated points. Validation thus becomes a visible, traceable step, not an informal review.

Share. The public map has been online since step 3; it fills up as points are validated. You can then open it to everyone in the Lizmap administration, share a LizPack Viewer map by link or embed it in the town's website with the embed code provided, print a map to PDF or export to GeoJSON from LizPack Viewer. Layers published by Lizmap are also served as WMS and WFS by QGIS Server, so a partner can display them in their own GIS.

To follow the campaign over time, Lizmap modules offer dashboards composed in QGIS and recalculated on every display: number of points by condition, by neighborhood, visits per week. See Lizmap dashboards.

Common mistakes in the QGIS QField Lizmap workflow

These mistakes come back from one project to the next. Almost all of them come from a step rushed at the beginning, and they are paid for later.

MistakeWhat you seeWhat to do
Collection layers as local filesSurveys never reach PostGIS, the Lizmap map stays empty.Put the data entry layers in PostGIS and add the tables to the project as PostGIS layers.
LizPack Field Free planSurveys stay in the project files.Move to the Pro plan for the PostGIS link, or retrieve the files in QGIS.
No auto-incrementing primary keyConflicts between agents, editing impossible in Lizmap.A serial key in every table, a uuid identifier for relations.
Relation on the numeric identifierVisits entered offline lose their water point.Link through a uuid generated at entry time.
Open-ended value listsThree spellings for the same condition.Value Map or Value Relation, plus a database constraint.
Online basemap onlyBlank screen in the field without a network.Embed a basemap clipped to the extent of the area.
Project not opened before leavingThe agent does not have the project in the field.Open and load the project at the office, with a network, on every phone.
Changing the model mid-campaignMissing fields, rejected surveys.Freeze the model before leaving; any change goes through a full sync and then a new send.
Public map on the raw tableUnchecked points and internal fields visible to everyone.Publish a publication view filtered on validated points.
Database credentials in QGIS authenticationLayer not editable in Lizmap.Credentials in the project or a PostgreSQL service file, as Lizmap recommends.

The last mistake, a quieter one, is never testing the whole chain before launch. A complete round trip with a single agent, a single point and a single visit, all the way to the public map, reveals in an hour what would cost a week in the field.

Checklist, from the field to the online map

Tick these in order, before the first day of collection:

  • The data model is validated with the department: tables, fields, lists, relations, status.
  • The tables are created in PostGIS, with an auto-incrementing primary key, typed geometry, spatial index and constraints.
  • The publication view shows only validated points and public fields.
  • Forms are configured in QGIS: Value Map, Value Relation, constraints with messages, default values, relation editor, technical fields hidden.
  • The form has been tested in QGIS with dummy points, deleted afterward.
  • The viewing project is configured with the Lizmap plugin and published on LizPack Map with LizPack Publisher.
  • Rights are set in the Lizmap administration: working map for the department, public map for its audience.
  • Online editing, if useful, is limited to the relevant groups.
  • The LizPack Field Pro plan is active, and the collection project has been sent to it from QGIS.
  • Agents are invited as collaborators, with a role.
  • Every phone has opened the project at the office, with a network; an embedded basemap covers the area.
  • A complete round trip has been done: offline entry, synchronization, point visible on the working map, validation, point visible on the public map.
  • The evening check queries are ready, and everyone knows the correction rule.

Once everything is ticked, the workflow runs on its own: agents survey, sync in the evening, and the working map fills up without intervention. The office's work comes down to what requires human judgment: checking, correcting, validating. That is the whole point of making QGIS, QField, PostGIS and Lizmap hold together end to end.

To get started, a free 30-day LizPack Map trial, with no credit card, and the LizPack Field Free plan are enough to build the project and test the form; the PostGIS link can then be tested with the Pro plan. The account steps are described in getting started with LizPack.

Frequently asked questions

How do you connect QGIS, QField and Lizmap?

Put the collection layers in a PostGIS database, send the collection project to a sync service such as LizPack Field, and publish a project that reads the same tables on Lizmap. With the LizPack Field Pro plan, surveys are written to PostGIS and the Lizmap map shows them without republishing.

No, if the layers are in PostGIS. Lizmap reads the database directly and shows the current state on the next load. You only republish when you change the QGIS project itself.

Yes. The project is stored on the device, surveys are kept locally and sent as soon as a connection is available. Plan for an embedded basemap, because an online basemap does not display without a network.

Yes. QField displays the QGIS project's forms, with Value Map, Value Relation, dates, checkboxes, attachments, the relation editor, constraints and default values.

At LizPack, the LizPack Field Pro plan, at 15 USD per month at the time of writing. It also unlocks unlimited projects and up to 5 collaborators. On the Free plan, surveys stay in the project files.

Solutions mentioned

All guides

Ready to deploy?

A 30-day free trial, no commitment and no credit card.