On Fri, May 6, 2011 at 1:28 AM, Paul Dziemiela <[email protected]> wrote: > Hi folks, > > > > I am sending a getFeatureInfo request to geoserver 2.1 RC5 and getting back > errors that the click point is “not in dimensions of image”. > > I am puzzled as when I look at the log it appears as if the RawKvp has the > width and height backwards. > > > > 05 May 15:50:33 INFO [geoserver.wms] - > > > > 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 query, the width should be 850. > > > > http://postgis.induscorp.com/cgi-bin/proxy.cgi?url= > > http://postgis.induscorp.com:8080/geoserver/gwc/service/wms > > ?SERVICE=WMS > > &VERSION=1.1.1 > > &REQUEST=GetFeatureInfo > > &LAYERS=nwi > > &QUERY_LAYERS=nwi > > > &STYLES=&BBOX=-9777028.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=9 > > &Y=23 > > > > I am doing something to confuse geoserver?
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=application%2Fvnd.ogc.se_xml&BBOX=-117.172779%2C30.733363%2C-29.176632%2C67.962502&SERVICE=WMS&VERSION=1.1.1&X=46&Y=320&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=topp%3Astates&FEATURE_COUNT=50&Layers=topp%3Astates&Styles=&WIDTH=780&HEIGHT=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
