MCPcopy Index your code
hub / github.com/MapServer/MapServer / projectionObj_new

Function projectionObj_new

mapscript/php/mapscript_i.c:1322–1339  ·  view source on GitHub ↗

* class extensions for projectionObj **********************************************************************/

Source from the content-addressed store, hash-verified

1320 * class extensions for projectionObj
1321 **********************************************************************/
1322projectionObj *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
1341int projectionObj_getUnits(projectionObj *self)
1342{

Callers 2

projection.cFile · 0.85
php_mapscript.cFile · 0.85

Calls 3

msInitProjectionFunction · 0.85
msLoadProjectionStringFunction · 0.85
msFreeProjectionFunction · 0.85

Tested by

no test coverage detected