[OpenLayers-Users] WMS - GeoServer
Piero Campa
piero.campa at gmail.com
Fri Mar 12 07:10:06 EST 2010
I have a similar problem too: I want to retrieve a GeoTiff Map from
Geoserver.
My map projection is EPSG:900913, while the native projection of the GeoTiff
map is EPSG:32633.
If I make a direct HTTP request, my browser shows the reprojected GeoTiff
map,
http://localhost:8080/geoserver/wms?VERSION=1.1&REQUEST=GetMap&SRS=EPSG:900913&BBOX=-114893.053693214,%203799111.58179284,4058625.30227515,%206227546.2734481&WIDTH=2276&HEIGHT=2341&LAYERS=pm10.2008029.0955.geo&FORMAT=image/png
But I can't reproduce the same query with OpenLayers, I couldn't find on the
documentation which is the right notation.
I'm using this one:
var wms_layer = OpenLayers.Layer.WMS(
"My WMS",
"http://localhost:8080/geoserver/wms",
{ 'layers': 'meeo:pm10.2008029.0955.geo',
'format':'image/png',
'transparent': 'true',
'projection': new OpenLayers.Projection('EPSG:900913') },
{ 'opacity': 1.0,
'isBaseLayer': false,
'visibility': true }
);
(I also tried specifying 'SRS', 'BBOX', 'WIDTH', 'HEIGHT' params, just like
on the HTTP request, but nothing returned).
(I even thought the reprojection was automatically done by some kind of
OpenLayers/Geoserver conversation, but if I delete the projection parameter
I can't get the map again).
Thank for reading to all of you.
:-((
Piero
--
View this message in context: http://n2.nabble.com/WMS-GeoServer-tp1822608p4721749.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list