Jesper, I don't think there would be a reason for two layers group'd together to not receive the TIME substitution. If that is the case it is a bug that should be reported. As for your question, the 6.4 release got a SCALETOKEN enhancement that should do jus what you need: http://mapserver.org/development/rfc/ms-rfc-86.html
-- thomas On 4 October 2013 09:11, Jesper Kempe <jesper.ke...@gmail.com> wrote: > Hi > > We have bunch of data for different times loaded into a PostGIS-database. > This data has an id that we match to a another table containing the > geometries with a join. To get the correct data for given timestep a %TIME% > parameter from the WMS-query is used in the where clause. > > CONNECTIONTYPE postgis > DATA "the_geom from (select gid, stationname, the_geom, cout from > highres_shapes join seadata on stationname=seaareaid where > reftime='2013-10-03T07:59:00Z' and validtime = '%TIME%') as subquery using > SRID=3006 using unique gid" > > > The problem now is performance. The geometries used are very detailed so on > high zoom levels it takes a bit too long to plot all the polygons. Zoomed in > where fewer polygon are in view it takes no time to plot the image. > > I have created a simplified version of the geometries that is quite a lot > faster to draw. But this polygon can only be used on the highest levels. If > you zoom in further we need to use higher resolution. > > I have tried to create two layers with the same GROUP and different > MINSCALEDENOM and MACSCALEDENOM. That works but then I cant get the supplied > TIME-parameter in the url to be used in the db-query. > > The question for you guys now if there is another way I can switch between > the two versions (ie database tables) of the geometries based on zoom level? > > > Jesper > > _______________________________________________ > 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