https://issues.qgis.org/https://issues.qgis.org/favicon.ico2011-04-11T10:09:14ZQGIS Issue TrackingQGIS Application - Bug report #3719: qgis_mapserv.fcgi empty (ghost) layer in GetCapabilitieshttps://issues.qgis.org/issues/3719?journal_id=246842011-04-11T10:09:14ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul><li><strong>Resolution</strong> set to <i>wontfix</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Do you mean the toplevel layer? If yes, this is intended. There must be exactly one toplevel layer (because of the WMS xml schema) and the project layer / group structure comes under it. The toplevel layer gets the name / title from the qgs project title.</p> QGIS Application - Bug report #3719: qgis_mapserv.fcgi empty (ghost) layer in GetCapabilitieshttps://issues.qgis.org/issues/3719?journal_id=246852011-04-11T22:35:30ZAlessandro Pasotti
<ul></ul><p>Thank for the quick answer,</p>
<p>Yes, I meant the top-level layer, I did not set the project title (which was not required, after all) and got the blank name and title.</p>
<p>I think this could be a common pitfall, and perhaps could be avoided with one of the following approachs:</p>
<ul>
<li>set the project title as mandatory (IMHO not a good idea)</li>
<li>provide a default project title for the WMS server (project file name ?)</li>
<li>raise a WMS exception if the title is not set</li>
</ul>
<p>BTW, can you point me to the docs of the WMS server? I would like to add a short note about that blank name issue but I couldn't find them.</p> QGIS Application - Bug report #3719: qgis_mapserv.fcgi empty (ghost) layer in GetCapabilitieshttps://issues.qgis.org/issues/3719?journal_id=246862011-04-12T00:29:33ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul></ul><p>The idea with a default title (filename without .qgs) sound great.</p>
<p>Untoftunately, there are no up-to-date docs. There is a small wiki page about QGIS server (<a class="external" href="http://www.qgis.org/wiki/QGIS_mapserver_tutorial">http://www.qgis.org/wiki/QGIS_mapserver_tutorial</a>), but it needs more content (something for the hackfest?). You could add the notes about the toplevel group under the section 'Troubleshooting'?</p> QGIS Application - Bug report #3719: qgis_mapserv.fcgi empty (ghost) layer in GetCapabilitieshttps://issues.qgis.org/issues/3719?journal_id=246872011-04-12T03:27:40ZMarco Hugentoblermarco.hugentobler@sourcepole.ch
<ul></ul><p>Filename as default title added in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/8a31ca5d75127456ce2ea0d24a4591250dd48f53" title="Use filename for title of WMS top layer if project title empty (ticket #3719) git-svn-id: http:/...">8a31ca5d</a> (SVN r15696)</p>