import WorkFlowServer from './WorkFlowServer'
/**
* 根据参照系名称进行投影转换
* @class WorkFlowServer600235
*
* @extends WorkFlowServer
* @param {Object} options 构造参数
* @param {String} [options.url] 工作流基地址,必传
* @param {String} [options.clsName] 需转换的类的URL,必传,例如:GDBP://user:password @ serverName/gdbName /ds/ds06/sfcls/www.wl
* @param {String} [options.desClsName] 结果类的URL,必传,例如:GDBP://user:password @ serverName/gdbName /ds/ds06/sfcls/www.wl
* @param {String} [options.crsName] 目的空间参照系的名称,必传,例如:高斯大地坐标系_西安80_36带3_北
* @example
const workFlowServer600235 = WorkFlowServer.createWorkFlow({
url: "http://localhost:8089/igs/rest/services/workflow/600235/WorkflowServer",
clsName: "gdbp://MapGISLocalPlus/test/sfcls/湖泊",
desClsName: `gdbp://MapGISLocalPlus/test/sfcls/湖泊${Math.random()}`,
crsName: "高斯大地坐标系_西安80_36带3_北",
});
workFlowServer600235.execute({
method: Zondy.Enum.FetchMethod.get,
success: function (res) {
console.log("execute: ", res);
},
});
*/
class WorkFlowServer600235 extends WorkFlowServer {
constructor(options) {
super(options)
const opt = options || {}
/**
* @description 工作流基地址,必传
* @member {String} WorkFlowServer600235.prototype.url
* */
this.url = opt.url
/**
* @description 600235
* @member {Number} WorkFlowServer600235.prototype.flowId
* @readonly
* */
this.flowId = 600235
/**
* @description 根据参照系名称进行投影转换
* @member {String} WorkFlowServer600235.prototype.description
* @readonly
* */
this.description = '根据参照系名称进行投影转换'
/**
* @description 投影转换
* @member {String} WorkFlowServer600235.prototype.groupName
* @readonly
* */
this.groupName = '投影转换'
/**
* @description 需转换的类的URL,必传,例如:GDBP://user:password @ serverName/gdbName /ds/ds06/sfcls/www.wl
* @member {String} WorkFlowServer600235.prototype.clsName
* */
this.clsName = opt.clsName
/**
* @description 结果类的URL,必传,例如:GDBP://user:password @ serverName/gdbName /ds/ds06/sfcls/www.wl
* @member {String} WorkFlowServer600235.prototype.desClsName
* */
this.desClsName = opt.desClsName
/**
* @description 目的空间参照系的名称,必传,例如:高斯大地坐标系_西安80_36带3_北
* @member {String} WorkFlowServer600235.prototype.crsName
* */
this.crsName = opt.crsName
}
/**
* @description 获取执行工作流check对象
* @private
* @return {Object}
*/
_getCheckQueryOpts() {
return {
clsName: {
required: true,
type: 'String'
},
desClsName: {
required: true,
type: 'String'
},
crsName: {
required: true,
type: 'String'
}
}
}
}
export default WorkFlowServer600235