[OpenLayers-Users] Problem with polar projection on Antartica
Jon Blower
jdb at mail.nerc-essc.ac.uk
Tue May 27 02:13:27 EDT 2008
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
--------------------------------------------------------------
More information about the Users
mailing list