bufferOp static method

Geometry bufferOp(
  1. Geometry g,
  2. double distance
)

Computes the buffer of a geometry for a given buffer distance.

@param g the geometry to buffer @param distance the buffer distance @return the buffer of the input geometry

Implementation

static Geometry bufferOp(Geometry g, double distance) {
  BufferOp gBuf = new BufferOp(g);
  Geometry geomBuf = gBuf.getResultGeometry(distance);
//BufferDebug.saveBuffer(geomBuf);
  //BufferDebug.runCount++;
  return geomBuf;
}