[QGIS-Developer] QGIS FCGI Server 3.9.0 - JPEG renders but PNG empty

Tom Vanzieleghem tom.vanzieleghem at gmail.com
Tue Oct 1 12:50:23 PDT 2019


Hi Tomas,

Thank you for your suggestions but in the meantime i fixed the issue that was due to different versions of the libpng library on my system.

I changed the compilation of GDAL to build against the external (system) libpng library instead of the internal one provided with the GDAL source.

Issue was mentioned and fixed before in
http://osgeo-org.1560.x6.nabble.com/gdal-dev-compile-gdal-using-the-libpng-1-6-26-td5342371.html

Best regards,

Tom


> Op 30 sep. 2019 om 21:00 heeft qgis-developer-request at lists.osgeo.org het volgende geschreven:
> 
> Send QGIS-Developer mailing list submissions to
>    qgis-developer at lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://lists.osgeo.org/mailman/listinfo/qgis-developer
> or, via email, send a message with subject or body 'help' to
>    qgis-developer-request at lists.osgeo.org
> 
> You can reach the person managing the list at
>    qgis-developer-owner at lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of QGIS-Developer digest..."
> 
> 
> Today's Topics:
> 
>   1. Plugin [923] Azimuth Measurement approval    notification.
>      (noreply at qgis.org)
>   2. Re: Porting Create Grid algorithm to C++ (Nyall Dawson)
>   3. Re: Updating osgeo4w to qt 5.12.4/5.13.1 (Nyall Dawson)
>   4. Re: QGIS FCGI Server 3.9.0 - JPEG renders but PNG    empty
>      (Tomas Straupis)
>   5. Re: Updating osgeo4w to qt 5.12.4/5.13.1 (Jürgen E. Fischer)
>   6. Plugin [995] dzetsaka : Classification tool    approval
>      notification. (noreply at qgis.org)
>   7. No more layout page properties in contextual menu? (DelazJ)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sun, 29 Sep 2019 19:47:35 -0000
> From: noreply at qgis.org
> To: thomas.gratier at gmail.com, qgis-developer at lists.osgeo.org
> Subject: [QGIS-Developer] Plugin [923] Azimuth Measurement approval
>    notification.
> Message-ID: <20190929194735.8379.64507 at 2c6504964296>
> Content-Type: text/plain; charset="utf-8"
> 
> 
> Plugin Azimuth Measurement approval by pcav.
> The plugin version "[923] Azimuth Measurement 0.2.1" is now approved
> Link: http://plugins.qgis.org/plugins/AzimuthMeasurement/
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 30 Sep 2019 10:08:14 +1000
> From: Nyall Dawson <nyall.dawson at gmail.com>
> To: Clemens Raffler <clemens.raffler at gmail.com>
> Cc: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] Porting Create Grid algorithm to C++
> Message-ID:
>    <CAB28AsgbRKab4uP5GyFL8-4rkbcEBDr=q5FPtzxWLy=cx5z5Yg at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
>> On Mon, 30 Sep 2019 at 03:06, Clemens Raffler <clemens.raffler at gmail.com> wrote:
>> 
>> Dear QGIS Developers,
>> 
>> lately I have been using the 'Create Grid' algorithm a lot on huge areas
>> and with a rather fine grid resolution. I was not surprised that
>> creating a very fine grid took a very long time as the algorithm is
>> currently implemented in python.
>> 
>> In order to speed up my work I decided to experiment a little with C++
>> (coming from a python background) development in QGIS and ported the
>> algorithm to C++ based on other native algorithms. The code is working
>> very well, the grid creation process has been sped up significantly. I
>> would now like to contribute the code to the QGIS project so that other
>> users can benefit from the speedup.
> 
> Sounds fantastic, and a very valuable (and desired) contribution! Nice work!
> 
>> - Is there any reason why certain algorithms (eg. the Create Grid alg)
>> should not be available in C++?
> 
> No. In fact, the opposite! The long-term goal is to port all these
> algorithms away from Python and to c++. Python is GREAT for plugin
> based algorithms and for quickly developing new algorithms, but it's
> just not competitive in speed vs the c++ algorithms. We've also had a
> LOT of issues in the past where Python algorithms break due to lack of
> compile time checks when QGIS API (or other Processing Python code) is
> revised. In contrast, I'm not aware of a single regression of this
> nature in any of the ported c++ algorithms.
> 
> (My advice for readers out there: don't write big, complex
> applications in Python. full stop.)
> 
>> - As I am not familiar with the processes how native processing
>> algorithms get committed to the main repository (pull requests,
>> prepare-commit.sh, sip, etc.), would anybody like to help/mentor/guide
>> me through this process and review the code?
> 
> **raises hand**
> 
>> - Are there any special requirements on testing infrastructure for C++
>> algs which should be implemented too (I have not worked with tests so far)?
> 
> Looks like there's already good test coverage with the existing Python
> algorithm. These existing tests will carry over to the c++ port, so
> it's likely that nothing extra is required here.
> 
> In general, there's some "desirable changes" which we are encouraging
> when porting an existing algorithm to c++, but none of them apply in
> this particular case. Specifically:
> 
> - use the QgsProcessingFeatureBasedAlgorithm subclass wherever possible.
> - add support for dynamic parameters where desirable.
> 
> 
>> So far, my experience with porting python algs to C++ has been very good
>> with Create Grid and I would like to work on other ports if everything
>> goes well.
> 
> That's great to hear!  I'd suggest having a look at a really simple
> feature based algorithm like DensifyGeometries as a great candidate
> for learning. There's almost no logic in the Python code for this one,
> so it would be a great one to learn the overall process of porting to
> c++ without the complexities of having to port a lot of
> python-specific logic.
> 
> Nyall
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 30 Sep 2019 10:09:19 +1000
> From: Nyall Dawson <nyall.dawson at gmail.com>
> To: Jürgen E. Fischer <jef at norbit.de>
> Cc: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] Updating osgeo4w to qt 5.12.4/5.13.1
> Message-ID:
>    <CAB28AsjSCV17DVr1rr+4GCG+N4bJ_WMXnc3WHKTBYZq=nUp9ng at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
>> On Sat, 28 Sep 2019 at 19:31, Jürgen E. Fischer <jef at norbit.de> wrote:
>> 
>> Hi Nyall,
>> 
>>> On Thu, 26. Sep 2019 at 09:30:47 +1000, Nyall Dawson wrote:
>>> Is there any plans on the horizon for updating the Qt build in
>>> osgeo4w? I ask because of these issues (all relate to crashes when
>>> exporting hi resolution layouts):
>> 
>>>> - https://github.com/qgis/QGIS/issues/31100
>>>> https://github.com/qgis/QGIS/issues/29065 and
>>>> https://github.com/qgis/QGIS/issues/29768
>>>> https://github.com/qgis/QGIS/issues/29064
>>>> https://github.com/qgis/QGIS/issues/29065
>>> 
>>> These have a confirmed fix in qt 5.12.4 and 5.13.1 (I've verified):
>> 
>>> See bugreports.qt.io/browse/QTBUG-75082 and https://codereview.qt-project.org/c/
>>> qt/qtbase/+/258696)
>> 
>> Does that already also include the fixes we fund KDAB for?
> 
> No - I'm not aware of anyone of these which have actually been merged
> upstream yet. It's just a nice coincidence that this particular
> upstream issue was recently solved for us.
> 
> Nyall
> 
>> 
>> 
>> Jürgen
>> 
>> --
>> Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
>> Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
>> Software Engineer           D-26506 Norden            https://www.norbit.de
>> QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Mon, 30 Sep 2019 10:53:20 +0300
> From: Tomas Straupis <tomasstraupis at gmail.com>
> To: QGIS Developer Mailing List <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] QGIS FCGI Server 3.9.0 - JPEG renders
>    but PNG    empty
> Message-ID:
>    <CA+f=8=prbzKmHB4AU4vYOCq3JG5Hjfj5xx=+2BWLhgeRA9tC8Q at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
> Hello, Tom
> 
>  You could probably try the method described by Jorge in QGIS-user list:
> 
>  1. Compile QGIS with debug info.
> 
>  2. Create a script with all FcgidInitialEnv taken from apache config
> converted to export's like:
>  export QGIS_SERVER_LOG_FILE=/tmp/qgis-000.log
> 
>  3. Add query string variable and project file:
>  export QUERY_STRING="SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
>  export QGIS_PROJECT_FILE="/var/www/wms/oracle.qgs"
> 
>  4. execute qgis_mapserv.fcgi with debug on:
>  export QGIS_DEBUG=9
>  export QGIS_LOG_FILE=/tmp/qgis.log
> ./qgis_mapserv.fcgi
> 
>  This gives both server logs as well as debug information in separate
> files.
> 
> -- 
> Tomas
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Mon, 30 Sep 2019 09:59:39 +0200
> From: Jürgen E. Fischer <jef at norbit.de>
> To: Nyall Dawson <nyall.dawson at gmail.com>
> Cc: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: Re: [QGIS-Developer] Updating osgeo4w to qt 5.12.4/5.13.1
> Message-ID: <20190930075939.ipf7afnls6bsgczz at norbit.de>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi Nyall,
> 
> On Mon, 30. Sep 2019 at 10:09:19 +1000, Nyall Dawson wrote:
>>> Does that already also include the fixes we fund KDAB for?
> 
>> No - I'm not aware of anyone of these which have actually been merged
>> upstream yet.
> 
> Is there an ETA on that?
> 
> 
> Jürgen
> 
> -- 
> Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-31
> Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
> Software Engineer         D-26506 Norden              https://www.norbit.de
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 827 bytes
> Desc: not available
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190930/85738003/attachment-0001.sig>
> -------------- next part --------------
> An embedded and charset-unspecified text was scrubbed...
> Name: Pflichtangaben
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190930/85738003/attachment-0001.ksh>
> 
> ------------------------------
> 
> Message: 6
> Date: Mon, 30 Sep 2019 09:50:34 -0000
> From: noreply at qgis.org
> To: karasiak.nicolas at gmail.com, qgis-developer at lists.osgeo.org
> Subject: [QGIS-Developer] Plugin [995] dzetsaka : Classification tool
>    approval notification.
> Message-ID: <20190930095034.24825.85476 at 2c6504964296>
> Content-Type: text/plain; charset="utf-8"
> 
> 
> Plugin dzetsaka : Classification tool approval by pcav.
> The plugin version "[995] dzetsaka : Classification tool 3.6" is now approved
> Link: http://plugins.qgis.org/plugins/dzetsaka/
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Mon, 30 Sep 2019 18:24:15 +0200
> From: DelazJ <delazj at gmail.com>
> To: qgis-developer <qgis-developer at lists.osgeo.org>
> Subject: [QGIS-Developer] No more layout page properties in contextual
>    menu?
> Message-ID:
>    <CAECJsSoFynD0ja+5Lv9T_6FdD+e61h_KNu5uN4Fo3wLbEQ4Wng at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi devs,
> 
> I'm using QGIS 3.9 ea7b27ef3e and am unable to access the page properties;
> it used to be available with right-click in the layout but can't find it
> there. Browsing the menus neither shows it.
> 
> Since my version is not the latest (and osgeo4w did not let me update all
> the day), can someone confirm whether it's a bug, a moved feature or me
> needing new glasses?
> 
> Regards,
> Harrissou
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190930/4227cf07/attachment-0001.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
> ------------------------------
> 
> End of QGIS-Developer Digest, Vol 167, Issue 67
> ***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191001/79749597/attachment-0001.html>


More information about the QGIS-Developer mailing list