[mapserver-users] Extra "?" in WCS query

Frank Warmerdam warmerdam at pobox.com
Tue Aug 23 01:29:10 EDT 2011


On 11-08-22 10:17 PM, teri wrote:
> Hi,
>
> I try to get data from mapserv WCS to Esri Arcmap. Esri only gives error
> message.
>
> I opened apache log and Esri makes query :
> /cgi-bin/mapserv.exe?map=c:\blaah\testi.map&?SERVICE=WCS ....
>
> In browser Esri query above gives error as well "Service parameter missing".
> By removing "?" from above "... testi.map&?SERVICE ..." query seems to work
> in browser.
>
> Question. Is this "?" problem of mapserv or Esri?

Tapio,

I presume you are specifying ".../cgi-bin/mapserv.exe?map=c:\blaah\testi.map&"
as the service URL when setting things up with ArcMap?  I believe ArcMap
uses GDAL's WCS driver underneath for WCS server access and the GDAL WCS
driver service definition file should include the "?" in the service
url.  However, it is possible that ArcMap is adding an extra question mark
to whatever you specify when it is defining the GDAL WCS ServiceURL.

If so, the problem is with ArcMap, and you should file a ticket with them.

In the meantime, you can wrap the WCS service so that the map does not
need to be defined in the URL.  On Linux I would normally accomplish
this by putting a shell script in the cgi-bin directory that defines the
MS_MAPFILE environment variable.  I'm not so sure how to accomplish this
on Windows, though you could likely add MS_MAPFILE's definition in your
Apache configuration if it is unlikely to cause conflicts on any other
service run from the same apache.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list