[mapserver-users] problem with mapserver as wms client

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Mon Sep 4 12:34:39 PDT 2017


Hi,


WMS and WMTS are different services. While Mapserver does support cascading WMS as documented in http://mapserver.org/ogc/wms_client.html it can't cascade WMTS which means that this will not work


  CONNECTIONTYPE WMS
  CONNECTION "https://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities.xml"


It may be possible to cascade WMTS with GDAL connection through this driver

http://gdal.org/frmt_wmts.html.<http://gdal.org/frmt_wmts.html> The Mapserver part could then be somehow similar than in this ticket https://trac.osgeo.org/mapserver/ticket/3804 but I haven't tried anything like that and I could not find anything about how to cascade WMTS from the Mapserver documentation.



-Jukka Rahkonen-




________________________________
Lähettäjä: mapserver-users <mapserver-users-bounces at lists.osgeo.org> käyttäjän puolestaSusanne Kalliany <susanne.kalliany at tefis.at>
Lähetetty: 2. syyskuuta 2017 1:05
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] problem with mapserver as wms client

I have some problems adding a WMTS layer from an Austrian goverment
server ...

https://basemap.at  OR
https://basemap.at/index_en.html

... into an (yet for years !) reliable running mapserver-service.

I am able to import the layer(s) offered there (various Versions of OSM
and Austrian topo maps an - most of all - Orthophotos for whole of Austria
at 20 cm GSD resolution) from basemap.at into openlayers.

But I need to provide those data right now to my users !

That is already before I will be able to replace the current Mapserver
installation by a totally renewed version (with OpenLayers integrated).

Thereforefore, right now I would need the appropriate WMTS-call
intgrated in the current mapfile.

I am pretty desperate, any help would be MUCH appreciated !

thanks a lot,
Susanne

> MAP-File
> ===========
>
> MAP
> NAME mymap
> STATUS ON
> SIZE 1000 1000
>
> PROJECTION
>    "init=epsg:3857"
> END
>
> EXTENT 1673000 6024000 1683000 6034000
>
> WEB
>     IMAGEPATH "/ms4w/tmp/ms_tmp/"
>     IMAGEURL "/ms_tmp/"
>      METADATA
>         "wms_title"      "TEST"
>         "wms_onlineresource" "http://localhost/cgi-bin/mapserv?"
>                 "wms_srs" "EPSG:3857"
>         "wms_enable_request" "*"
>     END
> END
>
> DEBUG 5
> CONFIG "MS_ERRORFILE" "/ms4w/Apache/logs/myerror.log"
>
> LAYER
>         NAME "bmaporthofoto30cm"
>         TYPE RASTER
>         DEBUG 5
>         STATUS ON
>         TEMPLATE "dummy.html"
>         UNITS METERS
>
>     CONNECTIONTYPE WMS
>     CONNECTION
> "https://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities.xml"
>
>         METADATA
>             WMS_NAME  'bmaporthofoto30cm'
>             wms_srs "EPSG:3857"
>       wms_server_version "1.0.0"
>       wms_format "image/jpeg"
>         END  #Metadata
>         PROJECTION
>            "init=epsg:3857"
>       END
> END # LAYER
> END
>
> Error
> =====
> [Fri Aug 25 03:53:50 2017].757000 msLoadMap(): 0.000s
> [Fri Aug 25 03:53:50 2017].772000 msDrawMap(): rendering using
> outputformat named png (AGG/PNG).
> [Fri Aug 25 03:53:50 2017].772000 HTTP: Starting to prepare HTTP
> requests.
> [Fri Aug 25 03:53:50 2017].772000 Using
> CURL_CA_BUNDLE=/ms4w/Apache/conf/ca-bundle/cacert.pem
> [Fri Aug 25 03:53:50 2017].772000 HTTP request: id=0,
> https://maps.wien.gv.at/basemap/1.0.0/WMTSCapabilities.xml?LAYERS=bmaporthofoto30cm&REQUEST=map&WMTVER=1.0.0&SERVICE=WMS&FORMAT=image/jpeg&STYLES=&HEIGHT=1200&QUERY_LAYERS=bmaporthofoto30cm&SRS=EPSG:3857&WIDTH=1600&BBOX=1671327.77314429,6023995.82985822,1684672.22685571,6034004.17014178&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml
> [Fri Aug 25 03:53:50 2017].772000 HTTP: Before download loop
> [Fri Aug 25 03:53:52 2017].7000 msHTTPWriteFct(id=0, 8131 bytes)
> [Fri Aug 25 03:53:52 2017].7000 msHTTPWriteFct(id=0, 61 bytes)
> [Fri Aug 25 03:53:52 2017].85000 msHTTPWriteFct(id=0, 7300 bytes)
> [Fri Aug 25 03:53:52 2017].85000 msHTTPWriteFct(id=0, 892 bytes)
> [Fri Aug 25 03:53:52 2017].85000 msHTTPWriteFct(id=0, 4228 bytes)
> [Fri Aug 25 03:53:52 2017].85000 HTTP: After download loop
> [Fri Aug 25 03:53:52 2017].85000 msHTTPExecuteRequests() timing
> summary per layer (connect_time + time_to_first_packet + download_time
> = total_time in seconds)
> [Fri Aug 25 03:53:52 2017].85000 Layer 0: 0.094 + 1.141 + 0.172 =
> 1.407s
> [Fri Aug 25 03:53:52 2017].85000 msDrawMap(): WMS/WFS set-up and
> query, 1.313s
> [Fri Aug 25 03:53:52 2017].85000 WMS GetMap request got XML exception
> for layer 'bmaporthofoto30cm': <?xml version="1.0" encoding="UTF-8"?>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170904/270ab36b/attachment.htm>


More information about the MapServer-users mailing list