Opened 17 years ago
#1967 new defect
FORMATOPTION cannot be set from mapscript
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-PHP | Version: | 4.10 |
Severity: | major | Keywords: | |
Cc: |
Description
$this->msmapobj->outputformat->setOption('OUTPUT_MOVIE', 'MULTIPLE'); does set the value in the the memory model (since getOption / getFormatOption return the value), but it's not used what draw() is called and it isnt in the mapfile when the mapfile is stored to disk. Since there is no work around (when i set the option in the mapfile and try changing the value's it crashes during the draw() method) i put the severity to major. It's a showstopper for my project so i would like to see it fixed The code i use is the following code: $this->msmapobj->selectOutputFormat('swf'); $this->msmapobj->outputformat->driver = 'SWF'; $this->msmapobj->outputformat->name = 'swf'; $this->msmapobj->outputformat->mimetype = 'application/x-shockwave-flash'; $this->msmapobj->outputformat->extension = 'swf'; $this->msmapobj->outputformat->imagemode = 'MS_PC256'; // NEXT LINE AINT WORKING: bug: $this->msmapobj->outputformat->setOption('OUTPUT_MOVIE', 'MULTIPLE'); // DEPRICATED: $this->msmapobj->outputformat->setFormatOption('OUTPUT_MOVIE', 'MULTIPLE'); $this->msmapobj->outputformat->validate() == MS_TRUE || die("Could not set the output format for $mapfilename");
Note:
See TracTickets
for help on using tickets.