<HTML>
<HEAD>
<TITLE>Re: [mapserver-users] doubt about mapserver URL: coordinate system</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Sebastian,<BR>
<BR>
You can use either mapserver &nbsp;or wms syntax with openlayers.<BR>
<BR>
The coordinates you see are in the Google Mercator or Spherical Mercator projection. The google coordinates are the tile references (z=19) and the x and y should match the center point of your mapext/imgext.<BR>
<BR>
To use mapserver with google mercator you&#8217;d use the projection block at the mapfile level of<BR>
<BR>
PROJECTION<BR>
&nbsp;&quot;proj=merc lon_0=0 k=1 x_0=0 y_0=0 a=6378137 b=6378137 towgs84=0,0,0,0,0,0,0 units=m no_defs&quot;<BR>
END<BR>
<BR>
Mike<BR>
<BR>
<BR>
-- <BR>
Michael Smith<BR>
US Army Corps of Engineers<BR>
Remote Sensing/GIS Center<BR>
Hanover, NH <BR>
<BR>
<BR>
<BR>
<BR>
On 10/7/10 7:42 AM, &quot;Sebastian E. Ovide&quot; &lt;<a href="sebastian.ovide@gmail.com">sebastian.ovide@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>you are right. Thanks<BR>
<BR>
On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka &lt;<a href="Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt; wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
It looks like your application is calling Mapserver with native CGI requests and I believe you have defined some special Mapserver layer in your application. Try to change it to standard WMS layer.<BR>
<BR>
<BR>
-Jukka Rahkonen-<BR>
<BR>
<BR>
Sebastian E. Ovide wrote:<BR>
<BR>
L&auml;hetetty: ke 6.10.2010 18:06<BR>
Vastaanottaja: <a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><BR>
Aihe: [mapserver-users] doubt about mapserver URL: coordinate system<BR>
<BR>
Hi List<BR>
<BR>
I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls<BR>
MapServer with ULRs like this:<BR>
<BR>
<a href="http://mapserver/mapserver?layers=NAFRA_2008_final">http://mapserver/mapserver?layers=NAFRA_2008_final</a><BR>
map=/home/gis/conf/mapserver/uk.map<BR>
mode=map<BR>
map_imagetype=png<BR>
mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241<BR>
imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241<BR>
map_size=256+256<BR>
imgx=128<BR>
imgy=128<BR>
imgxy=256+256<BR>
<BR>
Just trying to understand the coordinate system used by mapext and imgext. (<BR>
it is different from than that used to call Google servers:<BR>
<a href="http://mt0.google.com/vt/lyrs=m@133&amp;hl=en&amp;src=api&amp;x=257246&amp;y=166679&amp;z=19&amp;s=G">http://mt0.google.com/vt/lyrs=m@133&amp;hl=en&amp;src=api&amp;x=257246&amp;y=166679&amp;z=19&amp;s=G</a><BR>
)<BR>
<BR>
Is it possible to use a different coordinate system ? say for example the<BR>
same coordinate system specified in the LAYER (in my case epsg:27700)<BR>
<BR>
thanks<BR>
<BR>
--<BR>
Sebastian E. Ovide<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>