Type.registerNamespace('Spraywise');
Spraywise.vectorEditor=function() {
Spraywise.vectorEditor.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Spraywise.vectorEditor.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Spraywise.vectorEditor._staticInstance.get_path();},
getFeature:function(identifierColumn,identifier,shapeName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._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(this._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(this._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(this._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(this._get_path(), 'measureFeatureArea',false,{shpGeom:shpGeom,SRID:SRID},succeededCallback,failedCallback,userContext); },
measurelastFeaturePartArea:function(shpGeom,SRID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._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(this._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(this._get_path(), 'deleteFeature',false,{shapename:shapename,gid:gid},succeededCallback,failedCallback,userContext); },
intersectFeatures:function(shpGeom,SRID,intersectGeom,succeededCallback, failedCallback, userContext) {
return this._invoke(this._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(this._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(this._get_path(), 'mergeFeaturesById',false,{shapename:shapename,gid1:gid1,gid2:gid2},succeededCallback,failedCallback,userContext); },
getShapeInfo:function(shapename,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'getShapeInfo',false,{shapename:shapename},succeededCallback,failedCallback,userContext); },
openConnection:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'openConnection',false,{},succeededCallback,failedCallback,userContext); },
checkPolygonFeature:function(shpGeom,SRID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._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(this._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(this._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(this._get_path(), 'createShape',false,{shapename:shapename,shpType:shpType,SRID:SRID},succeededCallback,failedCallback,userContext); },
deleteShape:function(shapename,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'deleteShape',false,{shapename:shapename},succeededCallback,failedCallback,userContext); }}
Spraywise.vectorEditor.registerClass('Spraywise.vectorEditor',Sys.Net.WebServiceProxy);
Spraywise.vectorEditor._staticInstance = new Spraywise.vectorEditor();
Spraywise.vectorEditor.set_path = function(value) { Spraywise.vectorEditor._staticInstance.set_path(value); }
Spraywise.vectorEditor.get_path = function() { return Spraywise.vectorEditor._staticInstance.get_path(); }
Spraywise.vectorEditor.set_timeout = function(value) { Spraywise.vectorEditor._staticInstance.set_timeout(value); }
Spraywise.vectorEditor.get_timeout = function() { return Spraywise.vectorEditor._staticInstance.get_timeout(); }
Spraywise.vectorEditor.set_defaultUserContext = function(value) { Spraywise.vectorEditor._staticInstance.set_defaultUserContext(value); }
Spraywise.vectorEditor.get_defaultUserContext = function() { return Spraywise.vectorEditor._staticInstance.get_defaultUserContext(); }
Spraywise.vectorEditor.set_defaultSucceededCallback = function(value) { Spraywise.vectorEditor._staticInstance.set_defaultSucceededCallback(value); }
Spraywise.vectorEditor.get_defaultSucceededCallback = function() { return Spraywise.vectorEditor._staticInstance.get_defaultSucceededCallback(); }
Spraywise.vectorEditor.set_defaultFailedCallback = function(value) { Spraywise.vectorEditor._staticInstance.set_defaultFailedCallback(value); }
Spraywise.vectorEditor.get_defaultFailedCallback = function() { return Spraywise.vectorEditor._staticInstance.get_defaultFailedCallback(); }
Spraywise.vectorEditor.set_enableJsonp = function(value) { Spraywise.vectorEditor._staticInstance.set_enableJsonp(value); }
Spraywise.vectorEditor.get_enableJsonp = function() { return Spraywise.vectorEditor._staticInstance.get_enableJsonp(); }
Spraywise.vectorEditor.set_jsonpCallbackParameter = function(value) { Spraywise.vectorEditor._staticInstance.set_jsonpCallbackParameter(value); }
Spraywise.vectorEditor.get_jsonpCallbackParameter = function() { return Spraywise.vectorEditor._staticInstance.get_jsonpCallbackParameter(); }
Spraywise.vectorEditor.set_path("/Services/vectorEditor.asmx");
Spraywise.vectorEditor.getFeature= function(identifierColumn,identifier,shapeName,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.getFeature(identifierColumn,identifier,shapeName,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.getClosestFeature= function(shapeName,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.getClosestFeature(shapeName,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.getClosestVertex= function(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.getClosestVertex(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.getClosestSegment= function(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.getClosestSegment(shapeNames,pointX,pointY,searchExtentTLX,searchExtentTLY,searchExtentBRX,searchExtentBRY,viewSRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.measureFeatureArea= function(shpGeom,SRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.measureFeatureArea(shpGeom,SRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.measurelastFeaturePartArea= function(shpGeom,SRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.measurelastFeaturePartArea(shpGeom,SRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.updateFeature= function(shapename,shpGeom,SRID,gid,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.updateFeature(shapename,shpGeom,SRID,gid,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.deleteFeature= function(shapename,gid,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.deleteFeature(shapename,gid,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.intersectFeatures= function(shpGeom,SRID,intersectGeom,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.intersectFeatures(shpGeom,SRID,intersectGeom,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.mergeFeatures= function(shpGeom,SRID,intersectGeom,onlyAdjacentFeatures,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.mergeFeatures(shpGeom,SRID,intersectGeom,onlyAdjacentFeatures,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.mergeFeaturesById= function(shapename,gid1,gid2,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.mergeFeaturesById(shapename,gid1,gid2,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.getShapeInfo= function(shapename,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.getShapeInfo(shapename,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.openConnection= function(onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.openConnection(onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.checkPolygonFeature= function(shpGeom,SRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.checkPolygonFeature(shpGeom,SRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.insertFeature= function(shapename,shpGeom,SRID,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.insertFeature(shapename,shpGeom,SRID,allowIntersectingFeatures,editRestrictionQuery,name,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.insertShape= function(shapename,shpGeom,SRID,editRestrictionQuery,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.insertShape(shapename,shpGeom,SRID,editRestrictionQuery,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.createShape= function(shapename,shpType,SRID,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.createShape(shapename,shpType,SRID,onSuccess,onFailed,userContext); }
Spraywise.vectorEditor.deleteShape= function(shapename,onSuccess,onFailed,userContext) {Spraywise.vectorEditor._staticInstance.deleteShape(shapename,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Spraywise.getFeatureResult) === 'undefined') {
Spraywise.getFeatureResult=gtc("Spraywise.getFeatureResult");
Spraywise.getFeatureResult.registerClass('Spraywise.getFeatureResult');
}
if (typeof(Spraywise.closestVertexResult) === 'undefined') {
Spraywise.closestVertexResult=gtc("Spraywise.closestVertexResult");
Spraywise.closestVertexResult.registerClass('Spraywise.closestVertexResult');
}
if (typeof(Spraywise.segment) === 'undefined') {
Spraywise.segment=gtc("Spraywise.segment");
Spraywise.segment.registerClass('Spraywise.segment');
}
if (typeof(Spraywise.areaResult) === 'undefined') {
Spraywise.areaResult=gtc("Spraywise.areaResult");
Spraywise.areaResult.registerClass('Spraywise.areaResult');
}
if (typeof(Spraywise.updateResult) === 'undefined') {
Spraywise.updateResult=gtc("Spraywise.updateResult");
Spraywise.updateResult.registerClass('Spraywise.updateResult');
}
if (typeof(Spraywise.modifyFeatureResult) === 'undefined') {
Spraywise.modifyFeatureResult=gtc("Spraywise.modifyFeatureResult");
Spraywise.modifyFeatureResult.registerClass('Spraywise.modifyFeatureResult');
}
if (typeof(Spraywise.shapeInfo) === 'undefined') {
Spraywise.shapeInfo=gtc("Spraywise.shapeInfo");
Spraywise.shapeInfo.registerClass('Spraywise.shapeInfo');
}

