| 1182 | } |
| 1183 | |
| 1184 | pointObj *shapeObj_getLabelPoint(shapeObj *self) |
| 1185 | { |
| 1186 | pointObj *point = (pointObj *)calloc(1, sizeof(pointObj)); |
| 1187 | if (point == NULL) { |
| 1188 | msSetError(MS_MEMERR, "Failed to allocate memory for point", "getLabelPoint()"); |
| 1189 | return NULL; |
| 1190 | } |
| 1191 | |
| 1192 | if(self->type == MS_SHAPE_POLYGON && msPolygonLabelPoint(self, point, -1) == MS_SUCCESS) |
| 1193 | return point; |
| 1194 | |
| 1195 | free(point); |
| 1196 | return NULL; |
| 1197 | } |
| 1198 | |
| 1199 | |
| 1200 | /********************************************************************** |
no test coverage detected