[mapserver-dev] Storing multiple output formats in mapfiles

Frank Warmerdam warmerdam at pobox.com
Sat Apr 21 14:42:07 EDT 2012


On 12-04-20 01:21 AM, Tamas Szekeres wrote:
> Hi Devs,
>
> We would like to store multiple outputformat entries for the same driver in the
> mapfiles. However when using the save option the writer does not allow saving
> formats for the same driver as what have been referenced by the imagetype
> setting. The related code now looks like this:
>
> for(i=0; i<map->numoutputformats; i++) {
>      if(map->outputformatlist[i]->inmapfile == MS_TRUE &&
> strcmp(map->outputformatlist[i]->driver, map->outputformat->driver) != 0)
>        writeOutputformatobject(stream, indent, map->outputformatlist[i]);
>    }
>
> Do we have any compelling reason to work this way or we can safely remove this
> check from writeOutputformat?

Tamas,

I have no idea why that code excludes the currently active outputformat.  I'd
suggest removing that check in trunk and see if someone encounters problems.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the mapserver-dev mailing list