<div>Hi,</div><div><br></div><div>I'm struggling with an issue related to projections in a MapServer WCS service. I've got a raster data file that is in EPSG:2163, and I'd like to serve it via WCS in EPSG:4326. The only way I have managed to get this to work is to reproject the data manually in advance and then reference the ESPG:4326 copy of the data in my mapfile. When I do that, with the mapfile below, the service seems to work beautifully. What I really want, though, is to be able to leave my data in its original projection and have MapServer reproject on the fly.</div>
<div><br></div><div>When I change the mapfile to use the original ESPG:2163 copy of the data, and update the relevant projections in the mapfile from 4326 to 2163, though, the service breaks, in the sense that the data shows up in (very much) the wrong place. I first tried just changing the projections commented in the mapfile below with ###LAYER_PROJECTION and ###LAYER_WCS_SRS from 4326 to 2163 (after changing the DATA line in the layer to point to the EPSG:2163 copy of the data, of course), but that didn't work. I then experimented with changing the ###SERVICE_WCS_SRS line and/or the ###MAP_PROJECTION as well, but no luck.</div>
<div><br></div><div>What is especially confusing is that I *can* get this to work for a WMS service. In the case of WMS, MapServer seems quite happy to serve EPSG:2163 data in ESPG:4326, as long as the ###LAYER_PROJECTION and ###LAYER_WCS_SRS lines say EPSG:2163 (with "wcs" replaced by "wms", of course).</div>
<div><br></div><div>I'm sure that part of my problem is that I don't completely understand the purpose served by each of the various projections specified in the mapfile. Can someone offer some insight into what the correct approach is to getting MapServer to reproject on the fly in a WCS?</div>
<div><br></div><div>In case it matters: I'm using MapServer 6.0, and am testing the WCS with ArcMap 9.3.</div><div><br></div><div>Thanks!</div><div><br></div><div>--Mark</div><div><br></div><div><div>Here is my working mapfile for ESPG:4326:</div>
<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace"> MAP</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> NAME lucky</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> STATUS ON</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> SIZE 600 400</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> EXTENT -83.938 34.746 -81.340 36.361</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> IMAGECOLOR 255 255 255</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> WEB</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> METADATA</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "ows_enable_request" "*"</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> "wcs_label" "My WCS Service"</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "wcs_srs" "EPSG:4326" ###SERVICE_WCS_SRS</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> PROJECTION</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "init=epsg:4326" ###MAP_PROJECTION</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> LAYER</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre"> </span>NAME mylayer</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> TYPE RASTER</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre"> </span>DUMP TRUE</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> STATUS OFF</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space:pre"> </span>DATA sampledata_wgs84/tif_wgs84.tif</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> INCLUDE "colormap.cmap"</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> PROJECTION</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "init=epsg:4326" ###LAYER_PROJECTION</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> METADATA</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> "wcs_srs" "EPSG:4326" ###LAYER_WCS_SRS</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "wcs_label" "My Layer"</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> "wcs_rangeset_name" "My Range"</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> "wcs_rangeset_label" "My Label"</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> END</font></div></div><div><br></div>