Jump to content
Sign in to follow this  
am2

Generate WMS GetFeatureInfo URL manually

Recommended Posts

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 by am2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.