int msCopySymbol(symbolObj *dst, symbolObj *src, mapObj *map) { int i; initSymbol(dst); MS_COPYSTRING(dst->name, src->name); MS_COPYSTELEM(type); MS_COPYSTELEM(inmapfile); /* map is a special case */ dst->map = map; MS_COPYSTELEM(sizex); MS_COPYSTELEM(sizey); MS_COPYSTELEM(anchorpoint_x); MS_COPYSTELEM(anchorpoint_y); for (i=0; i < src->numpoints; i++) { MS_COPYPOINT(&(dst->points[i]), &(src->points[i])); } MS_COPYSTELEM(numpoints); MS_COPYSTELEM(filled); MS_COPYSTRING(dst->imagepath, src->imagepath); MS_COPYSTELEM(transparent); MS_COPYSTELEM(transparentcolor); MS_COPYSTRING(dst->character, src->character); MS_COPYSTELEM(antialias); MS_COPYSTRING(dst->font, src->font); MS_COPYSTRING(dst->full_pixmap_path,src->full_pixmap_path); return(MS_SUCCESS); }
/*********************************************************************** * msCopyLine() * * * * Copy a lineObj, using msCopyPoint() * **********************************************************************/ int msCopyLine(lineObj *dst, lineObj *src) { int i; dst->numpoints = src->numpoints; for (i = 0; i < dst->numpoints; i++) { MS_COPYPOINT(&(dst->point[i]), &(src->point[i])); } return MS_SUCCESS; }