for each value of parcel no: in http://www.ma-investment.gov.bh/bps_ppd_en/ the map generates polygons.
I want to extract xy values corresponding to polygon shapes which i can convert to longitude,latitude using gpoint.php
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
If you look at what is coming back from the server, by looking at the Network tab of Developer Tools, eg, in Chrome or Firefox, CTRLSHIFTI, then choose
Network Tab, you will see a URL such as the following, http://www.ma-investment.gov.bh/bps_ppd_en/ESRI.ArcGIS.ADF.Web.MimeImage.ashx?ImgID=39a0cec7-30f8-4291-8dce-1b2509b2fe62&CacheTime=1&kc=1 resulting in an image, as below.
What this means is that the polygons are being drawn directly onto the backdrop mapping server-side, and a WMS image is being sent back. Therefore, there is no direct way of scraping the underlying polygon data, as it is never sent to the server. You could use some kind of image processing tool to extract all the pixels of a given color and then reconvert to vectors, though this would be non-trivial, depending on the output scales you are interested in.