[Qgis-user] No GetMap From QGIS Server [Solved]

bernhard.stroebl at jena.de bernhard.stroebl at jena.de
Wed Nov 9 23:43:30 PST 2011


Dear Till, Andreas and Marco,

thank you for your responses, you gave really valuable hints!

I knew the CRS was fine and did not check the port but ticked "ignore 
GetMapUrl" and - magic - it worked like a charm. Investigating further I 
realized that the GetCapabilities XML-document propagates
<GetMap>
   <Format>image/jpeg</Format>
   <Format>image/png</Format>
   <DCPType>
     <HTTP>
       <Get>
         <OnlineResource xlink:type="simple" xlink:href="//10.144.9.51 
/fcgi-bin/test/qgis_mapserv.fcgi?"/>
       </Get>
     </HTTP>
   </DCPType>
</GetMap>
whereas I configured http://10.144.9.51/fcgi-bin/test/qgis_mapserv.fcgi 
in QGIS-Desktop. I would prefer to have a correct URL in 
GetCapabilities. How can I configure this?

And, yes, I am using a metre-based CRS so I keep Marco's third 
possibility in mind until I update.

regards

Bernhard

Am 09.11.2011 17:19, schrieb Marco Hugentobler:
> Hi Bernhard
>
> I can only guess.
>
> One possibility might be that the GetMap URL in the capability document points
> to the wrong place (e.g. an internal url). If this is the case, try if it
> works if in QGIS if you check 'ignore GetMapUrl' in the WMS connection
> settings.
>
> Another possibility: QGIS server is more strict with regards to CRS than
> desktop. If the layers don't have the right CRS assigned, they might be
> projected out of image.
>
> Third possibility: the layers have scale based visibility and your CRS is in
> meters. If this is the case, do a git pull to get the newest version (there
> was a bug related to this recently).
>
> Hope it helps,
> Marco
>
>
>
> Am Mittwoch, 9. November 2011, 17.00:25 schrieb bernhard.stroebl at jena.de:
>> Dear All,
>>
>> I set up QGIS-Server with apache2 on an OPENSuse-box (64bit)
>> I can:
>> 1) send a GetMap-request from the browser and QGIS-Server returns a map
>> (this works on the same machine and from a remote machine)
>> 2) enter the server as WMS-server in QGIS-desktop. When I connect I get
>> a list of available layers, so GetCapabilities works.
>>
>> I cannot:
>> - retrieve a layer offered in 2) into QGIS-desktop. A new layer is
>> entered to the list of layers but it is all white.
>>
>> this
>> http://osgeo-org.1803224.n2.nabble.com/I-can-not-visualize-the-WMS-Service-
>> from-the-QGIS-Server-at-a-desktop-GIS-td6783271.html describes the same
>> question (unanswered)
>>
>> any hints or ideas?
>>
>> regards
>>
>> Bernhard
>>
>>
>> ________ Information from NOD32 ________
>> This message was checked by NOD32 Antivirus System for Linux Mail Server.
>> http://www.nod32.com
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>



________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Server.
http://www.nod32.com



More information about the Qgis-user mailing list