0

I have the website, from where I would like to extract the WMS layers to some versatile GIS format.

enter image description here

There are a lot of blocks bounded in 256x256 squares, defined with proper coordinates like you see below:

https://xxxx/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=%2FTH8D9%2F35KMJpR1m98p1%2Bw%3D%3D&NAME=PORTAL&WIDTH=256&HEIGHT=256&CRS=EPSG%3A27700&STYLES=&BBOX=358078.8161658001%2C172650.44995214092%2C358227.39658744563%2C172799.0303737865

especially:

WIDTH=256&HEIGHT=256&CRS=EPSG%3A27700&STYLES=&BBOX=358078.8161658001%2C172650.44995214092%2C358227.39658744563%2C172799.0303737865

The image, you see below can be saved as png only under the wms.png name.

Unfortunately I can't open it via link, as I receive bad request.

I tried to launch it in QGIS (add WMS layer)

https://www.qgistutorials.com/en/docs/working_with_wms.html

but with no results at all (3 errors caused by site security I guess)

The issue is similar to this one:

Cannot access GeoServer WMS

with this difference, but I can take a look at the square and download it as .png

I would like to run the given layer somewhere with size and location details defined in the permalink described above. Next, I would like to extract it to .kml .geojson .shp or something like this.

Is it possible at all?

UPDATE:

There are other ways I tried, but unfortunately, they weren't successful.

  1. I checked, that along with the infrastructure boxes, the Ordnance Survey map tiles are available, but they come from the other website. enter image description here no "Bad request" error is observed:

Example tile here

  1. In the Chrome inspector if I select Network, tthen I have all these items listed (like in the image above), by the right-click of one of them I can select Copy -> Copy response, then I am able to get it opened in the browser instead of Copy link address, which gives me the "Bad request" error as mentioned above.

The examples of "Copy response" option, which gives me access to the pieces of infrastructure available in the boxes. The links are far too long, so I placed just the texts with link below:

Infrastructure Box

Infrastructure Box 2

  1. The infrastructure boxes behave like tiles. It means, that if I zoom they in, the text, for instance is accordingly smaller with respect to the element.

  2. All the image tiles seems to be .png format as in the link starts from:

    data:image/png;base64

  3. It must be an option to get them vectorized, because the data is downloadable on their website and exportable to the .csv format.

enter image description here

The site requires login and password. Otherwise the link doesn#t work and redirects to the login page. Is it the reason behind the aforementioned "Bad request"?

Can anyone advise what to do. Is there any option to get this data in QGIS or at least download it as the .gejson, .shp and so on?

8
  • So, can you access the actual WMS-link in QGIS, or not? Why are you talking about images? Generally speaking WebMapServices are exactly this: Services. They serve you raster tiles of the area you're currently looking at in your map canvas. You usually can't download WMS-data, and if you did, you would only get raster data, no vectors.
    – Erik
    May 19 at 10:36
  • No I can't access them in QGIS, I wish I could.
    – MKR
    May 19 at 10:38
  • Try to see if there is an hidden https://xxxx/wfs?SERVICE=WFS&VERSION=1.1.1&request=GetCapabilities. If yes, it means you can get layers as vector and you will be able to do a GetFeature e.g https://xxxx/wfs?SERVICE=WFS&VERSION=1.1.1&request=GetFeature& typeNames=yourlayname
    – ThomasG77
    May 19 at 10:54
  • A WMS service returns a picture of the data you can not reliably extract meaningful information from it - if you require actual data you must use a WFS or WCS endpoint to fetch actual data.
    – Ian Turton
    May 19 at 11:05
  • In both cases an effect still the same: Bad request. As per this link: kinsta.com/knowledgebase/400-bad-request simething must be wrong in the link like %%20 instead of %20 and so on, but I can't see anything suspicious
    – MKR
    May 19 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.