/*
 COPYRIGHT 2009 ESRI

 TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
 Unpublished material - all rights reserved under the
 Copyright Laws of the United States and applicable international
 laws, treaties, and conventions.

 For additional information, contact:
 Environmental Systems Research Institute, Inc.
 Attn: Contracts and Legal Services Department
 380 New York Street
 Redlands, California, 92373
 USA

 email: contracts@esri.com
 */
//>>built
define("esri/tasks/GeometryService",["dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/_base/json","dojo/_base/Deferred","dojo/has","esri/kernel","esri/request","esri/deferredUtils","esri/tasks/Task","esri/geometry/Extent","esri/geometry/Polyline","esri/geometry/Polygon","esri/geometry/Multipoint","esri/geometry/jsonUtils"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f){var _10=_1(_a,{declaredClass:"esri.tasks.GeometryService",_eventMap:{"areas-and-lengths-complete":["result"],"auto-complete-complete":["geometries"],"buffer-complete":["geometries"],"convex-hull-complete":["geometry"],"cut-complete":["result"],"difference-complete":["geometries"],"distance-complete":["distance"],"generalize-complete":["geometries"],"intersect-complete":["geometries"],"label-points-complete":["geometries"],"lengths-complete":["result"],"offset-complete":["geometries"],"project-complete":["geometries"],"relation-complete":["relations"],"reshape-complete":["geometry"],"simplify-complete":["geometries"],"trim-extend-complete":["geometries"],"union-complete":["geometry"]},constructor:function(url){var _11=_2.hitch;this._projectHandler=_11(this,this._projectHandler);this._simplifyHandler=_11(this,this._simplifyHandler);this._bufferHandler=_11(this,this._bufferHandler);this._areasAndLengthsHandler=_11(this,this._areasAndLengthsHandler);this._lengthsHandler=_11(this,this._lengthsHandler);this._labelPointsHandler=_11(this,this._labelPointsHandler);this._relationHandler=_11(this,this._relationHandler);this._convexHullHandler=_11(this,this._convexHullHandler);this._unionHandler=_11(this,this._unionHandler);this._autoCompleteHandler=_11(this,this._autoCompleteHandler);this._reshapeHandler=_11(this,this._reshapeHandler);this._cutHandler=_11(this,this._cutHandler);this._intersectHandler=_11(this,this._intersectHandler);this._differenceHandler=_11(this,this._differenceHandler);this._trimExtendHandler=_11(this,this._trimExtendHandler);this._densifyHandler=_11(this,this._densifyHandler);this._generalizeHandler=_11(this,this._densifyHandler);this._offsetHandler=_11(this,this._offsetHandler);this._distanceHandler=_11(this,this._distanceHandler);this.registerConnectEvents();},_encodeGeometries:function(_12){var gs=[],i,il=_12.length;for(i=0;i<il;i++){gs.push(_12[i].toJson());}return {geometryType:_f.getJsonType(_12[0]),geometries:gs};},_decodeGeometries:function(_13,_14,sr){var _15=_f.getGeometryType(_14),_16=_13.geometries,fs=[],_17={spatialReference:sr.toJson()},_18=_2.mixin;_3.forEach(_16,function(g,i){fs[i]=new _15(_18(g,_17));});return fs;},_toProjectGeometry:function(_19){var sr=_19.spatialReference.toJson();if(_19 instanceof _b){return new _d({rings:[[[_19.xmin,_19.ymin],[_19.xmin,_19.ymax],[_19.xmax,_19.ymax],[_19.xmax,_19.ymin],[_19.xmin,_19.ymin]]],spatialReference:sr});}else{return new _c({paths:[[].concat(_19.points)],spatialReference:sr});}},_fromProjectedGeometry:function(_1a,_1b,_1c){if(_1b==="esriGeometryEnvelope"){var _1d=_1a.rings[0];return new _b(_1d[0][0],_1d[0][1],_1d[2][0],_1d[2][1],_1c);}else{return new _e({points:_1a.paths[0],spatialReference:_1c.toJson()});}},project:function(_1e,_1f,_20,_21){var _22=_2.mixin({},this._url.query,{f:"json"}),_23;if(!_1e.geometries){_23=_1e[0];_22=_2.mixin(_22,{outSR:_1f.wkid||_4.toJson(_1f.toJson()),inSR:_23.spatialReference.wkid||_4.toJson(_23.spatialReference.toJson()),geometries:_4.toJson(this._encodeGeometries(_1e))});}else{_21=_20;_20=_1f;_1f=_1e.outSR;_23=_1e.geometries[0];_22=_2.mixin(_22,_1e.toJson());}var _24=_f.getJsonType(_23),_25=this._projectHandler,_26=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/project",content:_22,callbackParamName:"callback",load:function(r,i){_25(r,i,_24,_1f,_20,_21,dfd);},error:function(r){_26(r,_21,dfd);}});return dfd;},_projectHandler:function(_27,io,_28,_29,_2a,_2b,dfd){try{var fs=this._decodeGeometries(_27,_28,_29);this._successHandler([fs],"onProjectComplete",_2a,dfd);}catch(err){this._errorHandler(err,_2b,dfd);}},onProjectComplete:function(){},simplify:function(_2c,_2d,_2e){var _2f=_2c[0].spatialReference;var _30=_2.mixin({},this._url.query,{f:"json",sr:_2f.wkid?_2f.wkid:_4.toJson(_2f.toJson()),geometries:_4.toJson(this._encodeGeometries(_2c))}),_31=_f.getJsonType(_2c[0]),_32=this._simplifyHandler,_33=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/simplify",content:_30,callbackParamName:"callback",load:function(r,i){_32(r,i,_31,_2f,_2d,_2e,dfd);},error:function(r){_33(r,_2e,dfd);}});return dfd;},_simplifyHandler:function(_34,io,_35,sr,_36,_37,dfd){try{var fs=this._decodeGeometries(_34,_35,sr);this._successHandler([fs],"onSimplifyComplete",_36,dfd);}catch(err){this._errorHandler(err,_37,dfd);}},onSimplifyComplete:function(){},convexHull:function(_38,_39,_3a){var _3b=_38[0].spatialReference;var _3c=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_3b.toJson()),geometries:_4.toJson(this._encodeGeometries(_38))}),_3d=this._convexHullHandler,_3e=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/convexHull",content:_3c,callbackParamName:"callback",load:function(r,i){_3d(r,i,_3b,_39,_3a,dfd);},error:function(r){_3e(r,_3a,dfd);}});return dfd;},_convexHullHandler:function(_3f,io,_40,_41,_42,dfd){try{var _43=_f.fromJson(_3f.geometry).setSpatialReference(_40);this._successHandler([_43],"onConvexHullComplete",_41,dfd);}catch(err){this._errorHandler(err,_42,dfd);}},onConvexHullComplete:function(){},union:function(_44,_45,_46){var _47=_44[0].spatialReference;var _48=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_47.toJson()),geometries:_4.toJson(this._encodeGeometries(_44))}),_49=this._unionHandler,_4a=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/union",content:_48,callbackParamName:"callback",load:function(r,i){_49(r,i,_47,_45,_46,dfd);},error:function(r){_4a(r,_46,dfd);}});return dfd;},_unionHandler:function(_4b,io,_4c,_4d,_4e,dfd){try{var _4f=_f.fromJson(_4b.geometry).setSpatialReference(_4c);this._successHandler([_4f],"onUnionComplete",_4d,dfd);}catch(err){this._errorHandler(err,_4e,dfd);}},onUnionComplete:function(){},autoComplete:function(_50,_51,_52,_53){var _54=_50[0].spatialReference;var _55=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_54.toJson()),polygons:_4.toJson(this._encodeGeometries(_50).geometries),polylines:_4.toJson(this._encodeGeometries(_51).geometries)}),_56=this._autoCompleteHandler,_57=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/autoComplete",content:_55,callbackParamName:"callback",load:function(r,i){_56(r,i,_54,_52,_53,dfd);},error:function(r){_57(r,_53,dfd);}});return dfd;},_autoCompleteHandler:function(_58,io,_59,_5a,_5b,dfd){try{var _5c=_58.geometries,_5d=[],i,il=_5c.length;for(i=0;i<il;i++){_5d[i]=new _d({spatialReference:_59,rings:_5c[i].rings});}this._successHandler([_5d],"onAutoCompleteComplete",_5a,dfd);}catch(err){this._errorHandler(err,_5b,dfd);}},onAutoCompleteComplete:function(){},reshape:function(_5e,_5f,_60,_61){var _62=_5e.spatialReference;var _63=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_62.toJson()),target:_4.toJson({geometryType:_f.getJsonType(_5e),geometry:_5e.toJson()}),reshaper:_4.toJson(_5f.toJson())}),_64=this._reshapeHandler,_65=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/reshape",content:_63,callbackParamName:"callback",load:function(r,i){_64(r,i,_62,_60,_61,dfd);},error:function(r){_65(r,_61,dfd);}});return dfd;},_reshapeHandler:function(_66,io,_67,_68,_69,dfd){try{var _6a=_f.fromJson(_66.geometry).setSpatialReference(_67);this._successHandler([_6a],"onReshapeComplete",_68,dfd);}catch(err){this._errorHandler(err,_69,dfd);}},onReshapeComplete:function(){},cut:function(_6b,_6c,_6d,_6e){var _6f=_6b[0].spatialReference;var _70=_3.map(_6b,function(_71){return _71.toJson();});var _72=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_6f.toJson()),target:_4.toJson({geometryType:_f.getJsonType(_6b[0]),geometries:_70}),cutter:_4.toJson(_6c.toJson())}),_73=this._cutHandler,_74=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/cut",content:_72,callbackParamName:"callback",load:function(r,i){_73(r,i,_6f,_6d,_6e,dfd);},error:function(r){_74(r,_6e,dfd);}});return dfd;},_cutHandler:function(_75,io,_76,_77,_78,dfd){try{var _79=_75.geometries;var _7a={};_7a.cutIndexes=_75.cutIndexes;_7a.geometries=[];_3.forEach(_79,function(_7b){_7a.geometries.push(_f.fromJson(_7b).setSpatialReference(_76));});this._successHandler([_7a],"onCutComplete",_77,dfd);}catch(err){this._errorHandler(err,_78,dfd);}},onCutComplete:function(){},intersect:function(_7c,_7d,_7e,_7f){var _80=_7c[0].spatialReference;var _81=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_80.toJson()),geometries:_4.toJson(this._encodeGeometries(_7c)),geometry:_4.toJson({geometryType:_f.getJsonType(_7d),geometry:_7d.toJson()})}),_82=this._intersectHandler,_83=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/intersect",content:_81,callbackParamName:"callback",load:function(r,i){_82(r,i,_80,_7e,_7f,dfd);},error:function(r){_83(r,_7f,dfd);}});return dfd;},_intersectHandler:function(_84,io,_85,_86,_87,dfd){try{var _88=_84.geometries,_89=[];_3.forEach(_88,function(_8a){_89.push(_f.fromJson(_8a).setSpatialReference(_85));});this._successHandler([_89],"onIntersectComplete",_86,dfd);}catch(err){this._errorHandler(err,_87,dfd);}},onIntersectComplete:function(){},difference:function(_8b,_8c,_8d,_8e){var _8f=_8b[0].spatialReference;var _90=_2.mixin({},this._url.query,{f:"json",sr:_4.toJson(_8f.toJson()),geometries:_4.toJson(this._encodeGeometries(_8b)),geometry:_4.toJson({geometryType:_f.getJsonType(_8c),geometry:_8c.toJson()})}),_91=this._differenceHandler,_92=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/difference",content:_90,callbackParamName:"callback",load:function(r,i){_91(r,i,_8f,_8d,_8e,dfd);},error:function(r){_92(r,_8e,dfd);}});return dfd;},_differenceHandler:function(_93,io,_94,_95,_96,dfd){try{var _97=_93.geometries,_98=[];_3.forEach(_97,function(_99){_98.push(_f.fromJson(_99).setSpatialReference(_94));});this._successHandler([_98],"onDifferenceComplete",_95,dfd);}catch(err){this._errorHandler(err,_96,dfd);}},onDifferenceComplete:function(){},buffer:function(_9a,_9b,_9c){var _9d=_2.mixin({},this._url.query,{f:"json"},_9a.toJson()),sr=_9a.outSpatialReference||_9a.geometries[0].spatialReference,_9e=this._bufferHandler,_9f=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/buffer",content:_9d,callbackParamName:"callback",load:function(r,i){_9e(r,i,sr,_9b,_9c,dfd);},error:function(r){_9f(r,_9c,dfd);}});return dfd;},_bufferHandler:function(_a0,io,sr,_a1,_a2,dfd){try{var _a3=_a0.geometries,_a4=[],i,il=_a3.length;for(i=0;i<il;i++){_a4[i]=new _d({spatialReference:sr,rings:_a3[i].rings});}this._successHandler([_a4],"onBufferComplete",_a1,dfd);}catch(err){this._errorHandler(err,_a2,dfd);}},onBufferComplete:function(){},areasAndLengths:function(_a5,_a6,_a7){var _a8=_2.mixin({},this._url.query,{f:"json"},_a5.toJson()),_a9=this._areasAndLengthsHandler,_aa=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/areasAndLengths",content:_a8,callbackParamName:"callback",load:function(r,i){_a9(r,i,_a6,_a7,dfd);},error:function(r){_aa(r,_a7,dfd);}});return dfd;},_areasAndLengthsHandler:function(_ab,io,_ac,_ad,dfd){try{this._successHandler([_ab],"onAreasAndLengthsComplete",_ac,dfd);}catch(err){this._errorHandler(err,_ad,dfd);}},onAreasAndLengthsComplete:function(){},lengths:function(_ae,_af,_b0){var _b1=_2.mixin({},this._url.query,{f:"json"},_ae.toJson()),_b2=this._lengthsHandler,_b3=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/lengths",content:_b1,callbackParamName:"callback",load:function(r,i){_b2(r,i,_af,_b0,dfd);},error:function(r){_b3(r,_b0,dfd);}});return dfd;},_lengthsHandler:function(_b4,io,_b5,_b6,dfd){try{this._successHandler([_b4],"onLengthsComplete",_b5,dfd);}catch(err){this._errorHandler(err,_b6,dfd);}},onLengthsComplete:function(){},labelPoints:function(_b7,_b8,_b9){var _ba=_3.map(_b7,function(_bb){return _bb.toJson();});var sr=_b7[0].spatialReference,_bc=_2.mixin({},this._url.query,{f:"json",sr:sr.wkid?sr.wkid:_4.toJson(sr.toJson()),polygons:_4.toJson(_ba)}),_bd=this._labelPointsHandler,_be=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/labelPoints",content:_bc,callbackParamName:"callback",load:function(r,i){_bd(r,i,_b7,sr,_b8,_b9,dfd);},error:function(r){_be(r,_b9,dfd);}});return dfd;},_labelPointsHandler:function(_bf,io,_c0,sr,_c1,_c2,dfd){try{var _c3=_bf.labelPoints,_c4=[];_3.forEach(_c3,function(_c5){_c4.push(_f.fromJson(_c5).setSpatialReference(sr));});this._successHandler([_c4],"onLabelPointsComplete",_c1,dfd);}catch(err){this._errorHandler(err,_c2,dfd);}},onLabelPointsComplete:function(){},relation:function(_c6,_c7,_c8){var _c9=_2.mixin({},this._url.query,{f:"json"},_c6.toJson()),_ca=this._relationHandler,_cb=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/relation",content:_c9,callbackParamName:"callback",load:function(r,i){_ca(r,i,_c7,_c8,dfd);},error:function(r){_cb(r,_c8,dfd);}});return dfd;},_relationHandler:function(_cc,io,_cd,_ce,dfd){try{var _cf=_cc.relations;this._successHandler([_cf],"onRelationComplete",_cd,dfd);}catch(err){this._errorHandler(err,_ce,dfd);}},onRelationComplete:function(){},trimExtend:function(_d0,_d1,_d2){var _d3=_2.mixin({},this._url.query,{f:"json"},_d0.toJson()),_d4=_d0.sr,_d5=this._trimExtendHandler,_d6=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/trimExtend",content:_d3,callbackParamName:"callback",load:function(r,i){_d5(r,i,_d4,_d1,_d2,dfd);},error:function(r){_d6(r,_d2,dfd);}});return dfd;},_trimExtendHandler:function(_d7,io,_d8,_d9,_da,dfd){try{var _db=_d7.geometries,_dc=[],i,il=_db.length;for(i=0;i<il;i++){_dc[i]=new _c({spatialReference:_d8,paths:_db[i].paths});}this._successHandler([_dc],"onTrimExtendComplete",_d9,dfd);}catch(err){this._errorHandler(err,_da,dfd);}},onTrimExtendComplete:function(){},densify:function(_dd,_de,_df){var _e0=_2.mixin({},this._url.query,{f:"json"},_dd.toJson()),_e1=_dd.geometries[0].spatialReference,_e2=this._densifyHandler,_e3=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/densify",content:_e0,callbackParamName:"callback",load:function(r,i){_e2(r,i,_e1,_de,_df,dfd);},error:function(r){_e3(r,_df,dfd);}});return dfd;},_densifyHandler:function(_e4,io,_e5,_e6,_e7,dfd){try{var _e8=_e4.geometries,_e9=[];_3.forEach(_e8,function(_ea){_e9.push(_f.fromJson(_ea).setSpatialReference(_e5));});this._successHandler([_e9],"onDensifyComplete",_e6,dfd);}catch(err){this._errorHandler(err,_e7,dfd);}},onDensifyComplete:function(){},generalize:function(_eb,_ec,_ed){var _ee=_2.mixin({},this._url.query,{f:"json"},_eb.toJson()),_ef=_eb.geometries[0].spatialReference,_f0=this._generalizeHandler,_f1=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/generalize",content:_ee,callbackParamName:"callback",load:function(r,i){_f0(r,i,_ef,_ec,_ed,dfd);},error:function(r){_f1(r,_ed,dfd);}});return dfd;},_generalizeHandler:function(_f2,io,_f3,_f4,_f5,dfd){try{var _f6=_f2.geometries,_f7=[];_3.forEach(_f6,function(_f8){_f7.push(_f.fromJson(_f8).setSpatialReference(_f3));});this._successHandler([_f7],"onGeneralizeComplete",_f4,dfd);}catch(err){this._errorHandler(err,_f5,dfd);}},onGeneralizeComplete:function(){},offset:function(_f9,_fa,_fb){var _fc=_2.mixin({},this._url.query,{f:"json"},_f9.toJson()),_fd=_f9.geometries[0].spatialReference,_fe=this._offsetHandler,_ff=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/offset",content:_fc,callbackParamName:"callback",load:function(r,i){_fe(r,i,_fd,_fa,_fb,dfd);},error:function(r){_ff(r,_fb,dfd);}});return dfd;},_offsetHandler:function(_100,io,_101,_102,_103,dfd){try{var _104=_100.geometries,_105=[];_3.forEach(_104,function(geom){_105.push(_f.fromJson(geom).setSpatialReference(_101));});this._successHandler([_105],"onOffsetComplete",_102,dfd);}catch(err){this._errorHandler(err,_103,dfd);}},onOffsetComplete:function(){},distance:function(_106,_107,_108){var _109=_2.mixin({},this._url.query,{f:"json"},_106.toJson()),_10a=_106.geometry1.spatialReference,_10b=this._distanceHandler,_10c=this._errorHandler,dfd=new _5(_9._dfdCanceller);dfd._pendingDfd=_8({url:this._url.path+"/distance",content:_109,callbackParamName:"callback",load:function(r,i){_10b(r,i,_10a,_107,_108,dfd);},error:function(r){_10c(r,_108,dfd);}});return dfd;},_distanceHandler:function(_10d,io,_10e,_10f,_110,dfd){try{_10d=_10d&&_10d.distance;this._successHandler([_10d],"onDistanceComplete",_10f,dfd);}catch(err){this._errorHandler(err,_110,dfd);}},onDistanceComplete:function(){}});_2.mixin(_10,{UNIT_METER:9001,UNIT_GERMAN_METER:9031,UNIT_FOOT:9002,UNIT_SURVEY_FOOT:9003,UNIT_CLARKE_FOOT:9005,UNIT_FATHOM:9014,UNIT_NAUTICAL_MILE:9030,UNIT_SURVEY_CHAIN:9033,UNIT_SURVEY_LINK:9034,UNIT_SURVEY_MILE:9035,UNIT_KILOMETER:9036,UNIT_CLARKE_YARD:9037,UNIT_CLARKE_CHAIN:9038,UNIT_CLARKE_LINK:9039,UNIT_SEARS_YARD:9040,UNIT_SEARS_FOOT:9041,UNIT_SEARS_CHAIN:9042,UNIT_SEARS_LINK:9043,UNIT_BENOIT_1895A_YARD:9050,UNIT_BENOIT_1895A_FOOT:9051,UNIT_BENOIT_1895A_CHAIN:9052,UNIT_BENOIT_1895A_LINK:9053,UNIT_BENOIT_1895B_YARD:9060,UNIT_BENOIT_1895B_FOOT:9061,UNIT_BENOIT_1895B_CHAIN:9062,UNIT_BENOIT_1895B_LINK:9063,UNIT_INDIAN_FOOT:9080,UNIT_INDIAN_1937_FOOT:9081,UNIT_INDIAN_1962_FOOT:9082,UNIT_INDIAN_1975_FOOT:9083,UNIT_INDIAN_YARD:9084,UNIT_INDIAN_1937_YARD:9085,UNIT_INDIAN_1962_YARD:9086,UNIT_INDIAN_1975_YARD:9087,UNIT_FOOT_1865:9070,UNIT_RADIAN:9101,UNIT_DEGREE:9102,UNIT_ARCMINUTE:9103,UNIT_ARCSECOND:9104,UNIT_GRAD:9105,UNIT_GON:9106,UNIT_MICRORADIAN:9109,UNIT_ARCMINUTE_CENTESIMAL:9112,UNIT_ARCSECOND_CENTESIMAL:9113,UNIT_MIL6400:9114,UNIT_BRITISH_1936_FOOT:9095,UNIT_GOLDCOAST_FOOT:9094,UNIT_INTERNATIONAL_CHAIN:109003,UNIT_INTERNATIONAL_LINK:109004,UNIT_INTERNATIONAL_YARD:109001,UNIT_STATUTE_MILE:9093,UNIT_SURVEY_YARD:109002,UNIT_50KILOMETER_LENGTH:109030,UNIT_150KILOMETER_LENGTH:109031,UNIT_DECIMETER:109005,UNIT_CENTIMETER:109006,UNIT_MILLIMETER:109007,UNIT_INTERNATIONAL_INCH:109008,UNIT_US_SURVEY_INCH:109009,UNIT_INTERNATIONAL_ROD:109010,UNIT_US_SURVEY_ROD:109011,UNIT_US_NAUTICAL_MILE:109012,UNIT_UK_NAUTICAL_MILE:109013,UNIT_SQUARE_INCHES:"esriSquareInches",UNIT_SQUARE_FEET:"esriSquareFeet",UNIT_SQUARE_YARDS:"esriSquareYards",UNIT_ACRES:"esriAcres",UNIT_SQUARE_MILES:"esriSquareMiles",UNIT_SQUARE_MILLIMETERS:"esriSquareMillimeters",UNIT_SQUARE_CENTIMETERS:"esriSquareCentimeters",UNIT_SQUARE_DECIMETERS:"esriSquareDecimeters",UNIT_SQUARE_METERS:"esriSquareMeters",UNIT_ARES:"esriAres",UNIT_HECTARES:"esriHectares",UNIT_SQUARE_KILOMETERS:"esriSquareKilometers"});if(_6("extend-esri")){_2.setObject("tasks.GeometryService",_10,_7);}return _10;});