<div dir="ltr">I don't see where QGIS Server could differ from QGIS Desktop in retrieving the output CRS. It seems to use the same mechanism (through QgsCRSCache).<div>Andrea, can you confirm it works properly inside QGIS Desktop? Would you share the user defined CRS and some extract of your data in that CRS?</div>
<div><br></div><div>Giovanni</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/26 Marco Hugentobler <span dir="ltr"><<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.ch</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi Andrea<br>
<br>
Using custom CRS with QGIS server is not so common, so probably it
is a bug in the server code. However I'm not sure what the correct
way is to call a user CRS in a WMS request (need to have a look in
the WMS spec).<br>
<br>
Regards,<br>
Marco<br>
<br>
On 25.11.2013 21:42, andrea pacifici wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p dir="ltr">Hi there,<br>
<br>
I'm trying to set-up a WMS server using the qgis-server (qgis
2.0 and<br>
Ubuntu 12.04) and data of planet Mars. Since Mars is not the
Earth I<br>
must use custom RS. So, I have realized a qgis project with
Martian<br>
data and I have properly filled fields in "OWS server" of
"Project<br>
Properties".<br>
<br>
Then I started a new Qgis project using the same custom RS and
I try<br>
to add the layers using "Add layer from a server" command.
Once Qgis<br>
is connected to the server the layers name are visible but
layers<br>
don't appears.<br>
<br>
WMS Log Messages report:<br>
<br>
Map request error (Title:Service Exception; Error:Request
contains a<br>
CRS not offered by the server for one or more of the Layers in
the<br>
request.<br>
The WMS vendor also reported: Could not create output CRS;
URL:<br>
<a href="http://localhost/cgi-bin/liz_test/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-112389.97944659927452449,-163304.16266460958286189,99132.64792997627228033,-33665.77575473205070011&CRS=USER:100000&WIDTH=574&HEIGHT=352&LAYERS=mola&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96" target="_blank">http://localhost/cgi-bin/liz_test/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-112389.97944659927452449,-163304.16266460958286189,99132.64792997627228033,-33665.77575473205070011&CRS=USER:100000&WIDTH=574&HEIGHT=352&LAYERS=mola&STYLES=&FORMAT=image/jpeg&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96</a>)<br>
<br>
I copied my own CRS in the RS database of Qgis in<br>
/usr/share/qgis/resources/srs.</p>
<div>db but I have still the same issue.<br>
<br>
Any idea?<br>
<br>
</div>
<div>Thanks!<br>
<br>
</div>
<div>Andrea<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.ch</a> <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee </pre>
</font></span></div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Giovanni Allegri<br><a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><br>
blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a>
</div>