[mapserver-dev] Storing multiple output formats in mapfiles

thomas bonfort thomas.bonfort at gmail.com
Sat Apr 21 05:48:33 EDT 2012


Tamas,
Looking at the code, I believe this is done because the map's
outputformat has already been written (just before the loop you
copied). So this test should be maintained, however I would use the
string comparison on the outputformat's name rather than driver.

regards,
thomas

On Fri, Apr 20, 2012 at 10:21, Tamas Szekeres <szekerest at gmail.com> 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?
>
> Best regards,
>
> Tamas
>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>


More information about the mapserver-dev mailing list