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)
Change History (8)
by , 15 years ago
Attachment: | mapsript.py added |
---|
comment:1 by , 15 years ago
Owner: | changed from | to
---|
comment:2 by , 15 years ago
Status: | new → assigned |
---|
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 , 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?
follow-up: 5 comment:4 by , 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?
comment:5 by , 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Error seems to be resolved in trunk.
taking a look...