[mapserver-users] Using mapserver with EPSG:900913

Richard Greenwood richard.greenwood at gmail.com
Tue Aug 26 16:21:48 PDT 2008


On Tue, Aug 26, 2008 at 2:22 PM, Christopher Schmidt
<crschmidt at metacarta.com> wrote:
> 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"));

I know I'll get slammed for this, but it should be something more like:

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

Because EPSG:4326 is not a Projection, it is a Coordinate System.

Rich

-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com



More information about the MapServer-users mailing list