Changeset 9131
 Timestamp:
 Jun 30, 2009 9:20:32 PM (7 years ago)
 Location:
 branches/branch54/mapserver
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

branches/branch54/mapserver/HISTORY.TXT
r9119 r9131 14 14 Current Version: 15 15  16 16 17  Add centroid geomtransform (#2825) 18 19  Fixed performance bottleneck when computing a polygon center of gravity for 20 label point computation. (#3053) 17 21 18 22  Save ALIGN parameter if it is set to CENTER or RIGHT (#3057) 
branches/branch54/mapserver/mapprimitive.c
r9119 r9131 1011 1011 1012 1012 for(i=0; i<p>numlines; i++) { 1013 if(isOuterRing(p, i)) { 1014 tsx = tsy = s = 0; /* reset the ring sums */ 1015 for(j=0; j<p>line[i].numpoints1; j++) { 1016 a = p>line[i].point[j].x*p>line[i].point[j+1].y  p>line[i].point[j+1].x*p>line[i].point[j].y; 1017 s += a; 1018 tsx += (p>line[i].point[j].x + p>line[i].point[j+1].x)*a; 1019 tsy += (p>line[i].point[j].y + p>line[i].point[j+1].y)*a; 1020 } 1021 area = MS_ABS(s/2); 1022 1023 if(area > largestArea) { 1024 largestArea = area; 1025 sx = s>0?tsx:tsx; 1026 sy = s>0?tsy:tsy; 1027 } 1028 } 1013 tsx = tsy = s = 0; /* reset the ring sums */ 1014 for(j=0; j<p>line[i].numpoints1; j++) { 1015 a = p>line[i].point[j].x*p>line[i].point[j+1].y  p>line[i].point[j+1].x*p>line[i].point[j].y; 1016 s += a; 1017 tsx += (p>line[i].point[j].x + p>line[i].point[j+1].x)*a; 1018 tsy += (p>line[i].point[j].y + p>line[i].point[j+1].y)*a; 1019 } 1020 area = MS_ABS(s/2); 1021 1022 if(area > largestArea) { 1023 largestArea = area; 1024 sx = s>0?tsx:tsx; 1025 sy = s>0?tsy:tsy; 1026 } 1029 1027 } 1030 1028
Note: See TracChangeset
for help on using the changeset viewer.