| 921 | } |
| 922 | |
| 923 | int msDrawPieSlice(symbolSetObj *symbolset, imageObj *image, pointObj *p, styleObj *style, double radius, double start, double end) { |
| 924 | |
| 925 | shapeObj *circle; |
| 926 | double center_x = p->x; |
| 927 | double center_y = p->y; |
| 928 | if (!image) return MS_FAILURE; |
| 929 | if(style->offsetx>0) { |
| 930 | center_x+=style->offsetx*cos(((-start-end)*MS_PI/360.)); |
| 931 | center_y-=style->offsetx*sin(((-start-end)*MS_PI/360.)); |
| 932 | } |
| 933 | circle = msRasterizeArc(center_x, center_y, radius, start, end, 1); |
| 934 | if (!circle) return MS_FAILURE; |
| 935 | msDrawShadeSymbol(symbolset, image, circle, style, 1.0); |
| 936 | msFreeShape(circle); |
| 937 | msFree(circle); |
| 938 | return MS_SUCCESS; |
| 939 | } |
no test coverage detected