WMS & Proxy

Jul 26, 2016 at 12:47 PM
Hi,

I'm about to start a new application-development (VB.NET) for my new employer.
I need to load WMS and WFS layers that can only be accessed via proxy.
(Using MapWinGis for years now.)

I don't know how to realise this. Is it even possible?
Any help is appreciated!
Coordinator
Sep 27, 2016 at 1:46 PM
Sorry about the late response.

You can use a GDAL VRT file to load WMS and WFS layers. I think you can add proxies as well.

Regards,

Paul
Oct 22, 2016 at 1:49 PM
Hi do you have an example?
May 4 at 2:23 PM
Hi,

this is still a problem, I'm working on.
I tried Pauls recommendation, but instead of a GDAL VRT I used a GDAL XML to load then WMS-Service.
The XML looks like this:
<GDAL_WMS>
  <Service name="WMS">
    <Version>1.1.1</Version>
    <ServerUrl>http://geoserver.xxx/wms/xxx.fcgi?</ServerUrl>
    <SRS>EPSG:25832</SRS>
    <ImageFormat>image/png</ImageFormat>
    <Layers>layername</Layers>
  </Service>
  <DataWindow>
    <UpperLeftX>292000</UpperLeftX>
    <UpperLeftY>5650000</UpperLeftY>
    <LowerRightX>472000</LowerRightX>
    <LowerRightY>5420000</LowerRightY>
    <SizeX>2666666</SizeX>
    <SizeY>1333333</SizeY>
  </DataWindow>
  <Projection>EPSG:25832</Projection>
  <UserPwd>USERNAME:PASSWORD</UserPwd> --Username and Pasword for the HTTP-Proxy
  <OverviewCount>10</OverviewCount>
 </GDAL_WMS>
I loaded this XML via AxMap1.LoadLayerFromFilename.

This works on some Services.
It has a number of drawbacks:
  • I can't add this layer to the legend.
  • I need to store a XML-file for every layer.
  • This XML-file contains the username and password (security issue!).
  • Performance is not so nice..
  • Some WMS-Services don't work.
Cheers
Burkhart