Re: [mapserver-users] mapcache configuration for openlayers XYZ source

2019-07-11 Thread Eichner, Andreas - SID
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-
> boun...@lists.osgeo.org] On Behalf Of Sacha Fouchard
> Sent: Thursday, July 11, 2019 10:21 AM
> To: mapserver-users@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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache configuration for openlayers XYZ source

2019-07-11 Thread Sacha Fouchard
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, declared
in openlayers as  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



--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache configuration for openlayers XYZ source

2019-07-11 Thread Sacha Fouchard
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
,
declared in openlayers as  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
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] mapcache configuration for openlayers XYZ source

2019-07-10 Thread Jeff McKenna
I don't know that it applies directly to your current needs, but there 
is a wiki page outlining specific steps to enable OpenLayers + MapCache 
at https://ms4w.com/trac/wiki/MapCacheOpenLayers


-jeff




--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/



On 2019-07-10 10:12 AM, Sacha Fouchard wrote:

Dear mapserver users,
I am pretty new with mapcache configuration and try without success to 
manage an openlayers 4 ol.source.XYZ  cache.
Url I need to cache is: 
http://{1-4}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png 


This is working in openlayers directly.
For a mapcache use, what would be the simplest mapcache.xml configuration?

For ol.source.TileWMS, i fallowed mapcache configuration example and it 
works prefectly.


Best regards for all of you.



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] mapcache configuration for openlayers XYZ source

2019-07-10 Thread Sacha Fouchard
Dear mapserver users,
I am pretty new with mapcache configuration and try without success to
manage an openlayers 4  ol.source.XYZ cache.
Url I need to cache is: http://{1-4}.
basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png
This is working in openlayers directly.
For a mapcache use, what would be the simplest mapcache.xml configuration?

For ol.source.TileWMS, i fallowed mapcache configuration example and it
works prefectly.

Best regards for all of you.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users