Opened 21 years ago

Closed 21 years ago

#312 closed defect (fixed)

[PHP MapScript] Need to add access to layer->processing

Reported by: dmorissette Owned by: assefa
Priority: high Milestone:
Component: MapScript-PHP Version: 4.0
Severity: normal Keywords:
Cc:

Description

Subject:         [Mapserver-users] another bug of mapserver 3.7
   Date:         Mon, 14 Apr 2003 16:04:16 -0500
   From:         "pond bear" <pond_bear@hotmail.com>
     To:         mapserver-users@lists.gis.umn.edu

Right now we can chose band combination of a raster file by changing map 
file with
"processing bands=x,x,x". But we can't change band combination by 
php-mapscript.
There is no member in LayerObj that corresponds "PROCESSING".

Jing
University of North Dakota

Change History (2)

comment:1 by dmorissette, 21 years ago

Owner: changed from morissette@… to assefa
Subject:         [Mapserver-users] PROCESSING property - MapScript
   Date:         Wed, 12 Mar 2003 12:27:32 -0800
   From:         Dylan Keon <keon@nacse.org>
     To:         mapserver-users@lists.gis.umn.edu

Hi,

I'd like to set PROCESSING in a LAYER block via PHP MapScript:

   $layer->set('processing', 'COLOR_MATCH_THRESHOLD=3');

This doesn't seem to be implemented yet in 3.7.  Would that be possible?

Thanks,
Dylan

comment:2 by assefa, 21 years ago

Resolution: fixed
Status: newclosed
Added to php_mapscript :

boolean setProcessing(string)
        Add the string to the processing string list for the layer.
        The layer->num_processing is incremented by 1.
        Ex : $oLayer->setprocessing("SCALE_1=AUTO");
             $oLayer->setprocessing("SCALE_2=AUTO");       

   aString getProcessing
        Returns an array containing the processing strings

   boolean clearProcessing
        Clears all the processing strings
Note: See TracTickets for help on using tickets.