Hi again,

I updated to Geoserver 2.11.0 and that did not correct the issue.

Machine details are

version = 2.11.0
git revision = 43069ede17858a25592f14b5e159c20cd25619fc
git branch = origin/master
build date = 22-Mar-2017 19:08
geotools version = 17.0
geotools revision = cf34347a4544cac900c09f2e5de4c5fb138c8637
geowebcache version = 1.11.0
geowebcache revision = 1.11.x/02b79570ae64d548f9fb39bcab5edc9cb4d0c99
hudson build = -1

Tomcat : 7.0.56
JVM 1.8.0.131-b11
Windows 8.1
IE Vers : 11.0.9600.18639
Update Vers 11.0.41 (KB4014661)
Chrome Vers : V58.0.3029.96 (64 bit)

I did find a discrepancy in the Geoserver logs between the IE call and the
Chrome call.  Both were launched the same way.

In IE the format options in the GetMap call changed itself to

FormatOptions = {DPI=94}

Whereas in Chrome it stayed as

FormatOptions = {LAYOUT=show_legend}


I am assuming this is the problem manifesting as the format options call I
am using is referencing the show_legend file which I built as per the WMS
decorations documentation in
http://docs.geoserver.org/latest/en/user/services/wms/decoration.html

I am also unsure whether this is an issue with OpenLayers or with Geoserver
and would be interested to know if anyone is able to replicate the issue.

I am attaching the html sample file (basic3.html) which I think should run
on any Geoserver install.  I have also attached the XML file I am using
(show_legend) which I placed in the Geoserver Data dir as per the
documentation.

I'm also attaching the logs from the IE and Chrome call so you can see the
differences in the format options call.

If anyone has any suggestions then I would love to hear back from you.  Or
please let me know if there is any additional information I can supply that
would assist.

Thanks
Brendan
2017-05-10 13:50:18,464 INFO [geoserver.wms] - 
Request: getServiceInfo
2017-05-10 13:50:20,187 INFO [geoserver.wms] - 
Request: getMap
        Angle = 0.0
        BaseUrl = http://127.0.0.1:8080/geoserver/
        Bbox = SRSEnvelope[-1.3888944635145342E7 : -7451112.364854658, 
2867630.7173607955 : 6340929.2826392045]
        BgColor = java.awt.Color[r=255,g=255,b=255]
        Buffer = 0
        CQLFilter = null
        Crs = PROJCS["WGS 84 / Pseudo-Mercator", 
  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 latitude", NORTH], 
    AXIS["Geodetic longitude", EAST], 
    AUTHORITY["EPSG","4326"]], 
  PROJECTION["Popular Visualisation Pseudo Mercator", 
AUTHORITY["EPSG","1024"]], 
  PARAMETER["semi_minor", 6378137.0], 
  PARAMETER["latitude_of_origin", 0.0], 
  PARAMETER["central_meridian", 0.0], 
  PARAMETER["scale_factor", 1.0], 
  PARAMETER["false_easting", 0.0], 
  PARAMETER["false_northing", 0.0], 
  UNIT["m", 1.0], 
  AXIS["Easting", EAST], 
  AXIS["Northing", NORTH], 
  AUTHORITY["EPSG","3857"]]
        Elevation = []
        Env = {}
        Exceptions = SE_XML
        FeatureId = null
        FeatureVersion = null
        Filter = null
        Filters = null
        Format = image/png
        FormatOptions = {LAYOUT=show_legend}
        Get = true
        Height = 355
        Interpolations = []
        Layers = [org.geoserver.wms.MapLayerInfo@e1aa9f40]
        MaxFeatures = null
        Palette = null
        RawKvp = {REQUEST=GetMap, FORMAT=image/png, CRS=EPSG:3857, 
FORMAT_OPTIONS=layout:show_legend, 
BBOX=-13888944.635145342,2867630.7173607955,-7451112.364854658,6340929.2826392045,
 VERSION=1.3.0, STYLES=, SERVICE=WMS, WIDTH=658, HEIGHT=355, TRANSPARENT=true, 
LAYERS=topp:states}
        RemoteOwsType = null
        RemoteOwsURL = null
        Request = GetMap
        RequestCharset = UTF-8
        ScaleMethod = null
        Sld = null
        SldBody = null
        SldVersion = null
        SRS = urn:x-ogc:def:crs:EPSG:3857
        StartIndex = null
        StyleBody = null
        StyleFormat = sld
        Styles = [StyleImpl[ name=population]]
        StyleUrl = null
        StyleVersion = null
        Tiled = false
        TilesOrigin = null
        Time = []
        Transparent = true
        ValidateSchema = false
        Version = 1.3.0
        ViewParams = null
        Width = 658
Title: Test case
<layout>

    <decoration type="legend" affinity="bottom,right" offset="5,5" size="auto"/>
</layout>
2017-05-10 13:46:18,292 INFO [geoserver.wms] - 
Request: getServiceInfo
2017-05-10 13:46:29,839 INFO [geoserver.wms] - 
Request: getMap
        Angle = 0.0
        BaseUrl = http://127.0.0.1:8080/geoserver/
        Bbox = SRSEnvelope[-1.3889410683234038E7 : -7450646.316765962, 
2866465.8837246075 : 6342094.1162753925]
        BgColor = java.awt.Color[r=255,g=255,b=255]
        Buffer = 0
        CQLFilter = null
        Crs = PROJCS["WGS 84 / Pseudo-Mercator", 
  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 latitude", NORTH], 
    AXIS["Geodetic longitude", EAST], 
    AUTHORITY["EPSG","4326"]], 
  PROJECTION["Popular Visualisation Pseudo Mercator", 
AUTHORITY["EPSG","1024"]], 
  PARAMETER["semi_minor", 6378137.0], 
  PARAMETER["latitude_of_origin", 0.0], 
  PARAMETER["central_meridian", 0.0], 
  PARAMETER["scale_factor", 1.0], 
  PARAMETER["false_easting", 0.0], 
  PARAMETER["false_northing", 0.0], 
  UNIT["m", 1.0], 
  AXIS["Easting", EAST], 
  AXIS["Northing", NORTH], 
  AUTHORITY["EPSG","3857"]]
        Elevation = []
        Env = {}
        Exceptions = SE_XML
        FeatureId = null
        FeatureVersion = null
        Filter = null
        Filters = null
        Format = image/png
        FormatOptions = {DPI=94}
        Get = true
        Height = 373
        Interpolations = []
        Layers = [org.geoserver.wms.MapLayerInfo@e1aa9f40]
        MaxFeatures = null
        Palette = null
        RawKvp = {REQUEST=GetMap, FORMAT=image/png, CRS=EPSG:3857, 
FORMAT_OPTIONS=dpi:94, 
BBOX=-13889410.683234037,2866465.8837246075,-7450646.316765962,6342094.1162753925,
 VERSION=1.3.0, STYLES=, SERVICE=WMS, WIDTH=691, HEIGHT=373, TRANSPARENT=true, 
LAYERS=topp:states}
        RemoteOwsType = null
        RemoteOwsURL = null
        Request = GetMap
        RequestCharset = UTF-8
        ScaleMethod = null
        Sld = null
        SldBody = null
        SldVersion = null
        SRS = urn:x-ogc:def:crs:EPSG:3857
        StartIndex = null
        StyleBody = null
        StyleFormat = sld
        Styles = [StyleImpl[ name=population]]
        StyleUrl = null
        StyleVersion = null
        Tiled = false
        TilesOrigin = null
        Time = []
        Transparent = true
        ValidateSchema = false
        Version = 1.3.0
        ViewParams = null
        Width = 691
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to