MCPcopy Index your code
hub / github.com/MapServer/MapServer / msApplyDefaultOutputFormats

Function msApplyDefaultOutputFormats

mapoutput.c:394–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393
394void msApplyDefaultOutputFormats( mapObj *map )
395{
396 char *saved_imagetype;
397 struct defaultOutputFormatEntry *defEntry;
398
399 if( map->imagetype == NULL )
400 saved_imagetype = NULL;
401 else
402 saved_imagetype = msStrdup(map->imagetype);
403
404 defEntry = defaultoutputformats;
405 while(defEntry->name) {
406 if( msSelectOutputFormat( map, defEntry->name ) == NULL )
407 msCreateDefaultOutputFormat( map, defEntry->driver, defEntry->name );
408 defEntry++;
409 }
410 if( map->imagetype != NULL )
411 free( map->imagetype );
412 map->imagetype = saved_imagetype;
413}
414
415/************************************************************************/
416/* msFreeOutputFormat() */

Callers 8

msOwsIsOutputFormatValidFunction · 0.85
msWCSGetCoverageFunction · 0.85
msWCSGetCoverage20Function · 0.85
msReturnTemplateQueryFunction · 0.85
msWCSGetFormatsList11Function · 0.85

Calls 3

msStrdupFunction · 0.85
msSelectOutputFormatFunction · 0.85

Tested by

no test coverage detected