[mapserver-users] Using mapserver with EPSG:900913

Christopher Schmidt crschmidt at metacarta.com
Tue Aug 26 13:22:12 PDT 2008


On Tue, Aug 26, 2008 at 12:32:47PM -0700, nbest wrote:
> 
> 
> Does anyone have some JS that overlays a WMS serving EPSG:900913 images
> through the GMap API?

I've always just done this with TileCache:

http://crschmidt.net/blog/311/using-tilecache-with-google-maps-and-virtual-earth/

Do you really need WMS? It's possible, but I'd have to write some code,
and I'm very lazy :)

> Does anyone have any lat-lon, 900913 x-y coordinate pairs that I could
> use to test in proj?  spatialreference.org can't seem to do it right
> now.  Thanks.

Open any modern OpenLayers page.

Open Firebug. (Or just open
http://openlayers.org/dev/examples/debug.html , which has firebug lite.)

Type the following:

 new OpenLayers.LonLat(-71,42).transform(new
  OpenLayers.Projection("EPSG:4326"), new
  OpenLayers.Projection("EPSG:900913"));

Get result:
lon=-7903683.845222223,lat=5160979.443331368

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the MapServer-users mailing list