<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Lars,</p>
<p>Regarding @xvfb: you don't need specifically xvfb, but any XServer. xvfb is just one way of satisfying this requirement. Any XServer would do ... It is a requirement of the qt library, if you want to output to PDF.</p>
<p>------------------------</p>
<p>Regarding layer order:</p>
<p>I had a similar issue - but it was the same layer order problem in GetMap and GetPrint. I am surprised that the issue only surfaces in GetPrint for you - are you sure?</p>
<p>See the fix at <a href="https://github.com/qgis/QGIS/commit/6b5a997df578a7996dc95e93690fe0a3d24e089b">https://github.com/qgis/QGIS/commit/6b5a997df578a7996dc95e93690fe0a3d24e089b</a></p>
<p>So if you use QGIS server 2.18 which was compiled before April 18, please install a newer version and see if the issue is fixed for you?</p>
<p>Greetings,</p>
<p>Andreas</p>
<p>On 2017-06-29 14:43, lars lingner wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hello,<br /><br /> I've set up a qgis server and trying to get the getprint-Request<br /> working. After first trouble getting a output at all, I discovered at a<br /> blog post [<a href="https://www.itopen.it/qgis-server-setup-notes/">1</a>], xvfb is needed by QGis-Server.<br /><br /> Using a QGis print template I'm able to request a map. But all polygon<br /> layers are rendered on top. This happens when the map name or group name<br /> is used in the request.<br /> Requesting all layers by name, the order is right.<br /><br /> I compared the QGis logfile for a request with group name and all layer<br /> names and it is the same. The layer names are in the right order, if the<br /> order in the log is actually showing render order.<br /><br /> Using the template in QGis-Desktop the output has the correct layer<br /> order. Only the getprint Request isn't working the way I thought it should.<br /><br /> WMS requests are working, no problem with layer order here.<br /><br /> I tested it with OSM Data and a new QGis project file, downloaded 4<br /> layers (points,lines,multilines,polygons) and put them in a group.<br /> I'm using QGis 2.18.10 on Ubuntu with PostgreSQL and Shapefiles as source.<br /><br /> The getProjectSettings request is listing the layers also in the right<br /> order.<br /><br /> How can I debug this further? I coulnd find anything in the web or db<br /> server log nor in QGis logfile. Had anybody else this kind of issue and<br /> probably a solution?<br /><br /><br /><br /><br /> [1] <a href="https://www.itopen.it/qgis-server-setup-notes/">https://www.itopen.it/qgis-server-setup-notes/</a><br /><br /> _______________________________________________<br /> Qgis-user mailing list<br /><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p> </p>
<div> </div>
</body></html>