Opened 17 years ago

Closed 16 years ago

Last modified 15 years ago

#670 closed defect (fixed)

terraserver WMS getcapabilities not understood

Reported by: neteler@… Owned by: homann
Priority: major: does not work as expected Milestone:
Component: WMS Version: Trunk
Keywords: wms Cc: neteler
Must Fix for Release: No Platform: RedHat
Platform Version: Awaiting user input: no

Description

Hi,

when accessing http://terraserver.microsoft.com/ogccapabilities.ashx

QGIS is segfaulting...

Best, Markus

Change History (11)

comment:1 by homann, 17 years ago

Owner: changed from nobody to homann
Status: newassigned

Are you using trunk or 0.8 branch?

comment:2 by anonymous, 17 years ago

Summary: terraserver WMS leads to segfaultterraserver WMS getcapabilities not understood

The HEAD version, so trunk, updated right now. Ah, it no longer segfaults but returns to the menu. Very good.

Changing the topic to "terraserver WMS getcapabilities not understood".

After clicking "connect", I get

Could not understand the response.  The wms provider said:

The file returned from http://terraserver.microsoft.com/ogccapabilities.ashx looks like XML to me (maybe not valid WMS?).

Markus

comment:3 by homann, 17 years ago

For me, it returns a list of layers. No errors there. This is both in latest trunk and 0.8 branch.

The layers do not draw, however.

comment:4 by anonymous, 17 years ago

Milestone: Version 0.8.1

comment:5 by mhugent, 17 years ago

The problem is that terraserver uses different urls for GetCapabilities and GetMap:

http://terraserver.microsoft.com/ogccapabilities.ashx

and

http://terraservice.net/ogcmap.ashx

In my opinion, this is a strange interpretation of the WMS specification. Should qgis support several urls? I think if it is only terraserver, then not. If there are more wms servers like this out there, then probably yes.

comment:6 by neteler, 16 years ago

Cc: neteler added

in reply to:  5 comment:7 by tomkralidis, 16 years ago

Replying to mhugent:

The problem is that terraserver uses different urls for GetCapabilities and GetMap:

http://terraserver.microsoft.com/ogccapabilities.ashx

and

http://terraservice.net/ogcmap.ashx

In my opinion, this is a strange interpretation of the WMS specification. Should qgis support several urls? I think if it is only terraserver, then not. If there are more wms servers like this out there, then probably yes.

Yes, this is strange, but legal. FWIW, in practice, I think this is one of the only WMS endpoints I've seen configured like this.

comment:8 by wonder, 16 years ago

Apparently the URL has changed in meanwhile, now at: http://terraserver-usa.com/ogccapabilities.ashx

But the problem persits... for me it doesn't crash, just doesn't show any raster.

URL for GetMap request is advertised in GetCapabilities answer in element Capability -> Request -> GetMap -> DCPType -> HTTP -> Get -> OnlineResource

in reply to:  8 comment:9 by tomkralidis, 16 years ago

Replying to wonder:

Apparently the URL has changed in meanwhile, now at: http://terraserver-usa.com/ogccapabilities.ashx

But the problem persits... for me it doesn't crash, just doesn't show any raster.

URL for GetMap request is advertised in GetCapabilities answer in element Capability -> Request -> GetMap -> DCPType -> HTTP -> Get -> OnlineResource

Correct. The bulletproof thing to do would be to invoke a GetCapabilities request, pick up this value and use that as the GetMap server URL.

comment:10 by wonder, 16 years ago

Resolution: fixed
Status: assignedclosed

fixed in r9462 by Vita Cizek - thanks for contribution!

comment:11 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.