** Initialize, load and free a projectionObj structure */
| 1026 | ** Initialize, load and free a projectionObj structure |
| 1027 | */ |
| 1028 | int msInitProjection(projectionObj *p) |
| 1029 | { |
| 1030 | p->gt.need_geotransform = MS_FALSE; |
| 1031 | p->numargs = 0; |
| 1032 | p->args = NULL; |
| 1033 | #ifdef USE_PROJ |
| 1034 | p->proj = NULL; |
| 1035 | p->args = (char **)malloc(MS_MAXPROJARGS*sizeof(char *)); |
| 1036 | MS_CHECK_ALLOC(p->args, MS_MAXPROJARGS*sizeof(char *), -1); |
| 1037 | #endif |
| 1038 | return(0); |
| 1039 | } |
| 1040 | |
| 1041 | void msFreeProjection(projectionObj *p) { |
| 1042 | #ifdef USE_PROJ |
no outgoing calls
no test coverage detected