Thanks so much for the fast response!
Well thats good to know. I am still kind of confused though. In your
example your map is 780x330 and its 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.
Thanks!
Paul
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Andrea Aime
Sent: Friday, May 06, 2011 3:23 AM
To: Paul Dziemiela
Cc: [email protected]
Subject: Re: [Geoserver-users] WMS getFeatureInfo problem in 2.1 RC5
I've tried with various sources and GetFeatureInfo works for me on all of
them,
can't get the error you say.
When comparing the request to the logs I've spotted on difference, but
it's harmless.
This is the request:
http://localhost:8080/geoserver/topp/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=a
pplication%2Fvnd.ogc.se_xml&BBOX=-117.172779%2C30.733363%2C-29.176632%2C67.9
62502&SERVICE=WMS&VERSION=1.1.1&X=46&Y=320&INFO_FORMAT=text%2Fhtml&QUERY_LAY
ERS=topp%3Astates&FEATURE_COUNT=50&Layers=topp%3Astates&Styles=&WIDTH=780&HE
IGHT=330&format=image%2Fpng&srs=EPSG%3A4326
and this was the log:
Request: getFeatureInfo
Exceptions = application/vnd.ogc.se_xml
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@e1aa9f40]
XPixel = 46
YPixel = 320
FeatureCount = 50
InfoFormat = text/html
Version = 1.1.1
Request = GetFeatureInfo
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}
Get = false
BaseUrl = http://localhost:8080/geoserver/
RequestCharset = null
The width and height at the top of the log were swapped compared to the
request
and the rawkvp, but this was just a simple error in the
GetMapRequest.toString()
that I'm going to commit a fix for rigth away.
The "raw kwp" is named like this because we get it directly from the
http request,
without touching it.
Are you use the request is really the one you pasted?
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