<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><font face="times new roman, new york, times, serif"><span style="font-size: 12pt;">Hi Mathias:</span></font><div style="color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 12pt;"><br></div><div style=""><div style=""><font face="times new roman, new york, times, serif">Sorry for the delay in response.</font></div><div style=""><font face="times new roman, new york, times, serif"><br></font></div><div style=""><font face="times new roman, new york, times, serif">I've been testing the raster load from geopackage, and thank you very much for the information.</font></div><div style=""><font face="times new roman, new york, times, serif">Indeed, the only way I can use rasters in QFIELD is by loading from the windows file browser. This is not a problem, but it has a drawback.</font></div><div style=""><font face="times new roman, new york, times, serif">This raster loading system also does not work when there is more than one raster layer in the same geopackage.</font></div><div style=""><font face="times new roman, new york, times, serif">In any case, the problem is largely solved, as using geopackage is the best option for using rasters in QFIELD.</font></div><div style=""><font face="times new roman, new york, times, serif"><br></font></div><div style=""><font face="times new roman, new york, times, serif">Best regards</font></div><div style=""><font face="times new roman, new york, times, serif"><br></font></div><div style=""><font face="times new roman, new york, times, serif">Emilio</font></div><div style=""><font face="times new roman, new york, times, serif"><br></font></div><div style=""><br></div><br><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: "times new roman", "new york", times, serif; font-size: 12pt;"><div style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 12pt; font-weight: normal; font-style: normal; text-decoration: none;"><b>De: </b>"Matthias Kuhn" <matthias@opengis.ch><br><b>Para: </b>"Emilio Abad Vidal" <eav@cesga.gal>, users@lists.qfield.org<br><b>Enviados: </b>Martes, 28 de Enero 2020 17:58:38<br><b>Asunto: </b>Re: [Users] No sync geopackage raster layer to QFIELD<br><br>
<p>Hi Emilio,</p>
<p><br>
</p>
<p>How did you add your raster file to the QGIS project?</p>
<p><br>
</p>
<p>In the past, I noticed some differences between drag and drop
from the explorer to QGIS and using the browser or the add layer
dialog.</p>
<p><br>
</p>
<p>Best regards</p>
<p>Matthias<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 1/14/20 6:23 PM, Emilio Abad Vidal
wrote:<br>
</div>
<blockquote cite="mid:1118933657.641676.1579022595579.JavaMail.root@mail.cesga.es">
<style>p { margin: 0; }</style>
<div style="font-family: times new roman,new york,times,serif;
font-size: 12pt; color: #000000">
<div style=""><font face="times new roman, new york, times,
serif">Hi, I have a problem with exporting raster layers
stored in a geopackage, to a QFIELD project.</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">I work with version 3.4.12 of QGIS and I have version
3.5.1 of QFIELD Sync installed.</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">The process I follow is as follows:</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">1º I convert a TIF image into a layer of a geopackage</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">gdal_translate --config OGR_SQLITE_SYNCHRONOUS OFF
-co APPEND_SUBDATASET=YES -co RASTER_TABLE:foto -co
TILE_FORMAT=PNG_JPEG -tr 0.5 0.5 -a_srs EPSG:25829 -of GPKG
foto.tif geopackage01.gpkg</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">2º I build the pyramids of the image</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">gdaladdo --config OGR_SQLITE_SYNCHRONOUS OFF -r
AVERAGE geopackage01.gpkg:foto 2 4 8 16 32 64 128 256</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif">3º I save the QGIS project, and activate the QFIELD
Sync plug-in in the project synchronization configuration
options. In the layers list, the one within the geopackage,
has the option of <b>no action</b> and does not allow it to
be included in the project that will be used by QFIELD.</font></div>
<div><font face="times new roman, new york, times, serif"><br>
</font></div>
<div><font face="times new roman, new york, times, serif">I
think the statements used to create the geopackage are
correct, as it does not give any error in QGIS. If I load
the original layer in TIF, I can synchronize it without
problem. It does not happen to me with a layer only, but it
is with any raster that I load from geopackage.</font></div>
<div><font face="times new roman, new york, times, serif"><br>
</font></div>
<div><font face="times new roman, new york, times, serif">Can
anyone have any idea what can happen?</font></div>
<div><font face="times new roman, new york, times, serif"><br>
</font></div>
<div><font face="times new roman, new york, times, serif">Thanks
for the attention</font></div>
<div><font face="times new roman, new york, times, serif"><br>
</font></div>
<div><font face="times new roman, new york, times, serif">Emilio</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
<div style=""><font face="times new roman, new york, times,
serif"><br>
</font></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.qfield.org" target="_blank">Users@lists.qfield.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qfield.org/listinfo.cgi/users-qfield.org" target="_blank">http://lists.qfield.org/listinfo.cgi/users-qfield.org</a>
</pre>
</blockquote>
</div><br></div></div></body></html>