[Geoserver-users] Error Projection EPSG:900913 with WMS

I have this code

           function init(){
    var options = {
      projection: new OpenLayers.Projection('EPSG:900913'),
      displayProjection: new OpenLayers.Projection('EPSG:4326'),
      numZoomLevels: 18,
      maxResolution: 'auto',
      units: 'degrees',
      maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
                                                 20037508, 20037508.34)
    };
    
    map = new OpenLayers.Map('mapa', options);

    backmap = new OpenLayers.Layer.WMS( "WMS",
    "http://labs.metacarta.com/wms/vmap0",
    {layers: 'basic'} );
  
    map.addLayer(backmap);
           }

And the geoserver return this error in image
msProcessProjection(); no options found in 'init' file

The problem is the projection EPSG:900913, but i need this projection for
add layer base google.
What can be wrong?

Thank

Regards

Abel
--
View this message in context: http://www.nabble.com/Error-Projection-EPSG%3A900913-with-WMS-tp23278463p23278463.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

abelq ha scritto:

I have this code

           function init(){
    var options = {
      projection: new OpenLayers.Projection('EPSG:900913'),
      displayProjection: new OpenLayers.Projection('EPSG:4326'),
      numZoomLevels: 18,
      maxResolution: 'auto',
      units: 'degrees',
      maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
                                                 20037508, 20037508.34)
    };
    
    map = new OpenLayers.Map('mapa', options);

    backmap = new OpenLayers.Layer.WMS( "WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
  
    map.addLayer(backmap);
           }

And the geoserver return this error in image
msProcessProjection(); no options found in 'init' file

The problem is the projection EPSG:900913, but i need this projection for
add layer base google.
What can be wrong?

That you're hitting a MapServer instance, first, and that the instance
in question seems not allow reprojection I guess (don't know much
about MapServer so take my info for what it is, just a guess).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.