<HTML>
<HEAD>
<TITLE>Re: [mapserver-users] Projection or Data Problem?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I found the solution.<BR>
<BR>
<a href="http://www.mapserver.org/faq.html#why-does-my-requested-wms-layer-not-align-correctly">http://www.mapserver.org/faq.html#why-does-my-requested-wms-layer-not-align-correctly</a> <BR>
<BR>
Adding reaspect=false to the connection string fixed the problem.<BR>
<BR>
LAYER<BR>
        GROUP "Political Boundaries"<BR>
        NAME "US Forest Service Regions"<BR>
        TYPE RASTER<BR>
        PROJECTION<BR>
            "init=epsg:4269"<BR>
        END<BR>
        STATUS ON<BR>
        CONNECTION "<a href="http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false">http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false</a>"<BR>
        CONNECTIONTYPE WMS<BR>
        METADATA<BR>
            "wms_srs" "EPSG:4269"<BR>
            "wms_name" "SMA_ALL"<BR>
            "wms_server_version" "1.1.1"<BR>
            "wms_format" "image/gif"<BR>
        END<BR>
    END<BR>
<BR>
<BR>
On 3/5/09 1:24 PM, "Paul Moen" <<a href="pmoen@nd.gov">pmoen@nd.gov</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>If I get what you are saying, I should set up another Mapserver as a WMS<BR>
server that accesses the WMS from BLM, then, connect to my WMS server with<BR>
the original mapfile?<BR>
<BR>
Doesn’t Mapserver already take the temporary image from the WMS that was<BR>
delivered in epsg:4326 and reproject it to my mapfiles projection,<BR>
epsg:2266, then add the other layers of my mapfile before delivering the<BR>
final image?<BR>
<BR>
This certainly works for the other WMS layer, OFlood Data Availability’ that<BR>
is in my mapfile.  That layer is delivered by the WMS in epsg:4269 and lines<BR>
up perfect when the mapfile’s main projection is set to “init=epsg:2266”.<BR>
<BR>
Thanks for helping,<BR>
<BR>
Paul<BR>
<BR>
On 3/5/09 1:06 PM, "Gregor at HostGIS" <<a href="gregor@hostgis.com">gregor@hostgis.com</a>> wrote:<BR>
<BR>
> Moen, Paul T. wrote:<BR>
>> Can anyone get this WMS layer to reproject to a projected coordinate<BR>
>> system like epsg:2266?<BR>
><BR>
> Add to your WEB block, this. You can then make requests to your<BR>
> mapfile-as-WMS in the given SRS.<BR>
><BR>
> METADATA<BR>
>    "wms_srs"  "EPSG:2266"<BR>
> END<BR>
><BR>
> This does mean fetching the raster from them as 4326, then reprojecting<BR>
> it to 2266, so it may not look so great. But if they're not offering it<BR>
> in 2266, that's what you hafta do.<BR>
><BR>
> --<BR>
> Gregor Mosheh / Greg Allensworth    BS, A+, Network+, Security+, Server+<BR>
> System Administrator, Lead Programmer<BR>
> HostGIS development & hosting services, <a href="http://www.HostGIS.com/">http://www.HostGIS.com/</a><BR>
><BR>
> "Remember that no one cares if you can back up,<BR>
>   only if you can restore." - AMANDA<BR>
><BR>
<BR>
<BR>
_______________________________________________<BR>
mapserver-users mailing list<BR>
<a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><BR>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Paul T. Moen<BR>
<a href="pmoen@nd.gov">pmoen@nd.gov</a><BR>
701-328-2434<BR>
701-328-3696 (fax)<BR>
ND State Water Commission<BR>
</SPAN></FONT>
</BODY>
</HTML>