Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-19 Thread Paul james
Thanks for your help and patience so far... I´ll try to explain better my problem... I have a google base and several wms overlay layers ... Everthing is working fine... Relevant code: Map PROJECTION "init=epsg:900913" END METADATA "wms_srs" "EPSG:4326 EPSG:900913" Layers

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread David Fawcett
Your layer projection block should reflect the spatial reference system of the data that the layer is based on (input projection). The projection block at the map level sets the output projection when your application receives a normal MapServer request. For WMS requests, this is handled by the l

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread Paul james
Thanks! Yes, i tried my layer two ways : PROJECTION "init=epsg:4326" END ==> Nothing appears PROJECTION "init=epsg:900913" END ==> The layer was draw, but in other location (0 0´0´´E 0 0´0´´N) Paul On Wed, Aug 18, 2010 at 11:08 AM, David Fawcett wrote: > Paul, > > I don't think tha

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread David Fawcett
Paul, I don't think that it matters for this case, but I think that you want to drop the '+' sign from your MAP level projection block. Do you have a projection block for your layer? That is definitely required. David. On Wed, Aug 18, 2010 at 9:00 AM, Paul james wrote: > Yes, My proj.4 has EP

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread Paul james
Yes, My proj.4 has EPSG:900913... My mapfile: MAP ... PROJECTION "+init=epsg:4326" END WEB IMAGEPATH '...' IMAGEURL '...' METADATA "wms_title" "WMS Server" "wms_onlineresource" "..." "wms_srs" "EPSG:4326 EPSG:

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread David Fawcett
Paul, What does the rest of your mapfile look like? Is there a record for EPSG:900913 in your proj.4 database? David. On Wed, Aug 18, 2010 at 8:29 AM, Paul james wrote: > I tried that setting wms_srs (mapserver): > METADATA >             "wms_srs"   "EPSG:900913" >             "wms_title" 

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread Paul james
I tried that setting wms_srs (mapserver): METADATA "wms_srs" "EPSG:900913" "wms_title""Test" "wms_feature_info_mime_type" "text/html" END But without success... Any idea? Thanks On Wed, Aug 18, 2010 at 10:02 AM, BMcBride wrote: > > > Paul

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread BMcBride
Paul james wrote: > > Is it possible to reproject my baselayer in client? How? > I don't believe so. Your baselayer's native projection should be EPSG:900913. You also may be able to reproject server side by defining a SRS parameter (I know this works with GeoServer). - Bryan R. McBride,

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-18 Thread Paul james
Is it possible to reproject my baselayer in client? How? Thanks On Tue, Aug 17, 2010 at 10:21 AM, Paul james wrote: > Thanks... > But how can I do that? > > I tried add to that layer : projection: new > OpenLayers.Projection("EPSG:900913"), > But without success... > > > var wmsBaseLayer = new

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-17 Thread Paul james
Thanks... But how can I do that? I tried add to that layer : projection: new OpenLayers.Projection("EPSG:900913"), But without success... var wmsBaseLayer = new OpenLayers.Layer.WMS(" TestWmsBaseLayer", _mapfile, { "LAYERS": ['WmsBaseLayer'],

Re: [OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-17 Thread BMcBride
Make sure your wmsBaseLayer has the same projection as your Bing base layer (EPSG:900913). Have a look at the http://docs.openlayers.org/library/layers.html layers documentation and note particularly this part: "The currently active base layer determines the available projection (coordinate syst

[OpenLayers-Users] Switching between a Google/Bing base layer to WMS base layer...

2010-08-17 Thread Paul james
Hello guys... I have an application with Bing base layer with some WMS overlay Thats working fine : map = new OpenLayers.Map('MapTest', { units: "m", projection:new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"),