Re: [mapserver-users] Mapcache - Composite cache problem

2017-01-05 Thread thomas bonfort
Hi Tom, happy new year to you to!

On Wed, Jan 4, 2017 at 5:25 PM tellett  wrote:

> Hi again and happy new year! I've tried what you suggested and managed to
> get
> the composite layer to work with this setup:
>
> 
> /cache/mapcache/topo2
> /cache/mapcache/topo2/{grid}/{z}/{x}/{y}.{ext}
> 
>
> 
> /cache/mapcache/topo2matrikkelsource
>
>
> /cache/mapcache/topo2matrikkelsource/{grid}/{z}/{x}/{y}.{ext}
> 
>
> 
> topo2
> topo2matrikkelsource
> 
>
> But I was a little bit confused about what you meant with that we could
> 'shoot ourselves in the foot' if we omit template tags? And also why we
> can't reference that cache (I presume you mean 'topo2matrikkel') from other
> tilesets?
>


 /cache/{z}/{x}/{y}.png



 mycache


 mycache


=> BOOM :) both tilesets are reading/writing to the same tiles whereas they
clearly shouldn't be. If you know they should be reading/writing the same
set of tiles you're fine

cheers,
thomas



>
> Cheers
>
> Tom
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5302008.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2017-01-04 Thread tellett
Hi again and happy new year! I've tried what you suggested and managed to get
the composite layer to work with this setup:


/cache/mapcache/topo2
/cache/mapcache/topo2/{grid}/{z}/{x}/{y}.{ext}



/cache/mapcache/topo2matrikkelsource
   
/cache/mapcache/topo2matrikkelsource/{grid}/{z}/{x}/{y}.{ext}

 

topo2
topo2matrikkelsource


But I was a little bit confused about what you meant with that we could
'shoot ourselves in the foot' if we omit template tags? And also why we
can't reference that cache (I presume you mean 'topo2matrikkel') from other
tilesets?

Cheers

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5302008.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread thomas bonfort
OK, got it, I think :)
the disk caches by default encode the tileset name in the file path it
creates, so your topo2matrikkel tileset will never be able to read tiles
belonging to the topo2 tileset. If you want to be more clever than
mapcache, you can use your own file template (), but beware that mapcache will then not prevent you
from shooting yourself in the foot if you omit to add template tags (in
your case you would need to at least add a {grid} element, and be sure to
not reference that  from other tilesets)

--
thomas

On Wed, Dec 21, 2016 at 1:05 PM tellett  wrote:

> We've compiled mapcache again from trunk with the debug set and now we get
> this info:
>
> [Wed Dec 21 13:00:08.887057 2016] [:debug] [pid 12513] mod_mapcache.c(162):
> [client 10.1.1.1:54041] calling tile_get on cache (topo2matrikkel):
> (tileset=topo2matrikkel, grid=utm33n, z=3, x=1, y=4
> [Wed Dec 21 13:00:08.887072 2016] [:debug] [pid 12513] mod_mapcache.c(162):
> [client 10.1.1.1:54041] calling tile_get on cache (topo2):
> (tileset=topo2matrikkel, grid=utm33n, z=3, x=1, y=4
> [Wed Dec 21 13:00:08.887081 2016] [:debug] [pid 12513] mod_mapcache.c(162):
> [client 10.1.1.1:54041] checking for tile
> /cache/mapcache/topo2/topo2matrikkel/utm33n/03/000/000/001/000/000/004.png
>
> So the problem is that its looking for the tile at
> /topo2/topo2matrikkel/ instead of just /topo2/. and as far as I
> can make out, this will either mean that the topo2 cache won't work (it
> does) or that the tile would have to be stored twice for topo2matrikkel to
> work, which I guess would be contary to the idea of a composite cache?
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5300864.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread tellett
We've compiled mapcache again from trunk with the debug set and now we get
this info:

[Wed Dec 21 13:00:08.887057 2016] [:debug] [pid 12513] mod_mapcache.c(162):
[client 10.1.1.1:54041] calling tile_get on cache (topo2matrikkel):
(tileset=topo2matrikkel, grid=utm33n, z=3, x=1, y=4
[Wed Dec 21 13:00:08.887072 2016] [:debug] [pid 12513] mod_mapcache.c(162):
[client 10.1.1.1:54041] calling tile_get on cache (topo2):
(tileset=topo2matrikkel, grid=utm33n, z=3, x=1, y=4
[Wed Dec 21 13:00:08.887081 2016] [:debug] [pid 12513] mod_mapcache.c(162):
[client 10.1.1.1:54041] checking for tile
/cache/mapcache/topo2/topo2matrikkel/utm33n/03/000/000/001/000/000/004.png

So the problem is that its looking for the tile at
/topo2/topo2matrikkel/ instead of just /topo2/. and as far as I
can make out, this will either mean that the topo2 cache won't work (it
does) or that the tile would have to be stored twice for topo2matrikkel to
work, which I guess would be contary to the idea of a composite cache?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5300864.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread tellett
ok, we'll give that a go and see if we can get any more info to go on. thanks
for the help.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5300857.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread thomas bonfort
ok. well I still see nothing wrong with your config file extract :(

the master branch has some more advanced debugging messages if you compile
with -DCMAKE_BUILD_TYPE=Debug and set your apache loglevel to debug, maybe
that can point you to the issue...


On Wed, Dec 21, 2016 at 11:11 AM tellett  wrote:

> topo2matrikkel has no wms service source, it should just fetch tiles from
> the
> topo2 cache from zoom level 0-12, and the topo2matrikkelsource cache from
> zoom level 13 and onwards. Therefore topo2matrikkel should be 'read-only'.
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5300833.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread tellett
topo2matrikkel has no wms service source, it should just fetch tiles from the
topo2 cache from zoom level 0-12, and the topo2matrikkelsource cache from
zoom level 13 and onwards. Therefore topo2matrikkel should be 'read-only'.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828p5300833.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread thomas bonfort
conf seems correct. topo2matrikkel has no , could that be it?

On Wed, Dec 21, 2016 at 10:51 AM tellett  wrote:

> Hi all,
>
> I'm trying to use a composite cache in my mapcache instance but am not
> having any luck. I've set up the configuration file as best I can in
> accordance with the documentation, and I have the tileset (topo2matrikkel)
> as an option in the demo client, but only blank tiles are shown. no error
> messages are returned. My config file looks like  this:
>
> -CACHES
> 
> 
> /cache/mapcache/topo2
> 
> 
> /cache/mapcache/topo2matrikkelsource
> 
> 
> topo2
> topo2matrikkelsource
> 
>
> TILESET--
> 
> topo2
> topo2
> 
> Topografisk Norgeskart
> Cache for topo2 produkten
> 
> 
> googlemaps
> utm33n
> crs84quad
> PNG
> 8 8
> 10
> 
> 
> topo2matrikkel
> 
> Matrikkel klient bakgrunnskart
> 
> 
> utm33n
> PNG
> 
>
> --
>
> I've checked that there are tiles in the topo2 cache, and yes that cache
> does support utm33n and png.
> I can run exactly the same request for both the topo2 and topo2matrikkel
> tilesets (
>
> REQUEST=GetTile=1.0.0=topo2matrikkel=default=utm33n=2=1=1=image%2Fpng)
> but only the topo2 request returns data. Perhaps I've missunderstood
> something fundamental here?
>
> Thanks in advance for any help,
>
> Tom
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Mapcache - Composite cache problem

2016-12-21 Thread tellett
Hi all,

I'm trying to use a composite cache in my mapcache instance but am not
having any luck. I've set up the configuration file as best I can in
accordance with the documentation, and I have the tileset (topo2matrikkel)
as an option in the demo client, but only blank tiles are shown. no error
messages are returned. My config file looks like  this:

-CACHES 

/cache/mapcache/topo2


/cache/mapcache/topo2matrikkelsource


topo2
topo2matrikkelsource

TILESET--

topo2
topo2

Topografisk Norgeskart
Cache for topo2 produkten


googlemaps
utm33n
crs84quad
PNG
8 8
10


topo2matrikkel

Matrikkel klient bakgrunnskart


utm33n
PNG

--

I've checked that there are tiles in the topo2 cache, and yes that cache
does support utm33n and png.
I can run exactly the same request for both the topo2 and topo2matrikkel
tilesets (
REQUEST=GetTile=1.0.0=topo2matrikkel=default=utm33n=2=1=1=image%2Fpng)
but only the topo2 request returns data. Perhaps I've missunderstood
something fundamental here?

Thanks in advance for any help,

Tom



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapcache-Composite-cache-problem-tp5300828.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users