return OGCGeometry.createFromEsriCursor(
new SimpleGeometryCursor(result), esriSR);
}
public OGCGeometry buffer(double distance) {
OperatorBuffer op = (OperatorBuffer) OperatorFactoryLocal.getInstance()
.getOperator(Operator.Type.Buffer);
if (distance == 0) {// when distance is 0, return self (maybe we should
// create a copy instead).
return this;
}
double d[] = { distance };
com.esri.core.geometry.GeometryCursor cursor = op.execute(
getEsriGeometryCursor(), getEsriSpatialReference(), d, true,
null);
return OGCGeometry.createFromEsriGeometry(cursor.next(), esriSR);
}