[Geoserver-users] Quick Question about Projections

Hi,

I have created a coverage with an SRS of EPSG:2157. It looks perfect in the MapBuilder Demo App.

When I make a request to the WMS (in openlayers) for that layer is it served in this projection or is it reprojected to something else?

var basemap = new OpenLayers.Layer.WMS(“GeoServer”," http://localhost:8080/geoserver/wms?service=wms", {layers:‘topp:Coveragetest’} );

Thanks,
Jerry

Jerry O'Sullivan ha scritto:

Hi,
I have created a coverage with an SRS of EPSG:2157. It looks perfect in the MapBuilder Demo App.
When I make a request to the WMS (in openlayers) for that layer is it served in this projection or is it reprojected to something else?

        var basemap = new OpenLayers.Layer.WMS("GeoServer","
        http://localhost:8080/geoserver/wms?service=wms",
        {layers:'topp:Coveragetest'} );

As far as I remember, if you don't specify the SRS OpenLayer will
default to 4326, so Geoserver will receive a request in that CRS,
and reproject. I may be quite off the mark, but in any case, force
a SRS property into your layer definition.

Cheers
Andrea