20 #ifndef GEOS_OP_OVERLAY_SNAP_SNAPIFNEEDEDOVERLAYOP_H
21 #define GEOS_OP_OVERLAY_SNAP_SNAPIFNEEDEDOVERLAYOP_H
23 #include <geos/operation/overlay/OverlayOp.h>
55 static std::auto_ptr<geom::Geometry>
60 return op.getResultGeometry(opCode);
63 static std::auto_ptr<geom::Geometry>
66 return overlayOp(g0, g1, OverlayOp::opINTERSECTION);
69 static std::auto_ptr<geom::Geometry>
72 return overlayOp(g0, g1, OverlayOp::opUNION);
75 static std::auto_ptr<geom::Geometry>
78 return overlayOp(g0, g1, OverlayOp::opDIFFERENCE);
81 static std::auto_ptr<geom::Geometry>
84 return overlayOp(g0, g1, OverlayOp::opSYMDIFFERENCE);
95 typedef std::auto_ptr<geom::Geometry> GeomPtr;
115 #endif // ndef GEOS_OP_OVERLAY_SNAP_SNAPIFNEEDEDOVERLAYOP_H