GeoServer - GWC Integration & GIF image render
----------------------------------------------

                 Key: GEOS-4572
                 URL: http://jira.codehaus.org/browse/GEOS-4572
             Project: GeoServer
          Issue Type: Bug
          Components: GWC, WMS
    Affects Versions: 2.1.0
            Reporter: Senthilruban Puvanendran
            Assignee: Andrea Aime


Currently i'm using getMap service call through GWC-inbuilt Geoserver to cache 
the layer on-the-fly. Recently i upgraded to 2.1.0 and giving problem with GIF 
image format and found few insteresting findings which i listed below.

The getMap request like below:
http://localhost:8080/geoserver/gwc/service/wms?LAYERS=TEST_LAND_LAYER_GROUP&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=19567879.2367,-5009377.0856,19724422.2706,-4852834.0517&WIDTH=256&HEIGHT=256

1) Even though height and width were set to 256, i can see in the geoserver 
logs as 1024 and final co-ordinates also changed in the geoserver logs

----------------------------------------------
2011-05-25 13:04:13,637 DEBUG [org.geoserver.wms.map] - setting up 1024x1024 
image
2011-05-25 13:04:13,638 DEBUG [org.vfny.geoserver.responses.wms.map] - setting 
to transparent
2011-05-25 13:04:19,638 INFO [org.geoserver.wms] -
Request: getMap
        Time = null
        Filter = null
        Buffer = 0
        Format = image/gif
        Height = 1024
        Width = 1024
        Filters = null
        Exceptions = application/vnd.ogc.se_xml
        Styles = [StyleImpl[ name=test_land_block], StyleImpl[ 
name=test_district_boundary]]
        SRS = EPSG:900913
        Legend = false
        Layers = [org.geoserver.wms.MapLayerInfo@786ee23b, 
org.geoserver.wms.MapLayerInfo@efd03da9]
        MaxFeatures = null
        Bbox = ReferencedEnvelope[1.9411336204375003E7 : 2.003750834E7, 
-5009377.085000001 : -4383204.949375]
        FormatOptions = {}
        Angle = 0.0
        CQLFilter = null
        Elevation = NaN
        FeatureId = null
        Palette = null
        RemoteOwsType = null
        RemoteOwsURL = null
        Sld = null
        SldBody = null
        StartIndex = null
        ViewParams = {}
        Tiled = false
        Crs = PROJCS["WGS84 / Google 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["Longitude", EAST],
    AXIS["Latitude", NORTH],
    AUTHORITY["EPSG","4326"]],
  PROJECTION["Mercator_1SP"],
  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["x", EAST],
  AXIS["y", NORTH],
  AUTHORITY["EPSG","900913"]]
        Env = {}
        BgColor = java.awt.Color[r=255,g=255,b=255]
        Transparent = true
        FeatureVersion = null
        ValidateSchema = false
        SldVersion = null
        TilesOrigin = null
        KMScore = 40
        KMattr = true
        Version = 1.1.1
        Request = GetMap
        Get = true
        RawKvp = 
{BBOX=1.9411336204375003E7,-5009377.085000001,2.003750834E7,-4383204.949375, 
TRANSPARENT=TRUE, EXCEPTIONS=application/vnd.ogc.se_xml, VERSION=1.1.1, 
FORMAT=image/gif, SERVICE=WMS, HEIGHT=1024, LAYERS=TEST_LAND_LAYER_GROUP, 
REQUEST=GetMap, STYLES=, WIDTH=1024, SRS=EPSG:900913}
        BaseUrl = http://localhost:8080/geoserver/
        RequestCharset = UTF-8
-------------------------------------------------------

2) However when i changed the request, image format to PNG. it works fine. Due 
to PNG format rendering issue with browser, i can not go-ahead with that. Seems 
it get affected only for GIF format.

3) When i tried to access directly, not through GWC, It looks fine. but not 
transparent image and not cache the images even though checkbox ticked in 
"Enable direct WMS integration" (which seems only check whether any cached 
image exists, but not create tile cache)

http://localhost:8080/geoserver/wms?LAYERS=TEST_LAND_LAYER_GROUP&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=19567879.2367,-5009377.0856,19724422.2706,-4852834.0517&WIDTH=256&HEIGHT=256

2011-05-25 13:02:56,304 INFO [org.geoserver.wms] -
Request: getMap
        Time = null
        Filter = null
        Buffer = 0
        Format = image/gif
        Height = 256
        Width = 256
        Filters = null
        Exceptions = application/vnd.ogc.se_inimage
        Styles = [StyleImpl[ name=test_land_block], StyleImpl[ 
name=test_district_boundary]]
        SRS = EPSG:900913
        Legend = false
        Layers = [org.geoserver.wms.MapLayerInfo@786ee23b, 
org.geoserver.wms.MapLayerInfo@efd03da9]
        MaxFeatures = null
        Bbox = ReferencedEnvelope[1.95678792367E7 : 1.97244222706E7, 
-5009377.0856 : -4852834.0517]
        FormatOptions = {}
        Angle = 0.0
        CQLFilter = null
        Elevation = NaN
        FeatureId = null
        Palette = null
        RemoteOwsType = null
        RemoteOwsURL = null
        Sld = null
        SldBody = null
        StartIndex = null
        ViewParams = {}
        Tiled = false
        Crs = PROJCS["WGS84 / Google 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["Longitude", EAST],
    AXIS["Latitude", NORTH],
    AUTHORITY["EPSG","4326"]],
  PROJECTION["Mercator_1SP"],
  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["x", EAST],
  AXIS["y", NORTH],
  AUTHORITY["EPSG","900913"]]
        Env = {}
        BgColor = java.awt.Color[r=255,g=255,b=255]
        Transparent = false
        FeatureVersion = null
        ValidateSchema = false
        SldVersion = null
        TilesOrigin = null
        KMScore = 40
        KMattr = true
        Version = 1.1.1
        Request = GetMap
        Get = true
        RawKvp = {BBOX=19567879.2367,-5009377.0856,19724422.2706,-4852834.0517, 
EXCEPTIONS=application/vnd.ogc.se_inimage, VERSION=1.1.1, FORMAT=image/gif, 
SERVICE=WMS, HEIGHT=256, REQUEST=GetMap, LAYERS=TEST_LAND_LAYER_GROUP, STYLES=, 
SRS=EPSG:900913, WIDTH=256}
        BaseUrl = http://localhost:8080/geoserver/
        RequestCharset = UTF-8


Based on above observations, I suspect there two issues or i missed few 
additional configurations:
1. GIF image tile cache generation broken
2. There are few conversion on parameters when getMap request comes through GWC 
to GeoServer



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to