Ticket #353 (closed defect: fixed)
save output format
|Reported by:||assefa||Owned by:||assefa|
|Component:||MapServer C Library||Version:||4.0|
e-mail discussion on this subject We just realized the output formats are not written into the map file when It is saved. I realize that saving the imagetype is enough (to recreate the same mapfile) for default output formats, but we end up loosing some specific user defined format options. I guess there are several ways to adress this : - write only the current output format used in the map file - write all the output formats - write back only output formats that are user defined (loaded from map file or create by mapscript) . In trhis case we would also write current one if diffrent from the user defined. Answer from firstname.lastname@example.org Agreed it should be #3, and this may require that we add a hidden flag to the outputFormatObj to tell whether this is one of the default output formats, or whether it was user-defined (in the mapfile or via MapScript). Something similar had been done in the symbolObj to differentiate between symbols that are inline in the mapfile and those coming from an external SYMBOLSET.
Note: See TracTickets for help on using tickets.