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

Function msGEOSFreeGeometry

mapgeos.c:582–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580*/
581
582void msGEOSFreeGeometry(shapeObj *shape)
583{
584#ifdef USE_GEOS
585 GEOSGeom g=NULL;
586
587 if(!shape || !shape->geometry)
588 return;
589
590 g = (GEOSGeom) shape->geometry;
591 GEOSGeom_destroy(g);
592#else
593 msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSFreeGEOSGeom()");
594 return;
595#endif
596}
597
598/*
599** WKT input and output functions

Callers 2

msGEOSShapeToWKTFunction · 0.85
msFreeShapeFunction · 0.85

Calls 1

msSetErrorFunction · 0.85

Tested by

no test coverage detected