| 864 | } |
| 865 | |
| 866 | static void get_bbox(pointObj *poiList, int numpoints, double *minx, double *miny, double *maxx, double *maxy) { |
| 867 | int j; |
| 868 | |
| 869 | *minx = *maxx = poiList[0].x; |
| 870 | *miny = *maxy = poiList[0].y; |
| 871 | for(j=1; j<numpoints; j++) { |
| 872 | if ((poiList[j].x==-99.0) || (poiList[j].y==-99.0)) continue; |
| 873 | *minx = MS_MIN(*minx, poiList[j].x); |
| 874 | *maxx = MS_MAX(*maxx, poiList[j].x); |
| 875 | *miny = MS_MIN(*miny, poiList[j].y); |
| 876 | *maxy = MS_MAX(*maxy, poiList[j].y); |
| 877 | } |
| 878 | |
| 879 | return; |
| 880 | } |
| 881 | |
| 882 | /* |
| 883 | ** msRotateSymbol - Clockwise rotation of a symbol definition. Contributed |
no outgoing calls
no test coverage detected