Opened 15 years ago

Closed 15 years ago

#3186 closed defect (fixed)

WCS 1.1: GetCapabilities error with Python MapScript

Reported by: schpidi Owned by: warmerdam
Priority: normal Milestone:
Component: WCS Server Version: unspecified
Severity: normal Keywords:
Cc:

Description

Python MapScript crashes on a GetCapabilities request and version 1.1 or higher (...?service=WCS&request=GetCapabilities&version=1.1) with the error message: MapServerError: msLoadProjectionString(): Projection library error. Unrecognised OGC CRS def 'urn:ogc:def:crs:OGC::imageCRS'.

Other requests e.g. GetCoverage with Python MapScript and the GetCapabilities request with the cgi version and the same .map file are answered correctly.

Attachments (2)

mapsript.py (372 bytes ) - added by schpidi 15 years ago.
test.tif (50.6 KB ) - added by schpidi 15 years ago.
Test tif file used in the mapfile.

Download all attachments as: .zip

Change History (8)

by schpidi, 15 years ago

Attachment: mapsript.py added

comment:1 by warmerdam, 15 years ago

Owner: changed from sdlime to warmerdam

taking a look...

comment:2 by warmerdam, 15 years ago

Status: newassigned

This ticket requires more detail to reproduce. It needs a mapfile and a script that invokes a specific request demonstrating the problem. Supporting data files *may* not be required if the GetCapabilities failure occurs regardless of their presence.

comment:3 by schpidi, 15 years ago

The shortest mapfile still providing something with the cgi version and resulting in the described error with Python MapScript is: {{{MAP

WEB

METADATA

"ows_onlineresource" "http://something?"

END

END LAYER

NAME "a" DUMP TRUE DATA "test.tif" TYPE RASTER METADATA

"ows_srs" "EPSG:4326"

END

END

END}}}

I'm not sure what the script you request should do exactly?

by schpidi, 15 years ago

Attachment: test.tif added

Test tif file used in the mapfile.

comment:4 by warmerdam, 15 years ago

I have tried with the following map, and test script (and your test.tif) and things seem to work ok with MapServer from subversion trunk.

MAP
  WEB
    METADATA
      "ows_onlineresource" "http://something?"
    END
  END 

  LAYER
    NAME "a" 
    DUMP TRUE 
    DATA "test.tif" 
    TYPE RASTER 
    METADATA
      "ows_srs" "EPSG:4326"
    END
  END
END
import mapscript

ows_req = mapscript.OWSRequest()
ows_req.setParameter('SERVICE','WCS')
ows_req.setParameter('REQUEST','GetCapabilities')
ows_req.setParameter('VERSION','1.1.1')

map = mapscript.mapObj( 'test.map' )
mapscript.msIO_installStdoutToBuffer()
dispatch_status = map.OWSDispatch( ows_req )
print mapscript.msIO_getStdoutBufferBytes()

Could you try the same at your end to see if it works?

in reply to:  4 comment:5 by schpidi, 15 years ago

I tried with your scripts but with my currently installed version 5.4 of MapServer. Still getting the error.

I will try the trunk version when I have returned from Sydney on Tuesday. Many thanks for the moment!

comment:6 by Schpidi, 15 years ago

Resolution: fixed
Status: assignedclosed

Error seems to be resolved in trunk.

Note: See TracTickets for help on using tickets.