[MapServer-users] Is it possible to pass an attribute to PROCESSING directive?
    Trygve Aspenes 
    trygve at aspenes.priv.no
       
    Thu Feb 20 08:57:00 PST 2025
    
    
  
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
    
    
More information about the MapServer-users
mailing list