[OpenLayers-Users] Projection problem

Christopher Schmidt crschmidt at metacarta.com
Tue Jan 20 11:09:18 EST 2009


On Tue, Jan 20, 2009 at 04:52:28PM +0100, David Martinez Morata wrote:
> Hello
> 
> I have a little problem with projections.
> 
> I create a WMS service for raster images with an EPSG code for Mapserver.
> "PROJECTION
>          "init=epsg:27572"
>  END"
> 
> for the map file
> 
> All layers are with:
> 
> "wms_srs"    "EPSG:27572 EPSG:27582 EPSG:4326"
> 
> Metadata
> 
> And my openlayers variable it's defined like:
> 
> var georoute = new OpenLayers.Layer.WMS("Georoute", "
> http://10.192.160.148/cgi-bin/mapserv.exe?map=/ms4w/apps/IGN_GeoRoute_Raster_V2/maps/IGN_GeoRoute_Raster_V2.map&SERVICE=WMS&",
> {"layers": "RGV2_L2e_05kFR_Contenu","format":"png"},{"reproject": true,
> "isBaseLayer": true,"wrapDateLine": true});
> 
> But the only reponse I have it's a mapserver error like the SRS it's not a
> valid SRS.

You haven't shown any place where you declare a projection on your map
or layer. Where are you declaring the projection?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list