| 580 | */ |
| 581 | |
| 582 | void 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 |
no test coverage detected