<div>Hi,</div><div><br></div><div>I&#39;m struggling with an issue related to projections in a MapServer WCS service.  I&#39;ve got a raster data file that is in EPSG:2163, and I&#39;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&#39;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 &quot;wcs&quot; replaced by &quot;wms&quot;, of course).</div>
<div><br></div><div>I&#39;m sure that part of my problem is that I don&#39;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&#39;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="&#39;courier new&#39;, monospace">    MAP</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      NAME       lucky</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      STATUS     ON</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      SIZE       600 400</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      EXTENT     -83.938  34.746  -81.340  36.361</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      IMAGECOLOR 255 255 255</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      WEB</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        METADATA</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;ows_enable_request&quot;     &quot;*&quot;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;wcs_label&quot;              &quot;My WCS Service&quot;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;wcs_srs&quot;                &quot;EPSG:4326&quot;   ###SERVICE_WCS_SRS</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        END</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      END</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      PROJECTION</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">       &quot;init=epsg:4326&quot;  ###MAP_PROJECTION</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      END</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      LAYER</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>NAME     mylayer</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        TYPE     RASTER</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-tab-span" style="white-space:pre">        </span>DUMP     TRUE</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        STATUS   OFF</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, 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="&#39;courier new&#39;, monospace">        INCLUDE  &quot;colormap.cmap&quot;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        PROJECTION</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;init=epsg:4326&quot;   ###LAYER_PROJECTION</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        END</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        METADATA</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;wcs_srs&quot;                    &quot;EPSG:4326&quot;  ###LAYER_WCS_SRS</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;wcs_label&quot;                  &quot;My Layer&quot;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;wcs_rangeset_name&quot;          &quot;My Range&quot;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">          &quot;wcs_rangeset_label&quot;         &quot;My Label&quot;</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        END</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      END</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    END</font></div></div><div><br></div>