I have a problem with displaying wms layer. I need to display layer in
EPSG:2180 but layer displayed always in WGS 84. How can I do set this
properly.

*layer settings (postgis):*
- SRS: EPSG:2180
(layer in QGIS are displayed OK - as Add Layer from PostGIS...)

*layer settings (geoserver):*
- Native SRS: EPSG:2180
- Declared SRS: EPSG:2180
- SRS Handling: Force declared

*OpenLayers code:*
        layer = new OpenLayers.Layer.WMS(
                        "OpenLayers WMS", 
            "http://localhost:8080/geoserver/wms";,
                        { srs: 'EPSG:2180', layers: 'postgis:ot_adja_a' }
        );
        
*geoserver.log:*
...
2014-05-23 11:52:07,243 INFO [geoserver.wms] - 
Request: getMap
        Width = 256
        Height = 256
        BgColor = java.awt.Color[r=255,g=255,b=255]
        Tiled = false
        Palette = null
        SRS = EPSG:4326
        FeatureVersion = null
        Styles = [StyleImpl[ name=ot_adms_a]]
        Layers = [org.geoserver.wms.MapLayerInfo@4d52ecd4]
        TilesOrigin = null
        MaxFeatures = null
        Crs = GEOGCS["WGS 84", 
  DATUM["World Geodetic System 1984", 
    SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], 
    AUTHORITY["EPSG","6326"]], 
  PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], 
  UNIT["degree", 0.017453292519943295], 
  AXIS["Geodetic longitude", EAST], 
  AXIS["Geodetic latitude", NORTH], 
  AUTHORITY["EPSG","4326"]]
        Bbox = SRSEnvelope[20.21484375 : 20.390625, 53.0859375 : 53.26171875]
        RemoteOwsType = null
        RemoteOwsURL = null
        Env = {}
        FormatOptions = {}
        Angle = 0.0
        CQLFilter = null
        Elevation = []
        FeatureId = null
        StartIndex = null
        ViewParams = null
        Transparent = false
        SldBody = null
        ValidateSchema = false
        Sld = null
        SldVersion = null
        Exceptions = SE_XML
        Buffer = 0
        Filter = null
        Format = image/jpeg
        Filters = null
        Time = []
        Get = true
        BaseUrl = http://localhost:8080/geoserver/
        RawKvp = {BBOX=20.21484375,53.0859375,20.390625,53.26171875, 
VERSION=1.1.1,
FORMAT=image/jpeg, SERVICE=WMS, HEIGHT=256, LAYERS=postgis:ot_adja_a,
REQUEST=GetMap, STYLES=, SRS=EPSG:4326, WIDTH=256}
        RequestCharset = UTF-8
        Version = 1.1.1
        Request = GetMap




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problem-with-displaying-wms-layer-in-EPSG-2180-tp5142479.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to