var vectorEditor=function() {
vectorEditor.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
vectorEditor.prototype={
getFeature:function(identifierColumn,identifier,shapeName,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'getFeature',false,{identifierColumn:identifierColumn,identifier:identifier,shapeName:shapeName},succeededCallback,failedCallback,userContext); },
getClosestFeature:function(shapeName,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'getClosestFeature',false,{shapeName:shapeName,pointX:pointX,pointY:pointY,searchExtentTLX:searchExtentTLX,searchExtentTLY:searchExtentTLY,searchExtentBRX:searchExtentBRX,searchExtentBRY:searchExtentBRY,viewSRID:viewSRID},succeededCallback,failedCallback,userContext); },
getClosestVertex:function(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'getClosestVertex',false,{shapeNames:shapeNames,pointX:pointX,pointY:pointY,searchExtentTLX:searchExtentTLX,searchExtentTLY:searchExtentTLY,searchExtentBRX:searchExtentBRX,searchExtentBRY:searchExtentBRY,viewSRID:viewSRID},succeededCallback,failedCallback,userContext); },
getClosestSegment:function(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'getClosestSegment',false,{shapeNames:shapeNames,pointX:pointX,pointY:pointY,searchExtentTLX:searchExtentTLX,searchExtentTLY:searchExtentTLY,searchExtentBRX:searchExtentBRX,searchExtentBRY:searchExtentBRY,viewSRID:viewSRID},succeededCallback,failedCallback,userContext); },
measureFeatureArea:function(shpGeom,SRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'measureFeatureArea',false,{shpGeom:shpGeom,SRID:SRID},succeededCallback,failedCallback,userContext); },
measurelastFeaturePartArea:function(shpGeom,SRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'measurelastFeaturePartArea',false,{shpGeom:shpGeom,SRID:SRID},succeededCallback,failedCallback,userContext); },
updateFeature:function(shapename,shpGeom,SRID,gid,allowIntersectingFeatures,editRestrictionQuery,name,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'updateFeature',false,{shapename:shapename,shpGeom:shpGeom,SRID:SRID,gid:gid,allowIntersectingFeatures:allowIntersectingFeatures,editRestrictionQuery:editRestrictionQuery,name:name},succeededCallback,failedCallback,userContext); },
deleteFeature:function(shapename,gid,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'deleteFeature',false,{shapename:shapename,gid:gid},succeededCallback,failedCallback,userContext); },
intersectFeatures:function(shpGeom,SRID,intersectGeom,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'intersectFeatures',false,{shpGeom:shpGeom,SRID:SRID,intersectGeom:intersectGeom},succeededCallback,failedCallback,userContext); },
mergeFeatures:function(shpGeom,SRID,intersectGeom,onlyAdjacentFeatures,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'mergeFeatures',false,{shpGeom:shpGeom,SRID:SRID,intersectGeom:intersectGeom,onlyAdjacentFeatures:onlyAdjacentFeatures},succeededCallback,failedCallback,userContext); },
mergeFeaturesById:function(shapename,gid1,gid2,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'mergeFeaturesById',false,{shapename:shapename,gid1:gid1,gid2:gid2},succeededCallback,failedCallback,userContext); },
getShapeInfo:function(shapename,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'getShapeInfo',false,{shapename:shapename},succeededCallback,failedCallback,userContext); },
openConnection:function(succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'openConnection',false,{},succeededCallback,failedCallback,userContext); },
checkPolygonFeature:function(shpGeom,SRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'checkPolygonFeature',false,{shpGeom:shpGeom,SRID:SRID},succeededCallback,failedCallback,userContext); },
insertFeature:function(shapename,shpGeom,SRID,allowIntersectingFeatures,editRestrictionQuery,name,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'insertFeature',false,{shapename:shapename,shpGeom:shpGeom,SRID:SRID,allowIntersectingFeatures:allowIntersectingFeatures,editRestrictionQuery:editRestrictionQuery,name:name},succeededCallback,failedCallback,userContext); },
insertShape:function(shapename,shpGeom,SRID,editRestrictionQuery,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'insertShape',false,{shapename:shapename,shpGeom:shpGeom,SRID:SRID,editRestrictionQuery:editRestrictionQuery},succeededCallback,failedCallback,userContext); },
createShape:function(shapename,shpType,SRID,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'createShape',false,{shapename:shapename,shpType:shpType,SRID:SRID},succeededCallback,failedCallback,userContext); },
deleteShape:function(shapename,succeededCallback, failedCallback, userContext) {
return this._invoke(vectorEditor.get_path(), 'deleteShape',false,{shapename:shapename},succeededCallback,failedCallback,userContext); }}
vectorEditor.registerClass('vectorEditor',Sys.Net.WebServiceProxy);
vectorEditor._staticInstance = new vectorEditor();
vectorEditor.set_path = function(value) { vectorEditor._staticInstance._path = value; }
vectorEditor.get_path = function() { return vectorEditor._staticInstance._path; }
vectorEditor.set_timeout = function(value) { vectorEditor._staticInstance._timeout = value; }
vectorEditor.get_timeout = function() { return vectorEditor._staticInstance._timeout; }
vectorEditor.set_defaultUserContext = function(value) { vectorEditor._staticInstance._userContext = value; }
vectorEditor.get_defaultUserContext = function() { return vectorEditor._staticInstance._userContext; }
vectorEditor.set_defaultSucceededCallback = function(value) { vectorEditor._staticInstance._succeeded = value; }
vectorEditor.get_defaultSucceededCallback = function() { return vectorEditor._staticInstance._succeeded; }
vectorEditor.set_defaultFailedCallback = function(value) { vectorEditor._staticInstance._failed = value; }
vectorEditor.get_defaultFailedCallback = function() { return vectorEditor._staticInstance._failed; }
vectorEditor.set_path("/Services/vectorEditor.asmx");
vectorEditor.getFeature= function(identifierColumn,identifier,shapeName,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.getFeature(identifierColumn,identifier,shapeName,onSuccess,onFailed,userContext); }
vectorEditor.getClosestFeature= function(shapeName,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.getClosestFeature(shapeName,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext); }
vectorEditor.getClosestVertex= function(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.getClosestVertex(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext); }
vectorEditor.getClosestSegment= function(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.getClosestSegment(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext); }
vectorEditor.measureFeatureArea= function(shpGeom,SRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.measureFeatureArea(shpGeom,SRID,onSuccess,onFailed,userContext); }
vectorEditor.measurelastFeaturePartArea= function(shpGeom,SRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.measurelastFeaturePartArea(shpGeom,SRID,onSuccess,onFailed,userContext); }
vectorEditor.updateFeature= function(shapename,shpGeom,SRID,gid,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.updateFeature(shapename,shpGeom,SRID,gid,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext); }
vectorEditor.deleteFeature= function(shapename,gid,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.deleteFeature(shapename,gid,onSuccess,onFailed,userContext); }
vectorEditor.intersectFeatures= function(shpGeom,SRID,intersectGeom,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.intersectFeatures(shpGeom,SRID,intersectGeom,onSuccess,onFailed,userContext); }
vectorEditor.mergeFeatures= function(shpGeom,SRID,intersectGeom,onlyAdjacentFeatures,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.mergeFeatures(shpGeom,SRID,intersectGeom,onlyAdjacentFeatures,onSuccess,onFailed,userContext); }
vectorEditor.mergeFeaturesById= function(shapename,gid1,gid2,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.mergeFeaturesById(shapename,gid1,gid2,onSuccess,onFailed,userContext); }
vectorEditor.getShapeInfo= function(shapename,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.getShapeInfo(shapename,onSuccess,onFailed,userContext); }
vectorEditor.openConnection= function(onSuccess,onFailed,userContext) {vectorEditor._staticInstance.openConnection(onSuccess,onFailed,userContext); }
vectorEditor.checkPolygonFeature= function(shpGeom,SRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.checkPolygonFeature(shpGeom,SRID,onSuccess,onFailed,userContext); }
vectorEditor.insertFeature= function(shapename,shpGeom,SRID,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.insertFeature(shapename,shpGeom,SRID,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext); }
vectorEditor.insertShape= function(shapename,shpGeom,SRID,editRestrictionQuery,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.insertShape(shapename,shpGeom,SRID,editRestrictionQuery,onSuccess,onFailed,userContext); }
vectorEditor.createShape= function(shapename,shpType,SRID,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.createShape(shapename,shpType,SRID,onSuccess,onFailed,userContext); }
vectorEditor.deleteShape= function(shapename,onSuccess,onFailed,userContext) {vectorEditor._staticInstance.deleteShape(shapename,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(vectorEditor_getFeatureResult) === 'undefined') {
var vectorEditor_getFeatureResult=gtc("vectorEditor+getFeatureResult");
vectorEditor_getFeatureResult.registerClass('vectorEditor_getFeatureResult');
}
if (typeof(vectorEditor_closestVertexResult) === 'undefined') {
var vectorEditor_closestVertexResult=gtc("vectorEditor+closestVertexResult");
vectorEditor_closestVertexResult.registerClass('vectorEditor_closestVertexResult');
}
if (typeof(vectorEditor_segment) === 'undefined') {
var vectorEditor_segment=gtc("vectorEditor+segment");
vectorEditor_segment.registerClass('vectorEditor_segment');
}
if (typeof(vectorEditor_areaResult) === 'undefined') {
var vectorEditor_areaResult=gtc("vectorEditor+areaResult");
vectorEditor_areaResult.registerClass('vectorEditor_areaResult');
}
if (typeof(vectorEditor_updateResult) === 'undefined') {
var vectorEditor_updateResult=gtc("vectorEditor+updateResult");
vectorEditor_updateResult.registerClass('vectorEditor_updateResult');
}
if (typeof(vectorEditor_modifyFeatureResult) === 'undefined') {
var vectorEditor_modifyFeatureResult=gtc("vectorEditor+modifyFeatureResult");
vectorEditor_modifyFeatureResult.registerClass('vectorEditor_modifyFeatureResult');
}
if (typeof(vectorEditor_shapeInfo) === 'undefined') {
var vectorEditor_shapeInfo=gtc("vectorEditor+shapeInfo");
vectorEditor_shapeInfo.registerClass('vectorEditor_shapeInfo');
}
