Hi Andrea, 

I think I sorted it out. Everything does work great against the WMS server url 
just as you posted.

Request: getFeatureInfo GetMapRequest = GetMap Request version: 1.1.1 output 
format: image/png width height: 330,780 bbox: ReferencedEnvelope[-117.172779 : 
-29.176632, 30.733363 : 67.962502] layers: topp:states styles: population 
QueryLayers = [org.geoserver.wms.MapLayerInfo@e1aa9XPixel = 46 YPixel = 320 
FeatureCount = 50 InfoFormat = text/html Exceptions = application/ 
vnd.ogc.se_xml Version = 1.1.1 Request = GetFeatureInfo Get = false RawKvp = 
{INFO_FORMAT=text/html, BBOX=-117.172779,30.733363,-29.176632,67.962502, 
QUERY_LAYERS=topp:states, SERVICE=WMS, HEIGHT=330, REQUEST=GetFeatureInfo, 
STYLES=, WIDTH=780, FEATURE_COUNT=50, EXCEPTIONS=application/vnd.ogc.se_xml, 
VERSION=1.1.1, FORMAT=image/png, LAYERS=topp:states, Y=320, X=46, 
SRS=EPSG:4326} BaseUrl = http:// postgis.induscorp.com:8080/geoserver/ 
RequestCharset = null 

But in my case I am hitting the GWC endpoint!

GetMapRequest = GetMap Request version: 1.1.1 output format: image/png width 
height: 780,330 bbox: ReferencedEnvelope[-117.172779 : -29.176632, 30.733363 : 
67.962502] layers: topp:states styles: population QueryLayers = 
[org.geoserver.wms.MapLayerInfo@e1aa9XPixel = 46 YPixel = 320 FeatureCount = 1 
InfoFormat = text/html Exceptions = application/ vnd.ogc.se_xml Version = 1.1.1 
Request = GetFeatureInfo Get = false RawKvp = {INFO_FORMAT=text/html, 
BBOX=-117.172779,30.733363,-29.176632,67.962502, QUERY_LAYERS=topp:states, 
SERVICE=WMS, HEIGHT=780, REQUEST=GetFeatureInfo, STYLES=, WIDTH=330, 
EXCEPTIONS=application/ vnd.ogc.se_xml, VERSION=1.1.1, FORMAT=image/png, 
LAYERS=topp:states, Y=320, X=46, SRS=EPSG:4326} BaseUrl = 
http://localhost:8080/ geoserver/ RequestCharset = null 

Backwards! 

Cheers,

Paul

----- Reply message -----
From: "Andrea Aime" <[email protected]>
To: "Paul Dziemiela" <[email protected]>
Cc: <[email protected]>
Subject: [Geoserver-users] WMS getFeatureInfo problem in 2.1 RC5
Date: Fri, May 6, 2011 6:51 am


On Fri, May 6, 2011 at 11:35 AM, Paul Dziemiela <[email protected]> wrote:
> Thanks so much for the fast response!
>
> Well that’s good to know.  I am still kind of confused though.  In your
> example your map is 780x330 and it’s the top part of your log that is
> backwards but the RawKVP dump is correct.  In my case it seems to be the
> reversed.  I tried it again.  My map is 850 wide by 450 tall as passed in
> but the RawKvp dump is backwards for me.
>
> Request: getFeatureInfo
>        GetMapRequest =
> GetMap Request
>  version: 1.1.1
>  output format: text/plain
>  width height: 850,450
>  bbox: ReferencedEnvelope[-9777028.607694 : -9772967.890567, 5275247.612611
> : 5277397.404031]
>  layers: waters:nwi_county_pg
>  styles: nwi
>        QueryLayers = [org.geoserver.wms.MapLayerInfo@12b24712]
>        XPixel = 9
>        YPixel = 23
>        FeatureCount = 1
>        InfoFormat = text/plain
>        Exceptions = application/vnd.ogc.se_xml
>        Version = 1.1.1
>        Request = GetFeatureInfo
>        Get = false
>        RawKvp = {INFO_FORMAT=text/plain,
> BBOX=-9777028.607694,5275247.612611,-9772967.890567,5277397.404031,
> QUERY_LAYERS=nwi, SERVICE=WMS, HEIGHT=850, REQUEST=GetFeatureInfo, STYLES=,
> WIDTH=450, EXCEPTIONS=application/vnd.ogc.se_xml, VERSION=1.1.1,
> FORMAT=text/plain, LAYERS=nwi, Y=23, X=9, SRS=EPSG:900913}
>        BaseUrl = http://localhost:8080/geoserver/
>        RequestCharset = null
>
> Here is the exact request without the proxy
> http://postgis.induscorp.com:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERS
> ION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=nwi&QUERY_LAYERS=nwi&STYLES=&BBOX=-9
> 777028.607694,5275247.612611,-9772967.890567,5277397.404031&FEATURE_COUNT=10
> &HEIGHT=450&WIDTH=850&FORMAT=image/png&INFO_FORMAT=text/plain&SRS=EPSG:3857&
> X=99&Y=230
> So when I click on the map on the far right side I get
>
> 06 May 04:56:41 ERROR [geoserver.ows] -
> org.geoserver.platform.ServiceException: 778, 240 not in dimensions of
> image: 450, 850
>        at
> org.geoserver.wms.featureinfo.GetFeatureInfoKvpReader.read(GetFeatureInfoKvp
> Reader.java:154)
>        at
> org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1144)
>        at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:482)
>        at
> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:226)
>        at
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstrac
> tController.java:153)
>        at
> org.geowebcache.layer.wms.WMSGeoServerHelper.makeRequest(WMSGeoServerHelper.
> java:69)
>        at
> org.geowebcache.layer.wms.WMSSourceHelper.makeFeatureInfoRequest(WMSSourceHe
> lper.java:114)
>        at
> org.geowebcache.layer.wms.WMSLayer.getFeatureInfo(WMSLayer.java:239)
>        at
> org.geowebcache.service.wms.WMSService.handleGetFeatureInfo(WMSService.java:
> 286)
>        at
> org.geowebcache.service.wms.WMSService.handleRequest(WMSService.java:212)
>        at
> org.geowebcache.GeoWebCacheDispatcher.handleServiceRequest(GeoWebCacheDispat
> cher.java:330)
>        at
> org.geowebcache.GeoWebCacheDispatcher.handleRequestInternal(GeoWebCacheDispa
> tcher.java:241)
> ...
>
> Any idea what I could be doing incorrectly?  It's just a single feature
> request against a single layer.

No idea. I'd need the data, style and request to reproduce locally
If this persists open a bug report on jira.codehaus.org and attach there
data, style and request.

Cheers
Andrea



-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to