[OpenLayers-Dev] Projection-error on WMS-service

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Mon Jul 16 04:03:02 EDT 2007


Hi,

try something similar for your EPSG code (mainly projection and units
parameters):

map = new OpenLayers.Map( $('imgMapContainer'), { controls: [],
'projection': 'EPSG:28992', 'units':'m', 'maxExtent': new
OpenLayers.Bounds(-231847.29064, 193706.896552, 521847.29064, 721293.103448)
, 'maxResolution':'auto'}); 

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Michael �stling <michael.ostling at metagis.se>
Naar: dev at openlayers.org <dev at openlayers.org>
Onderwerp: [OpenLayers-Dev] Projection-error on WMS-service
Datum: 16/07/07 05:44

> 
> 
> 
> 
> 
> Hi,
> I have 
> problems&nbsp;to get&nbsp;OpenLayers understanding any other projection
than 
> wgs84 (epsg:4324) when calling a WMS-layer
> &nbsp;
> I have an 
> WMS-services created with Mapserver.
> The services 
> has&nbsp;a SRS with&nbsp;epsg-code 2400.
> I can verify the the 
> service and the projection in Carbon tools OGC-Analyzer.
> &nbsp;
> I then try to show 
> this in OpenLayers with the html-code shown in the bottom of the eMail.The
code 
> seems not to use my extent information and the WMS-epsg 
> code.
> When looking into 
> the apache-logfile I can see that my boundingbox and SRC is skipped and
instead 
> replaced by epsg:4326 and boundingbox with -180,-90-180,270 
> ???
> &nbsp;
> Mapserver 
> returns&nbsp; images with the error-text written into it&nbsp;&nbsp; 
> " msWMSLoadGetMapParams(): WMS Server Error,&nbsp;Invalid SRS 
> given"
> &nbsp;
> Apachelogfile
> 192.168.1.198 - - 
> [16/Jul/2007:09:21:46 +0200] "GET 
>
/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/sna01.map&amp;LAYERS=markyta&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;






More information about the Dev mailing list