[OpenLayers-Users] .MapServer v. .WMS

P Kishor punk.kish at gmail.com
Mon Sep 14 19:24:58 EDT 2009


crap... went too soon. Please read on...

On Mon, Sep 14, 2009 at 6:22 PM, P Kishor <punk.kish at gmail.com> wrote:
> Two questions --
>
> 1. Given that I can query OpenLayers.Layer.WMS() just as easily as
> OpenLayers.Layer.MapServer(), is one preferred over the other? I feel
> I am getting a better response from OpenLayers.Layer.MapServer() over
> OpenLayers.Layer.WMS()... am I hallucinating, or should I do some
> measured testing?
>
> 2. My data are in meters, projection epsg:3071, and my mapfile reflect
> that. My wms_srs incantation includes "epsg:4326 epsg:3071
> epsg:900913". I have a Google Maps baselayer. When I query the data
> via OpenLayers.Layer.WMS(), the layers align perfectly. However, when
> I query the same data via OpenLayers.Layer.MapServer(), my layers are
> not aligned with Google Maps. I am assuming that is because wms is
> getting the hint to use 900913, while MapServer is not getting any
> such hint. I have "reproject: true" in my layer options. My sense is the Open Layers is valiantly trying to fit my MapServer data to the Google Maps base layer, but succeeding only so far. What it is that I have to do in order to have my MapServer layers align perfectly with Google's world? That is, if I decide to use MapServer over WMS (see #1 above).

Many thanks,




-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Madison, WI, United States



More information about the Users mailing list