<!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 to get 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> </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 a SRS with 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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=859562707-16072007>Mapserver
returns </SPAN></FONT><FONT face=Arial size=2><SPAN
class=859562707-16072007> images with the error-text written into it
" msWMSLoadGetMapParams(): WMS Server Error, Invalid SRS
given"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859562707-16072007></SPAN></FONT> </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&LAYERS=markyta&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859562707-16072007>STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859562707-16072007>SRS=EPSG%3A4326&BBOX=-180%2C-90%2C180%2C270&WIDTH=256&HEIGHT=256
HTTP/1.1" 200 5424</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859562707-16072007></SPAN></FONT> </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> </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> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859562707-16072007></SPAN></FONT> </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><html xmlns="<A
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"><BR>
<head><BR> <style
type="text/css"><BR> #map
{<BR> width:
800px;<BR>
height:
475px;<BR>
border: 1px solid black;<BR>
}<BR> </style><BR> <script
src="../lib/OpenLayers.js"></script><BR> <script
type="text/javascript"><BR>
<!--<BR> var map,
layer,bounds;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=859562707-16072007> function
init(){<BR>
map = new OpenLayers.Map( $('map')
);<BR> 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>
map.addLayer(layer);<BR>
var bounds = new OpenLayers.Bounds(1200000,6200000, 1900000, 7900000);
<BR>
map.zoomToExtent(bounds);<BR>
map.addControl( new OpenLayers.Control.LayerSwitcher()
);<BR>
}<BR>
<BR> // --><BR>
</script><BR> </head><BR> <body
onload="init()"><BR> <div
id="map"></div><BR>
</body><BR></html></SPAN></FONT></DIV>
<DIV><SPAN class=859562707-16072007><FONT face=Arial
size=2></FONT></SPAN> </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> </DIV></BODY></HTML>