<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Dear list,</p>
    <p>I am following along with the (testing) QGIS server guide/manual
      hoping I can get QGIS server to work on my windows laptop, using
      <a class="moz-txt-link-freetext" href="https://docs.qgis.org/testing/en/docs/server_manual/getting_started.html">https://docs.qgis.org/testing/en/docs/server_manual/getting_started.html</a>
      . I've installed XAMPP, and <br>
    </p>
    <pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://localhost/cgi-bin/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a></pre>
    <p>seems to be working (I get the capabilities).</p>
    <p>I then downloaded the training data (as instructed) from <br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip">https://github.com/qgis/QGIS-Training-Data/archive/v2.0.zip</a><br>
    </p>
    <p>and unzipped them into a folder and set the QGIS_PROJECT_FILE
      variable to point to the world.qgs file. The guide continues with:<br>
    </p>
    <pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><a class="moz-txt-link-freetext" href="http://localhost/qgisserver">http://localhost/qgisserver</a>?
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">MAP</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span>/home/qgis/projects/world.qgs<span class="p" style="box-sizing: border-box;">&</span>
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">LAYERS</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span>countries<span class="p" style="box-sizing: border-box;">&</span>
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">SERVICE</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span>WMS<span class="p" style="box-sizing: border-box;">&</span>
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">REQUEST</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span>GetMap<span class="p" style="box-sizing: border-box;">&</span>
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">CRS</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span>EPSG:4326<span class="p" style="box-sizing: border-box;">&</span>
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">WIDTH</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span><span class="m" style="box-sizing: border-box; color: rgb(102, 102, 102);">400</span><span class="p" style="box-sizing: border-box;">&</span>
  <span class="nv" style="box-sizing: border-box; color: rgb(25, 23, 124);">HEIGHT</span><span class="o" style="box-sizing: border-box; color: rgb(102, 102, 102);">=</span><span class="m" style="box-sizing: border-box; color: rgb(102, 102, 102);">200</span></pre>
    <p>In Firefox, when I adjust that to:<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://localhost/cgi-bin/qgis_mapserv.fcgi.exe?LAYERS=airports&SERVICE=WMS&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=400&HEIGHT=200">https://localhost/cgi-bin/qgis_mapserv.fcgi.exe?LAYERS=airports&SERVICE=WMS&REQUEST=GetMap&CRS=EPSG:4326&WIDTH=400&HEIGHT=200</a></p>
    <p>I get a white rectangle with some airplanes in the top left
      corner - I think that means success (for now at least).</p>
    <p>When I replace 'airports' with 'places' it shows the same
      rectangle, but with circles in the top left corner - also success,
      more or less.</p>
    <p>When I replace 'airports' with 'countries' I only get to see the
      white rectangle, and no countries. What could be the reason that I
      do not get to see the countries? How do I go about troubleshooting
      this? When I open the project file directly in QGIS I get to see
      all the layers and they all look as I would expect them to look. <br>
    </p>
    <p>When I open a separate qgis desktop blank project, and start
      adding the layers as WMS I have other issues:</p>
    <p>adding each layer with epsg:3857 the layers overlay nicely with
      each other and a google hybrid layer. Adding them with epsg:4326
      (and setting the project CRS to 4326) it seems as if the map gets
      squeezed from the sides, so the world map looks higher than it is
      wide (in the example in the tutorial it's wider than it's tall).
      When trying to zoom in on Europe it will 'jump' to Asia.</p>
    <p>This seems to suggest that the WMS is more or less working (it
      can be reached from the browser) but it needs certain settings to
      work properly? I am entirely new to QGIS server and any pointers
      to understand what it is that I'm looking for would be greatly
      appreciated. Does anyone else working with the same data manage to
      display the countries layer in a browser?</p>
    <p>Working with qgis server and desktop LTR from OSGeo4W64 on
      Windows 10.</p>
    <p>Thanks,</p>
    <p>Janneke<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <pre style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; white-space: pre; line-height: 1.4; margin: 0px; padding: 12px; display: block; overflow: auto; color: rgb(64, 64, 64); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;">
</pre>
  </body>
</html>