[mapserver-users] MapCache dimensions with MapServer run time substitution
Is it possible to utilize mapcache regex dimensions with mapserver run time substitution (wms) to create a more dynamic and generic tile service Here is my basic configuration for mapserver and mapcache, I can't seem to get it working with QGIS when connecting to the WMTS For example I use run time substitution with my PG DATA settings LAYER NAME "sub_layer" ... VALIDATION 'layer_table' ^.*$' 'layer_class' '^.*$' END CONNECTIONTYPE postgis CONNECTION "port= user=user password=pw dbname=db host=mydb" DATA "the_geom from (SELECT gid, ms_color, the_geom FROM %layer_table% WHERE class='%layer_class%') AS foo USING UNIQUE gid using SRID=4326" END I set my MapCache config up with the same runtime variables as dimensions image/png true sub_layer http://testserver.com/cgi-bin/wms? source_wms composite GoogleMapsCompatible PNG 5 5 10 3600 604800 ^.*$ ^.*$ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] MapCache Dimensions
Hi list, I've been using the MapCache dimensions functionality today, and after lots of trial and error got everything working. I've added a pull request with some basic documentation - https://github.com/mapserver/docs/pull/234 (also see http://geographika.net/mapserver_docs/mapcache/dimensions.html). I've not used the TIME dimension or ASSEMBLY dimension functionality in MapCache before. If anyone has, and has some sample config / notes to add to the docs please update the pull request / reply to the list, so it can be added. Seth -- web:http://geographika.co.uk twitter: @geographika ___ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapcache dimensions and Apache module
Hi, The gmaps service does not support specifying dimensions. WMTS is iirc the only service that will support that with a x,y,z addressing scheme. The demo/wmts service should get you started as to which url templates you should be using. -- thomas On 21 janv. 2014, at 14:32, Fredéric Ameye frederic.am...@infoclimat.fr wrote: Hi, I'm trying to use the dimensions functionality in my mapcache.xml. For example : dimensions dimension type=values name=INFILE default=default.tifdefault.tif,2014.tif/dimension /dimensions I don't know how to get gmaps tiles with INFILE=2014.tif instead of default.tif. I've tried 2 things : http://localhost/mapcache/gmaps/test/0/0/0.png?INFILE=2014.tif but it doesnt work and show me default.tif instead of 2014.tif And : SetEnv INFILE 2014.tif in apache configuration. But it doesnt work either. I've also tried Nginx module and FASTCGI variables, but it doesnt work... My aim is to propose to navigate data archives. My files are updated every 30 minutes or less. Can you help me please ? Thank you ! Frederic ___ 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 dimensions and Apache module
Hi Thomas, Thank you for your help, it works like a charm now, and I can access my data archive ! Frederic 2014/1/21 Thomas Bonfort thomas.bonf...@gmail.com Hi, The gmaps service does not support specifying dimensions. WMTS is iirc the only service that will support that with a x,y,z addressing scheme. The demo/wmts service should get you started as to which url templates you should be using. -- thomas On 21 janv. 2014, at 14:32, Fredéric Ameye frederic.am...@infoclimat.fr wrote: Hi, I'm trying to use the dimensions functionality in my mapcache.xml. For example : dimensions dimension type=values name=INFILE default=default.tifdefault.tif,2014.tif/dimension /dimensions I don't know how to get gmaps tiles with INFILE=2014.tif instead of default.tif. I've tried 2 things : http://localhost/mapcache/gmaps/test/0/0/0.png?INFILE=2014.tif but it doesnt work and show me default.tif instead of 2014.tif And : SetEnv INFILE 2014.tif in apache configuration. But it doesnt work either. I've also tried Nginx module and FASTCGI variables, but it doesnt work... My aim is to propose to navigate data archives. My files are updated every 30 minutes or less. Can you help me please ? Thank you ! Frederic ___ 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