| 60 | } |
| 61 | |
| 62 | shapeObj *msShapeFromWKT(const char *string) |
| 63 | { |
| 64 | #ifdef USE_GEOS |
| 65 | return msGEOSShapeFromWKT(string); |
| 66 | #elif defined(USE_OGR) |
| 67 | return msOGRShapeFromWKT(string); |
| 68 | #else |
| 69 | msSetError(MS_MISCERR, "WKT support is not available, please compile MapServer with GEOS or OGR support.", "msShapeFromWKT()"); |
| 70 | return NULL; |
| 71 | #endif |
| 72 | } |
| 73 | |
| 74 | char *msShapeToWKT(shapeObj *shape) |
| 75 | { |
no test coverage detected