Re: [mapserver-users] Extra ? in WCS query

2011-08-23 Thread Jeff McKenna
The wrappers that Frank and Jukka refer to are documented for unix and 
windows/apache and windows/iis at: 
http://www.mapserver.org/ogc/wms_server.html#more-about-the-online-resource-url


I use that section myself to remove the map parameter all the time :)

-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/




On 11-08-23 6:55 AM, Rahkonen Jukka wrote:


Frank Warmerdam wrote:


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.


Hi

I do not know if this is elegant but it works on Windows

1. Copy the mapserv.exe file in the cgi-bin directory and name a copy to 
whatever you want to use in the ServiceURL, for example testi_wcs1
2. Edit Apache httpd.conf file and add a new line
SetEnvIf Request_URI /cgi-bin/testi_wcs1 
MS_MAPFILE=d:/ms4w/maps/testi_wcs1.map
3. Restart Apache

Now if the service url is pointing to /cgi-bin/testi_wcs1? MS_MAPFILE is set to 
d:/ms4w/maps/testi_wcs1.map automatically. Make more copies of mapserv.exe and 
add new lines into httpd.conf when you will have a need short urls for 
testi_wcs2 and others.


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Extra ? in WCS query

2011-08-22 Thread teri
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?

Thanks!

Tapio

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Extra-in-WCS-query-tp6714823p6714823.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Extra ? in WCS query

2011-08-22 Thread Frank Warmerdam

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, warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush| Geospatial Programmer for Rent

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users