MCPcopy Create free account
hub / github.com/MapServer/MapServer / shapeObj_new

Function shapeObj_new

mapscript/php/mapscript_i.c:979–989  ·  view source on GitHub ↗

* class extensions for shapeObj **********************************************************************/

Source from the content-addressed store, hash-verified

977 * class extensions for shapeObj
978 **********************************************************************/
979shapeObj *shapeObj_new(int type) {
980 shapeObj *shape;
981
982 shape = (shapeObj *)malloc(sizeof(shapeObj));
983 if(!shape)
984 return NULL;
985
986 msInitShape(shape);
987 shape->type = type;
988 return shape;
989 }
990
991void shapeObj_destroy(shapeObj *self) {
992 msFreeShape(self);

Callers 4

shapefile.cFile · 0.85
php_mapscript.cFile · 0.85
shape.cFile · 0.85
layer.cFile · 0.85

Calls 1

msInitShapeFunction · 0.85

Tested by

no test coverage detected