Hi Trygve, It might not be what you need but LAYER PROCESSING allows for run-time substitution: https://mapserver.org/cgi/runsub.html#parameters-supported
So you could control it from a URL/client-application, but obviously this wouldn't be getting values from the database. Seth -- web:https://geographika.net & https://mapserverstudio.net mastodon: @geographika@mastodon.social On Thu, Feb 20, 2025, at 5:57 PM, Trygve Aspenes via MapServer-users wrote: > Hi > > I have a netcdf file with time dimension. This time dimension is > expressed as bands in the to mapserver from gdal. So to get the first > time step you would set > > PROCESSING "BANDS=1" for the first timestep > PROCESSING "BANDS=2" for the second timestep etc. > > However my client is passing the time variable as a ISO8601 in the > request so I can not use run-time substitution as I can not find a way > to translate a ISO8601 time to the BANDS processing(I have not looked > into doing some rewrite) > > I was thinking of using a postgis where I could preset a time stamp to > the correct BANDS. > > I would the set in the mapfile: > > PROCESSING "[bands]" > > where bands attribute comes from the select to a postgis, like > > select bands from table where time="some iso8601" etc > > But this does not work, and the documentation does not say it would work > https://mapserver.org/mapfile/layer.html PROCESSING > > Any ideas how I could make this work? > > Trygve > _______________________________________________ > MapServer-users mailing list > MapServer-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ MapServer-users mailing list MapServer-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users