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

Function msCopySymbolSet

mapsymbol.c:832–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830 **********************************************************************/
831
832int msCopySymbolSet(symbolSetObj *dst, symbolSetObj *src, mapObj *map)
833{
834 int i, return_value;
835
836 MS_COPYSTRING(dst->filename, src->filename);
837
838 dst->map = map;
839 dst->fontset = &(map->fontset);
840
841 /* Copy child symbols */
842 for (i = 0; i < src->numsymbols; i++) {
843 if (msGrowSymbolSet(dst) == NULL)
844 return MS_FAILURE;
845 return_value = msCopySymbol(dst->symbol[i], src->symbol[i], map);
846 if (return_value != MS_SUCCESS) {
847 msSetError(MS_MEMERR,"Failed to copy symbol.","msCopySymbolSet()");
848 return(MS_FAILURE);
849 }
850 dst->numsymbols++;
851 }
852
853 /* MS_COPYSTELEM(imagecachesize); */
854
855 /* I have a feeling that the code below is not quite right - Sean */
856 /*copyProperty(&(dst->imagecache), &(src->imagecache),
857 sizeof(struct imageCacheObj));
858 */
859
860 dst->imagecachesize = 0; /* since we are not copying the cache set the cache to NUNLL and the size to 0 (bug 1521) */
861 dst->imagecache = NULL;
862
863 return(MS_SUCCESS);
864}
865
866static void get_bbox(pointObj *poiList, int numpoints, double *minx, double *miny, double *maxx, double *maxy) {
867 int j;

Callers 1

msCopyMapFunction · 0.85

Calls 3

msGrowSymbolSetFunction · 0.85
msCopySymbolFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected