[mapserver-users] mapcache configuration for openlayers XYZ source

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Thu Jul 11 07:26:37 PDT 2019


Hello Sacha,

according to https://mapserver.org/mapcache/sources.html#wmts-sources MapCache has no direct support for such source. You might try the support through GDAL mentioned there using a service description (https://gdal.org/drivers/raster/wmts.html#local-service-description-xml-file ).

HTH


> -----Original Message-----
> From: mapserver-users [mailto:mapserver-users-
> bounces at lists.osgeo.org] On Behalf Of Sacha Fouchard
> Sent: Thursday, July 11, 2019 10:21 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] mapcache configuration for openlayers
> XYZ source
> 
> Hi Jeff,
> I followed the link you gave and it works perfectly but for
> ol.source.tileWMS.
> I need to use ol.source.XYZ and get tiles with
> http://my.server/z/x/y.png scheme.
> In my example, i have a source: http://{1-
> 4}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png
> <http://basemaps.cartocdn.com/dark_nolabels/%7Bz%7D/%7Bx%7D/%7By%7
> D.png> , declared in openlayers as  ol.source.XYZ
> <http://ol.source.xyz/>  <http://ol.source.XYZ
> <http://ol.source.xyz/> >.
> In line, no problem. Off line, I really don't know how to cache
> it. What could be a simple mapcache configuration? and what url
> from openlayers?
> regards
> Sacha


More information about the mapserver-users mailing list