<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>I have 
problems&nbsp;to get&nbsp;OpenLayers understanding any other projection than 
wgs84 (epsg:4324) when calling a WMS-layer</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>I have an 
WMS-services created with Mapserver.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>The services 
has&nbsp;a SRS with&nbsp;epsg-code 2400.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>I can verify the the 
service and the projection in Carbon tools OGC-Analyzer.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>I then try to show 
this in OpenLayers with the html-code shown in the bottom of the eMail.The code 
seems not to use my extent information and the WMS-epsg 
code.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>When looking into 
the apache-logfile I can see that my boundingbox and SRC is skipped and instead 
replaced by epsg:4326 and boundingbox with -180,-90-180,270 
???</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>Mapserver 
returns&nbsp;</SPAN></FONT><FONT face=Arial size=2><SPAN 
class=859562707-16072007> images with the error-text written into it&nbsp;&nbsp; 
" msWMSLoadGetMapParams(): WMS Server Error,&nbsp;Invalid SRS 
given"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>Apachelogfile</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>192.168.1.198 - - 
[16/Jul/2007:09:21:46 +0200] "GET 
/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/sna01.map&amp;LAYERS=markyta&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;FORMAT=image%2Fjpeg&amp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>SRS=EPSG%3A4326&amp;BBOX=-180%2C-90%2C180%2C270&amp;WIDTH=256&amp;HEIGHT=256 
HTTP/1.1" 200 5424</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>Should I specify the 
SRC in the OpenLayers also or what wrong am I doing?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>Michael</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>#HTML-page 
fo</SPAN></FONT><FONT face=Arial size=2><SPAN class=859562707-16072007>r opening 
a WMS-Layer</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>&lt;html xmlns="<A 
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"&gt;<BR>&nbsp; 
&lt;head&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;style 
type="text/css"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #map 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 
800px;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
height: 
475px;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
border: 1px solid black;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp; &lt;/style&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;script 
src="../lib/OpenLayers.js"&gt;&lt;/script&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;script 
type="text/javascript"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var map, 
layer,bounds;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=859562707-16072007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function 
init(){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map = new OpenLayers.Map( $('map') 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layer = 
new OpenLayers.Layer.WMS( "OpenLayers WMS", "<A 
href="http://metagisxp1/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/sna01.map">http://metagisxp1/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/sna01.map</A>", 
{layers: 'markyta'} 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addLayer(layer);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
var bounds = new OpenLayers.Bounds(1200000,6200000, 1900000, 7900000); 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.zoomToExtent(bounds);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addControl( new OpenLayers.Control.LayerSwitcher() 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // --&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;/script&gt;<BR>&nbsp; &lt;/head&gt;<BR>&nbsp; &lt;body 
onload="init()"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;div 
id="map"&gt;&lt;/div&gt;<BR>&nbsp; 
&lt;/body&gt;<BR>&lt;/html&gt;</SPAN></FONT></DIV>
<DIV><SPAN class=859562707-16072007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV align=left><FONT size=2>
<P>mvh<BR>Michael</P>
<P>------------------------------------------------------------------<BR></FONT><B><FONT 
face=Garamond color=#800000>MetaGIS AB <EM><BR></EM><I>Michael 
Östling<BR></B></I></FONT><FONT face=Garamond color=#800000 size=2>Mob: 070-279 
19 76<BR>Tel: 023 - 702 20 10<BR>ePost: <A 
href="mailto:michael.ostling@metagis.se">michael.ostling@metagis.se</A><BR>Adress: 
Britsarvsvägen 28a, 791 36 FALUN<BR>Org Nr: 556638-7170<BR></FONT><FONT 
size=2>------------------------------------------------------------------</P></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>