* class extensions for projectionObj **********************************************************************/
| 1320 | * class extensions for projectionObj |
| 1321 | **********************************************************************/ |
| 1322 | projectionObj *projectionObj_new(char *string) { |
| 1323 | |
| 1324 | int status; |
| 1325 | projectionObj *proj=NULL; |
| 1326 | |
| 1327 | proj = (projectionObj *)malloc(sizeof(projectionObj)); |
| 1328 | if(!proj) return NULL; |
| 1329 | msInitProjection(proj); |
| 1330 | |
| 1331 | status = msLoadProjectionString(proj, string); |
| 1332 | if(status == -1) { |
| 1333 | msFreeProjection(proj); |
| 1334 | free(proj); |
| 1335 | return NULL; |
| 1336 | } |
| 1337 | |
| 1338 | return proj; |
| 1339 | } |
| 1340 | |
| 1341 | int projectionObj_getUnits(projectionObj *self) |
| 1342 | { |
no test coverage detected