类名 common/service/igs/workflow/WorkFlowServer600229.js
import WorkFlowServer from './WorkFlowServer'

/**
 * 圆裁剪(sfcls)
 * @class WorkFlowServer600229
 *
 * @extends WorkFlowServer
 * @param {Object} options 构造参数
 * @param {String} [options.url] 工作流基地址,必传
 * @param {String} [options.srcInfo] 源简单要素类的URL,必传,例如:GDBP://mapgislocal/Sample/sfcls/overLayA
 * @param {String} [options.desInfo] 结果简单要素类的URL,必传,例如:GDBP://mapgislocal/Sample/sfcls/clipCir
 * @param {String} [options.center] 圆心坐标字符串,必传,例如:71,-28
 * @param {Number} [options.radius] 半径,必传,例如:70
 * @param {Number} [options.step] 离散化歩长,必传,例如:0.001
 * @param {Number} [options.attOptType] 是否进行属性操作,1:是 0:否,必传,例如:{"activeValue":"1","inactiveValue":"0"}
 * @param {Number} [options.infoOptType] 共有部分的图形参数操作,0:随机,1:使用第一个类的图形参数,2:使用第二个类的图形参数,必传,例如:{"0":"随机","1":"使用第一个类的图形参数","2":"使用第二个类的图形参数"}
 * @param {Number} [options.overType] 图层裁剪类型,3:内裁,4:外裁,必传,例如:{"3":"内裁","4":"外裁"}
 * @param {Number} [options.tolerance] 容差半径,必传,例如:0.001
 * @example 
    const workFlowServer600229 = WorkFlowServer.createWorkFlow({
      url: "http://localhost:8089/igs/rest/services/workflow/600229/WorkflowServer",
      srcInfo: "gdbp://MapGISLocalPlus/test/sfcls/农田-gs",
      desInfo: "gdbp://MapGISLocalPlus/test/sfcls/农田-gs-result" + Math.random(),
      center: "0,0",
      radius: 600,
      step: 0.001,
      attOptType: 1,
      infoOptType: 0,
      overType: 3,
      tolerance: 0.001,
    });
    workFlowServer600229.execute({
      method: Zondy.Enum.FetchMethod.get,
      success: function (res) {
        console.log("execute: ", res);
      },
    });
 */
class WorkFlowServer600229 extends WorkFlowServer {
  constructor(options) {
    super(options)
    const opt = options || {}
    /**
     * @description 工作流基地址,必传
     * @member {String} WorkFlowServer600229.prototype.url
     * */
    this.url = opt.url
    /**
     * @description 600229
     * @member {Number} WorkFlowServer600229.prototype.flowId
     * @readonly
     * */
    this.flowId = 600229
    /**
     * @description 圆裁剪(sfcls)
     * @member {String} WorkFlowServer600229.prototype.description
     * @readonly
     * */
    this.description = '圆裁剪(sfcls)'
    /**
     * @description 裁剪分析
     * @member {String} WorkFlowServer600229.prototype.groupName
     * @readonly
     * */
    this.groupName = '裁剪分析'
    /**
     * @description 源简单要素类的URL,必传,例如:GDBP://mapgislocal/Sample/sfcls/overLayA
     * @member {String} WorkFlowServer600229.prototype.srcInfo
     * */
    this.srcInfo = opt.srcInfo
    /**
     * @description 结果简单要素类的URL,必传,例如:GDBP://mapgislocal/Sample/sfcls/clipCir
     * @member {String} WorkFlowServer600229.prototype.desInfo
     * */
    this.desInfo = opt.desInfo
    /**
     * @description 圆心坐标字符串,必传,例如:71,-28
     * @member {String} WorkFlowServer600229.prototype.center
     * */
    this.center = opt.center
    /**
     * @description 半径,必传,例如:70
     * @member {Number} WorkFlowServer600229.prototype.radius
     * */
    this.radius = opt.radius
    /**
     * @description 离散化歩长,必传,例如:0.001
     * @member {Number} WorkFlowServer600229.prototype.step
     * */
    this.step = opt.step
    /**
     * @description 是否进行属性操作,1:是 0:否,必传,例如:{"activeValue":"1","inactiveValue":"0"}
     * @member {Number} WorkFlowServer600229.prototype.attOptType
     * */
    this.attOptType = opt.attOptType
    /**
     * @description 共有部分的图形参数操作,0:随机,1:使用第一个类的图形参数,2:使用第二个类的图形参数,必传,例如:{"0":"随机","1":"使用第一个类的图形参数","2":"使用第二个类的图形参数"}
     * @member {Number} WorkFlowServer600229.prototype.infoOptType
     * */
    this.infoOptType = opt.infoOptType
    /**
     * @description 图层裁剪类型,3:内裁,4:外裁,必传,例如:{"3":"内裁","4":"外裁"}
     * @member {Number} WorkFlowServer600229.prototype.overType
     * */
    this.overType = opt.overType
    /**
     * @description 容差半径,必传,例如:0.001
     * @member {Number} WorkFlowServer600229.prototype.tolerance
     * */
    this.tolerance = opt.tolerance
  }

  /**
   * @description 获取执行工作流check对象
   * @private
   * @return {Object}
   */
  _getCheckQueryOpts() {
    return {
      srcInfo: {
        required: true,
        type: 'String'
      },
      desInfo: {
        required: true,
        type: 'String'
      },
      center: {
        required: true,
        type: 'String'
      },
      radius: {
        required: true,
        type: 'Number'
      },
      step: {
        required: true,
        type: 'Number'
      },
      attOptType: {
        required: true,
        type: 'Number'
      },
      infoOptType: {
        required: true,
        type: 'Number'
      },
      overType: {
        required: true,
        type: 'Number'
      },
      tolerance: {
        required: true,
        type: 'Number'
      }
    }
  }
}

export default WorkFlowServer600229
构造函数
成员变量
方法
事件