[OpenLayers-Users] Problem with polar projection on Antartica

springrider springrider at hotmail.com
Thu May 29 12:15:59 EDT 2008


Right, only the projection at map declaration is enough.

Sylvain


Eric Lemoine-3 wrote:
> 
> You dont need the projection property in the WMS layer param, do you?
> Cheers. Eric
> 
> 2008/5/29, springrider <springrider at hotmail.com>:
>>
>> Thanks Eric for your reply
>>
>> I have fixed my problem and this is the code:
>>
>> 		var map, layer;						
>> 		
>> 		map =new OpenLayers.Map("map", {maxExtent: new
>> OpenLayers.Bounds(-8000000,-8000000,8000000,8000000), maxResolution:
>> 25000,
>> units:'meters', projection:"EPSG:3031"});
>> 		layer = new OpenLayers.Layer.WMS( "test",
>> 			"http://localhost:8080/geoserver/wms?version=1.1.1",
>> 			{layers: 'fifao:FAO_AREAS_PROJ,fifao:continents_pg',projection:
>> "EPSG:3031"});
>> 		map.addLayer(layer);
>> 		
>> 		map.zoomToMaxExtent();
>>
>> The point is that it works only when the layer corresponds to shapefile
>> in
>> my Geoserver and not to a table in my Oracle database. In that case, i
>> obtain a white map.
>>
>> I don't know if it is a GeoServer or an Oracle problem. If anyone has a
>> any
>> idea, keep me informed.
>>
>> Anyway, thanks for your help.
>>
>> Sylvain
>>
>>
>> Eric Lemoine-3 wrote:
>>>
>>> On Tue, May 27, 2008 at 11:29 AM, springrider <springrider at hotmail.com>
>>> wrote:
>>>>
>>>> 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
>>>
>>> Do you think the rounding errors are the cause of your problem?
>>>
>>>
>>>> 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});
>>>
>>> You have only one base layer so no need to set things at the layer
>>> level, map level is fine.
>>>
>>> --
>>> Eric
>>> _______________________________________________
>>> 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-tp17475860p17537271.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
> _______________________________________________
> 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-tp17475860p17539732.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list