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

Function msCloneOutputFormat

mapoutput.c:728–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726/************************************************************************/
727
728outputFormatObj *msCloneOutputFormat( outputFormatObj *src )
729
730{
731 outputFormatObj *dst;
732 int i;
733
734 dst = msAllocOutputFormat( NULL, src->name, src->driver );
735
736 msFree( dst->mimetype );
737 if( src->mimetype )
738 dst->mimetype = msStrdup( src->mimetype );
739 else
740 dst->mimetype = NULL;
741
742 msFree( dst->extension );
743 if( src->extension )
744 dst->extension = msStrdup( src->extension );
745 else
746 dst->extension = NULL;
747
748 dst->imagemode = src->imagemode;
749 dst->renderer = src->renderer;
750
751 dst->transparent = src->transparent;
752 dst->bands = src->bands;
753
754 dst->numformatoptions = src->numformatoptions;
755 dst->formatoptions = (char **)
756 malloc(sizeof(char *) * src->numformatoptions );
757
758 for( i = 0; i < src->numformatoptions; i++ )
759 dst->formatoptions[i] = msStrdup(src->formatoptions[i]);
760
761 dst->inmapfile = src->inmapfile;
762
763 return dst;
764}
765
766/************************************************************************/
767/* msGetOutputFormatOption() */

Callers 5

msApplyOutputFormatFunction · 0.85
msCopyMapFunction · 0.85
msWCSGetCoverageFunction · 0.85
msWCSGetCoverage20Function · 0.85
msResampleGDALToMapFunction · 0.85

Calls 3

msAllocOutputFormatFunction · 0.85
msFreeFunction · 0.85
msStrdupFunction · 0.85

Tested by

no test coverage detected