Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript?

2014-05-28 Thread Jorrit Goddijn
...@gmail.com] Sent: dinsdag 27 mei 2014 16:10 To: Michael Schulz Cc: Jorrit Goddijn; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? You might want to reconsider how your script is built. Instead of loading

Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript?

2014-05-28 Thread Rahkonen Jukka (Tike)
Little [mailto:theduckylit...@gmail.com] Sent: dinsdag 27 mei 2014 16:10 To: Michael Schulz Cc: Jorrit Goddijn; mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript? You might want to reconsider how your

[mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript?

2014-05-27 Thread Jorrit Goddijn
Hi all, I'm drawing layers based on GRIB data files. Each file contains several bands (datasets). I can access these datasets by setting the PROCESSING attribute on the LAYER object. As in this example: # LAYER NAME current_grid TYPE POINT

Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript?

2014-05-27 Thread Michael Schulz
Hi Jorrit, maybe it's just a type in the second setprocessing line of your example: $current_layer-setprocessing('BANDS=1,2'); #removed second bracket Cheers, Michael 2014-05-27 11:50 GMT+02:00 Jorrit Goddijn jorrit.godd...@meteogroup.com: Hi all, I'm drawing layers based on GRIB data

Re: [mapserver-users] Can the PROCESSING layer attribute be set dynamically through (PHP) MapScript?

2014-05-27 Thread Dan Little
You might want to reconsider how your script is built. Instead of loading up the Mapfile and tweaking small parameters with MapScript, consider converting your mapfile to a template language. This way you can forumulate the mapfile, load it as a string, do the appropriate substitutions, then use