[OpenLayers-Users] Problem with polar projection on Antartica

springrider springrider at hotmail.com
Tue May 27 05:29:06 EDT 2008


Thanks Jon for your reply

Sorry I was not really explicit about the result i had.

This is the request which is sent to my Geoserver:
GET /geoserver/wms?service=wms&LAYERS=fifao:CONTINEENT_GAUL
&SRS=EPSG:3031&VERSION=1.1.1&REQUEST=GetMap&STYLES=
&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg
&BBOX=-12399999.999999989,8762666.666666664,8762666.66666668,29925333.333333332
&WIDTH=256&HEIGHT=256

So the SRS to be used is correct (3031) but what is sent for the bounding
box seems to be wrong in respect to what i have specified...

As you were suggesting in one of your previous post, could it be related to
ZoomToMaxExtent?

I tried to add the projection also for the baselayer but with no results:
	var basemap = new OpenLayers.Layer.WMS( "test",
				"http://193.43.36.238:8484/geoserver/wms?version=1.1.1",
				{layers: 'fifao:CONTINEENT_GAUL',
                                 srs: 'EPSG:3031'});
	basemap.addOptions({isBaseLayer: true});

Thanks for your help and for telling me if the options and the way i used
them are corrects.

Cheers

Sylvain



Jon Blower wrote:
> 
> Hi Sylvain,
> 
> You don't explain what you mean by "it doesn't work" but you will
> almost certainly have to specify the projection of the basemap layer
> explicitly, as well as the map.  If you check the requests from
> openlayers to your server is it using the wrong SRS/CRS?
> 
> Cheers, Jon
> 
>>
>> ---------- Forwarded message ----------
>> From: springrider <springrider at hotmail.com>
>> To: users at openlayers.org
>> Date: Mon, 26 May 2008 10:24:34 -0700 (PDT)
>> Subject: [OpenLayers-Users] Problem with polar projection on Antartica
>>
>> Good evening
>>
>> In the framework of my project, I should be able to provide different
>> projections for the same layer. It concerns mainly polar projections.
>>
>> I am now struggling for several hours trying to reproject a layer based
>> on
>> the antartic polar sterographic projection (EPSG:3031).
>> Here some details on the projection :
>> http://nsidc.org/data/atlas/epsg_3031.html
>> and this is my code:
>>
>>        var options = {
>>                projection: new OpenLayers.Projection("EPSG:3031"),
>>                units: 'meters',
>>                maxResolution: 'auto',
>>                maxExtent: new
>> OpenLayers.Bounds(-12400000,-12400000,12400000,12400000)
>>        };
>>        var map = new OpenLayers.Map('map', options);
>>        var basemap = new OpenLayers.Layer.WMS( "test",
>>                "http://193.43.36.238:8484/geoserver/wms?service=wms",
>>                {layers: 'fifao:CONTINEENT_GAUL'});
>>        map.addLayer(basemap);
>>        map.zoomToMaxExtent();
>>
>> I am using OL 2.6 but not proj4js, i don't know if it can impact.
>> Anyway, i don't understand why it does not work so if someone could give
>> me
>> some directions or hints, i would be very grateful.
>>
>> Thanks in advance
>>
>> Sylvain
>> --
>> View this message in context:
>> http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17475860.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>>
> 
> -- 
> --------------------------------------------------------------
> Dr Jon Blower Tel: +44 118 378 5213 (direct line)
> Technical Director Tel: +44 118 378 8741 (ESSC)
> Reading e-Science Centre Fax: +44 118 378 6413
> ESSC Email: jdb at mail.nerc-essc.ac.uk
> University of Reading
> 3 Earley Gate
> Reading RG6 6AL, UK
> --------------------------------------------------------------
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-polar-projection-on-Antartica-tp17475860p17486550.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list