[OpenLayers-Users] Problems with OL WMSGetFeatureInfo and Geoserver.
Bart van den Eijnden
bartvde at opengeo.org
Fri Oct 19 09:58:29 PDT 2012
There might have been a bug in OL 2.11 can you try upgrading to 2.12?
Something to do with floating point values of X and Y IIRC.
Bart
Sent from my iPhone
On Oct 19, 2012, at 6:53 PM, Luis Miguel Royo Perez <luis.miguel.royo at gmail.com> wrote:
> On 19/10/12 15:33, Bart van den Eijnden wrote:
>> What versions of OpenLayers and GeoServer?
>>
>> Can you copy paste the request and response?
>>
>> Best regards,
>> Bart
>>
>> --
>> Bart van den Eijnden
>> OpenGeo - http://opengeo.org
>> Expert service straight from the developers.
>>
>>
>>
>> On Oct 19, 2012, at 3:31 PM, Luis Miguel Royo Perez <luis.miguel.royo at gmail.com> wrote:
>>
>>> Hi everyone,
>>>
>>> I'm new with OL and I have some troubles and questions.
>>>
>>>
>>> I can't get info from WMS layers served with Geoserver (in localhost), i have the same problem with the default layer in Geoserver, when I try to pick info, Geoserver says me this "X and Y incorrectly specified ". I think both troubles have the same cause, but I can't find out. Any ideas?
>>>
>>>
>>> In the other hand, i would like pick only one field of the WMS layer and pass this as object to a PHP select consult. Can I do this or my imagination is going too far?
>>>
>>> Thanks.
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> The version of openlayers is 2.11, the version of Geoserver is 2.1.3.
>
> I'm asking the info with this:
>
> var captInfo = new OpenLayers.Control.WMSGetFeatureInfo({url:"http://localhost:8080/geoserver/SGT/wms",layers:[villas],queryVisible:true});
>
> captInfo.events.register("getfeatureinfo",this,mostrarInfo);
>
> map.addControl(captInfo);
>
> function mostrarInfo(evt) {$('pinfo').innerHTML = evt.text;};
>
> The response is: nothing appears in the div, appears in blank, no errors in firebug, nothing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121019/50c625d2/attachment.html>
More information about the Users
mailing list