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

Function msGEOSBoundary

mapgeos.c:747–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747shapeObj *msGEOSBoundary(shapeObj *shape)
748{
749#ifdef USE_GEOS
750 GEOSGeom g1, g2;
751
752 if(!shape) return NULL;
753
754 if(!shape->geometry) /* if no geometry for the shape then build one */
755 shape->geometry = (GEOSGeom) msGEOSShape2Geometry(shape);
756 g1 = (GEOSGeom) shape->geometry;
757 if(!g1) return NULL;
758
759 g2 = GEOSBoundary(g1);
760 return msGEOSGeometry2Shape(g2);
761#else
762 msSetError(MS_GEOSERR, "GEOS support is not available.", "msGEOSBoundary()");
763 return NULL;
764#endif
765}
766
767pointObj *msGEOSGetCentroid(shapeObj *shape)
768{

Callers 1

shapeObj_boundaryFunction · 0.85

Calls 3

msGEOSShape2GeometryFunction · 0.85
msGEOSGeometry2ShapeFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected