am2 Posted June 22, 2015 Report Share Posted June 22, 2015 (edited) I am going to use wms getfeatureinfo to get information of a layer without any liberary.. In fact I am using Android and Could not find anything to do that for me,So I have to get information from a manually generated URL. I have seen WMS refrence and could find requiered parameters to request from geoserver.Here is the refrence I tried to build an example url for a feature that is located in position of 7547018.12374 -3645681.16486 in ESPG 3857 My layer name is Hazard:point_4326 and I set the bbox and height and width as bbox=-2.002637639E7,-2.00489661E7,2.002637639E7,2.00489661E7&width=767&height=768 but It gives me no features were found I think the problem is with setting bbox..Here is the url that I used http://151.80.201.170/geoserver/Hazard/wms?request=GetFeatureInfo&service=WMS&version=1.1.1&layers=Hazard:point_4326&styles=&srs=EPSG%3A3875&format=image%2Fpng&bbox=-2.002637639E7,-2.00489661E7,2.002637639E7,2.00489661E7&width=767&height=768&query_layers=Hazard:point_4326&info_format=text%2Fplain&feature_count=50&x=0&y=0&exceptions=application%2Fvnd.ogc.se_xml and this is working openlayer url Can you please help me find out where I am doing wrong?thank you so much Edited June 22, 2015 by am2 Quote Link to comment Share on other sites More sharing options...
am2 Posted June 23, 2015 Author Report Share Posted June 23, 2015 Any Help?! Quote Link to comment Share on other sites More sharing options...
willywang Posted June 26, 2015 Report Share Posted June 26, 2015 This link is used for search features in WFS, may be a not bad references to you: http://www.supergeotek.com/forum/Default.aspx?g=posts&t=225 I also met the similar problems in search features with ogc service. In WFS, it has to input the query parameters in OGC formal format, like xml format rather than SQL query url types. 1 Quote Link to comment Share on other sites More sharing options...
willywang Posted June 26, 2015 Report Share Posted June 26, 2015 and also this link. It talked about the encode for querying the ogc service: http://www.supergeotek.com/forum/Default.aspx?g=posts&t=206 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.