qfieldsync icon indicating copy to clipboard operation
qfieldsync copied to clipboard

Sync from comand line

Open jlgranda opened this issue 5 years ago • 6 comments

¿Hi everybody, is posible run qfieldsync from command line?

jlgranda avatar Jun 18 '20 12:06 jlgranda

This is not officially supported.

It should be possible to create something based on what's done in the tests (https://github.com/opengisch/qfieldsync/blob/master/qfieldsync/tests/test_export.py)

m-kuhn avatar Jun 18 '20 12:06 m-kuhn

Thank you for advance, I try it and comment later.

jlgranda avatar Jun 18 '20 17:06 jlgranda

Hi @m-kuhn, I deriving a script base on your recomendation. Thank you.

The script run until https://github.com/opengisch/qfieldsync/blob/5d0bb4b675ffbd20c2c5dec7bd1c08b02e945501/qfieldsync/core/offline_converter.py#L156

in this point get: Segment violation (generated 'core')

In background there are create copy of project and base data.gpkg (without content from project)

Any Advance. qfieldsync-bin.tar.gz

jlgranda avatar Jun 24 '20 14:06 jlgranda

Hi every body, follow QGIS code into qgsofflineediting.cpp, I believe the problem is line 108: emit progressStarted(); I no sure, but I believe at this point throw Segment Fault (generated 'core'). Any advice?

jlgranda avatar Jun 30 '20 16:06 jlgranda

Hello again, I'm still in the process of generating the project offline from command line. I've solved the previous questions.

I managed to generate the project offline without generating base maps. But this requires connection.When I try to generate the project with a base map. At online_converter.py line 112, I get:

QFieldSync requires processing. Creating a basemap with QFieldSync requires the processing plugin to be enabled. Processing is not enabled on your system. Please go to Plugins > Manage and Install Plugins and enable processing.

The qfieldsync plugin works correctly in QGIS UI and check for precessing plugin and this one exists.

Attached plugin source updates. qfieldsync.zip

jlgranda avatar Jul 01 '20 02:07 jlgranda

This is more of a feature request for libqfieldsync's offline converter.

suricactus avatar Jan 20 '22 01:01 suricactus