Gee, sorry I misread your question (it's monday morning....) Dunno why it doesn't work tough.
Umberto On 7/3/06, Shoaib Burq <[EMAIL PROTECTED]> wrote:
Humm... not so sure if the map.draw applies to what we are trying to do... according to the Mapscript API docs map.draw() returns an imageObj, while we are trying to write-out a mapfile with multiple outputFormat definitions in it. This functionality should be part of the map.save() method but I am beginning to think it's not implemented. On 7/3/06, Umberto Nicoletti <[EMAIL PROTECTED]> wrote: > You probably have to loop over all the formats you need and for every > format do something like: > > map.setOutputFormat > map.draw > > hth, > Umberto > > On 7/1/06, Shoaib Burq <[EMAIL PROTECTED]> wrote: > > Hi all > > > > we are trying to create a mapfile on the fly and need to add multiple > > outputformats to the mapfile. we can use the > > appendOutputFormat(new_OF) in python-mapscript. However when using the > > mapObj.save(mymapfile.map) to write our map object to file, it only > > writes-out the last format appened. > > > > The only relavent code i found was in: > > mapserver/mapscript/python/tests/cases/outputformattest.py > > But this only tests if the current outputformat is defined correctly ... > > > > Does anyone know if we can use the mapObj.save() function to create > > mapfiles with multiple OUTPUTFORMAT definitions and if not anyone know > > where the save() function's defined and if its easy to extend it to do > > this? > > > > thanks heaps > > shoaib > > -- > > http://nomad-labs.com > > >
