Jump to content

Generate WMS GetFeatureInfo URL manually


am2

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
Link to comment
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.

×
×
  • Create New...

Important Information

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

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist