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

Function msShapeToWKT

mapprimitive.c:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74char *msShapeToWKT(shapeObj *shape)
75{
76#ifdef USE_GEOS
77 char* pszGEOSStr;
78 char* pszStr;
79 pszGEOSStr = msGEOSShapeToWKT(shape);
80 pszStr = (pszGEOSStr) ? msStrdup(pszGEOSStr) : NULL;
81 msGEOSFreeWKT(pszGEOSStr);
82 return pszStr;
83#elif defined(USE_OGR)
84 return msOGRShapeToWKT(shape);
85#else
86 msSetError(MS_MISCERR, "WKT support is not available, please compile MapServer with GEOS or OGR support.", "msShapeToWKT()");
87 return NULL;
88#endif
89}
90
91void msInitShape(shapeObj *shape)
92{

Callers 2

msPostGISReadShapeFunction · 0.85
shape.cFile · 0.85

Calls 5

msGEOSShapeToWKTFunction · 0.85
msStrdupFunction · 0.85
msGEOSFreeWKTFunction · 0.85
msOGRShapeToWKTFunction · 0.85
msSetErrorFunction · 0.85

Tested by

no test coverage detected