<div dir="ltr"><div><span style="color:rgb(85,85,85);white-space:nowrap">Regina!</span> <span style="color:rgb(0,0,0);font-size:13px;white-space:pre-wrap;background-color:rgba(7,28,71,0.05)"><br></span></div><span style="color:rgb(0,0,0);font-size:13px;white-space:pre-wrap;background-color:rgba(7,28,71,0.05)">I am not a big expert in QGis and PostGIS. </span><div><span style="color:rgb(0,0,0);font-size:13px;white-space:pre-wrap;background-color:rgba(7,28,71,0.05)">Maybe I'm doing something wrong? </span></div><div><span style="color:rgb(0,0,0);font-size:13px;white-space:pre-wrap;background-color:rgba(7,28,71,0.05)">Either I load the rasters wrong in PostGIS, or I connect them incorrectly in QGis?</span><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 14 дек. 2022 г. в 20:26, Regina Obe <<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-668269139583215002"><div lang="EN-US"><div class="m_-668269139583215002WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">That’s a bummer. You know how long that has been? I recall it working when postgis raster access from QGIS was more or less a straight connection to GDAL. I think that changed in the past 2-3 years or so.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt"><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Alex German<br><b>Sent:</b> Wednesday, December 14, 2022 1:36 AM<br><b>To:</b> PostGIS Users Discussion <<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a>><br><b>Subject:</b> Re: [postgis-users] Qgis + PostGis. Low operating speed.<u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">Thanks, Regina! On the Qgis forum, I was told that overviews from PostGIS to Qgis do not work.</span><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">ср, 14 дек. 2022 г. в 09:02, Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>>:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">That comes as a big surprise to me. It’s been a while since I’ve used QGIS on raster, but last time I tried it was able to read the overview tables.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I know there was a time not too long ago when QGIS was revising how it queries PostGIS raster. I forget what that revision was about, if it was just changing how it used GDAL to query PostGIS or getting rid of GDAL in some cases.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">So this might have caused an issue with its reading of overviews.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I’ll try to test this out with latest QGIS in sometime this or next week to verify what the issue is here.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regina</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt"><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Alex German<br><b>Sent:</b> Tuesday, December 13, 2022 4:12 AM<br><b>To:</b> PostGIS Users Discussion <<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a>><br><b>Subject:</b> Re: [postgis-users] Qgis + PostGis. Low operating speed.</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">QGis does not pick up overviews. </span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">Separately, overviews are loaded very quickly. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">I.e. if I load o_16_t6 in qgis, then the download speed is excellent. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">In the properties of the table, there are overviews.</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">вт, 13 дек. 2022 г. в 12:29, Alex German <<a href="mailto:gr1047@gmail.com" target="_blank">gr1047@gmail.com</a>>:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt"><div><p class="MsoNormal"><img border="0" width="562" height="135" id="m_-668269139583215002m_1638112875796003468_x005f_x0000_i1025" src="cid:18514ce4bb34cff311" alt="image.png"><u></u><u></u></p><div><p class="MsoNormal">SRID in postgis 4326<u></u><u></u></p></div><div><p class="MsoNormal"><img border="0" width="194" height="159" id="m_-668269139583215002m_1638112875796003468_x005f_x0000_i1026" src="cid:18514ce4bb35b16b22" alt="image.png"><u></u><u></u></p></div><div><p class="MsoNormal">SRID in QGis 4326<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">вт, 13 дек. 2022 г. в 12:05, Bo Victor Thomsen <<a href="mailto:bo.victor.thomsen@gmail.com" target="_blank">bo.victor.thomsen@gmail.com</a>>:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt"><div><p>Is the rasters in same projection (CRS) as the QGIS project ? <u></u><u></u></p><pre>Med venlig hilsen / Best regards<u></u><u></u></pre><pre> <u></u><u></u></pre><pre>Bo Victor Thomsen<u></u><u></u></pre><div><p class="MsoNormal">Den 13-12-2022 kl. 07:50 skrev Alex German:<u></u><u></u></p></div><blockquote style="margin-top:5pt;margin-bottom:5pt"><div><p class="MsoNormal"><span style="font-size:10pt;color:black">I did everything as described in the documentation. </span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">raster2pgsql -I -C -e -Y -F -s 4326 -t 128x128 -l 2,4,8,16,32 "d:\Temp\060 tiff\res\t1.tif" testrastr.t1 | psql. </span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">The download is very slow.</span><u></u><u></u></p></div></div><div><p class="MsoNormal"><a href="https://youtu.be/LULngZIs4nc" target="_blank">https://youtu.be/LULngZIs4nc</a><span style="font-size:10pt;color:black"> </span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal">вт, 13 дек. 2022 г. в 09:45, Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>>:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt"><div><div><div><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">PostGIS raster sadly doesn’t use the pyramids in the Tifs. Or if it does no one told me.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You should build raster overviews using the raster2pgsql –l switch. </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="https://postgis.net/docs/using_raster_dataman.html#RT_Raster_Loader" target="_blank">https://postgis.net/docs/using_raster_dataman.html#RT_Raster_Loader</a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><pre><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Doc example is this which builds a level 2 and 4 pyramid</span><u></u><u></u></pre><pre>raster2pgsql -I -C -e -Y -F -s 26986 -t 128x128 -l 2,4 bostonaerials2008/*.jpg aerials.boston | psql -U postgres -d gisdb -h localhost -p 5432<u></u><u></u></pre><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">QGIS knows how to use the overviews built that way and should be much faster to view in QGIS</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:10pt;color:black">raster2pgsql -s 4326 -t 256x256 -C -I -F "d:\Temp\060 tiff\res\OCG_t1.tif" OCG_t1 -R| psql. </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p><div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt"><div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> postgis-users [mailto:<a href="mailto:postgis-users-bounces@lists.osgeo.org" target="_blank">postgis-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Alex German<br><b>Sent:</b> Monday, December 12, 2022 11:34 PM<br><b>To:</b> PostGIS Users Discussion <<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a>><br><b>Subject:</b> [postgis-users] Qgis + PostGis. Low operating speed.</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">Hello everyone!</span><u></u><u></u></p><div><p class="MsoNormal"><span style="font-size:10pt;color:black">I have a GeoTIFF. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">I built the pyramids in an external file using GDAL </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">"gdaladdo d:\Temp\060 tiff\res\t1.tif -r lanczos -ro 2 4 8 16 32 64 128 256 512. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">Uploaded to PostGIS using </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">raster2pgsql -s 4326 -t 256x256 -C -I -F "d:\Temp\060 tiff\res\OCG_t1.tif" OCG_t1 -R| psql. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">The number of files is more than 1000. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">When trying to load tables in QGis, the loading is very slow. </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:10pt;color:black">At the same time, downloading to QGis from files is fast. Question. What is not configured correctly and how to speed up the download to Qgis from PostGIS?</span><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Alex German<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div></div></div><p class="MsoNormal">_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><u></u><u></u></p></div></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Алексей Герман <u></u><u></u></p><div><p class="MsoNormal">8-905-86-00-416<u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><pre>_______________________________________________<u></u><u></u></pre><pre>postgis-users mailing list<u></u><u></u></pre><pre><a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><u></u><u></u></pre><pre><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><u></u><u></u></pre></blockquote></div><p class="MsoNormal">_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Алексей Герман<u></u><u></u></p><div><p class="MsoNormal">8-905-86-00-416<u></u><u></u></p></div></div></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Алексей Герман<u></u><u></u></p><div><p class="MsoNormal">8-905-86-00-416<u></u><u></u></p></div></div></div></div></div><p class="MsoNormal">_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br><a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><u></u><u></u></p></div></blockquote></div><p class="MsoNormal"><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <u></u><u></u></p><div><p class="MsoNormal">Алексей Герман<u></u><u></u></p><div><p class="MsoNormal">8-905-86-00-416<u></u><u></u></p></div></div></div></div></div>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br>
</div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Алексей Герман<div>8-905-86-00-416</div></div>