[OpenLayers-Users] GetFeatureInfo request returns 'X and Y
incorrectly specified' error
Tito, Joseph
Joseph.Tito at cobham.com
Fri Sep 30 10:20:16 EDT 2011
I'm creating a simple GetFeatureInfo() request to grab info on points
when a user clicks on my map, and GeoServer is now returning the
following exception.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://geoserver.joetito.com:80/geoserver/schemas/wms/1.1.1/WMS_excepti
on_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" >
<ServiceException code="InvalidPoint"> X and Y incorrectly specified
Details: org.geoserver.platform.ServiceException: X and Y incorrectly
specified at
org.geoserver.wms.featureinfo.GetFeatureInfoKvpReader.read(GetFeatureInf
oKvpReader.java:162) at
org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1157) at
org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:488) at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:231)
Here is how I am creating the request:
map.events.register('click', map, findFeaturesAtLocationOnClick);
// Register users click
function findFeaturesAtLocationOnClick(event) {
mouseLocation = map.getLonLatFromPixel(event.xy);
var url = events.getFullRequestString({
REQUEST:
"GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
BBOX:
map.getExtent().toBBOX(),
X:
event.xy.x,
Y:
event.xy.y,
INFO_FORMAT: 'text/plain',
QUERY_LAYERS: 'events',
FEATURE_COUNT: 100,
WIDTH:
map.size.w,
HEIGHT:
map.size.h},
wmsURL);
OpenLayers.loadURL(url, '', this, setPopupHTML);
}
function setPopupHTML(response) {
// In this function, the response contains the exception
I mentioned above
}
This was working a while ago, but I can't seem to figure out what I
changed that is now making this fail L
Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110930/1992fcaf/attachment.html
More information about the Users
mailing list