{"id":760,"date":"2011-05-07T18:44:00","date_gmt":"2011-05-07T10:44:00","guid":{"rendered":"http:\/\/blog.newnaw.com\/?p=760"},"modified":"2011-05-07T18:44:00","modified_gmt":"2011-05-07T10:44:00","slug":"arcgis-api-for-windows-phone%e5%bc%80%e5%8f%91%e5%ae%9e%e4%be%8b7%e5%88%a9%e7%94%a8geoprocessing%e5%88%86%e6%9e%90%e8%b6%85%e5%b8%82%e7%9a%84%e8%90%a5%e4%b8%9a%e7%8a%b6%e5%86%b5","status":"publish","type":"post","link":"https:\/\/blog.newnaw.com\/?p=760","title":{"rendered":"ArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b(7):\u5229\u7528Geoprocessing\u5206\u6790\u8d85\u5e02\u7684\u8425\u4e1a\u72b6\u51b5"},"content":{"rendered":"<p>\u3000\u3000\u672c\u6587\u5185\u5bb9\uff1aGeoprocessing<br \/>\u3000\u3000\u524d\u51e0\u8282\u4e2d\uff0c\u6211\u4eec\u5229\u7528GIS\u8fd9\u4e2a\u5de5\u5177\uff0c\u5bf9\u8fde\u9501\u8d85\u5e02\u5e97\u9762\u7684\u8425\u4e1a\u72b6\u51b5\u505a\u4e86\u5145\u5206\u7684\u5c55\u793a\u3002\u8fd9\u4e00\u8282\u4e2d\uff0c\u6211\u4eec\u5229\u7528GIS\u7279\u6709\u7684Geoprocessing\u529f\u80fd\uff0c\u7ed3\u5408\u8d85\u5e02\u7684\u8425\u4e1a\u6570\u636e\u7edf\u8ba1\uff0c\u5bf9\u8d85\u5e02\u7684\u8425\u4e1a\u72b6\u51b5\u505a\u4e00\u4e2a\u6bd4\u8f83\u5408\u7406\u7684\u5224\u65ad\uff0c\u4ece\u800c\u6709\u52a9\u4e8e\u7ecf\u8425\u8005\u53ca\u65f6\u8c03\u6574\u7b56\u7565\uff0c\u9002\u5e94\u5e02\u573a\u7684\u53d8\u5316\u3002<br \/>\u3000\u3000\u6211\u4eec\u7684\u5927\u81f4\u5206\u6790\u601d\u8def\u662f\u8fd9\u6837\u7684\uff1a\u5bf9\u4e8e\u6bcf\u4e2a\u8d85\u5e02\u6765\u8bf4\uff0c\u4f1a\u6709\u56fa\u5b9a\u7684\u6d88\u8d39\u7fa4\u4f53\uff0c\u4e00\u822c\u901a\u5e38\u662f\u8ddd\u79bb\u8be5\u8d85\u5e02\u4e00\u5b9a\u8303\u56f4\u5185\u7684\u5e38\u9a7b\u5c45\u6c11\uff0c\u8fd9\u90e8\u5206\u5360\u7edd\u5927\u591a\u6570\uff08\u4e00\u6b21\u6027\u8def\u8fc7\u7684\u6d88\u8d39\u8005\u4eba\u6570\u8f83\u5c11\uff0c\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\uff09\uff1b\u9996\u5148\u6211\u4eec\u5229\u7528GIS\u8fd9\u4e2a\u5de5\u5177\uff0c\u8bbe\u6cd5\u5f97\u5230\u6bcf\u4e2a\u8d85\u5e02\u5468\u56f4\u4e00\u5b9a\u8303\u56f4\u5185\u7684\u5e38\u9a7b\u4eba\u53e3\u6570\uff0c\u505a\u4e3a\u8be5\u8d85\u5e02\u7684\u6f5c\u5728\u6d88\u8d39\u7fa4\u4f53\uff1b\u7136\u540e\u6839\u636e\u8fc7\u53bb\u4e00\u5b9a\u65f6\u95f4\u5185\uff0c\u8fd9\u4e2a\u54c1\u724c\u6240\u6709\u8d85\u5e02\u7684\u8425\u4e1a\u989d\u7edf\u8ba1\uff0c\u8ba1\u7b97\u51fa\u6240\u6709\u8d85\u5e02\u5e97\u9762\u6f5c\u5728\u6d88\u8d39\u7fa4\u4f53\u6bcf\u4eba\u6bcf\u5929\u7684\u5927\u7ea6\u6d88\u8d39\u989d\u5ea6\u662f\u591a\u5c11\uff0c\u505a\u4e3a\u8be5\u54c1\u724c\u8d85\u5e02\u7684\u4e00\u4e2a\u5e73\u5747\u7ade\u4e89\u529b\uff08\u6bcf\u4eba\/\u5929\u8d2d\u4e70\u529b\u662f\u591a\u5c11\uff09\uff1b\u8fd9\u6837\u5c31\u80fd\u5229\u7528\u8fd9\u4e2a\u5e73\u5747\u7ade\u4e89\u529b\u6570\u503c\u548c\u67d0\u4e2a\u8d85\u5e02\u6f5c\u5728\u6d88\u8d39\u4eba\u53e3\u6570\uff0c\u9884\u4f30\u51fa\u8be5\u8d85\u5e02\u4e00\u5b9a\u65f6\u671f\u5185\u5927\u7ea6\u7684\u8425\u4e1a\u989d\u6536\u5165\u3002\u5982\u679c\u5b9e\u9645\u8425\u4e1a\u989d\u4e0e\u8fd9\u4e2a\u9884\u4f30\u76f8\u5dee\u4e0d\u5927\uff0c\u6211\u4eec\u8ba4\u4e3a\u8be5\u8d85\u5e02\u8425\u4e1a\u72b6\u51b5\u6b63\u5e38\uff1b\u5982\u679c\u8425\u4e1a\u989d\u7edf\u8ba1\u660e\u663e\u5c0f\u4e8e\u8fd9\u4e2a\u9884\u4f30\u503c\uff0c\u5219\u6709\u53ef\u80fd\u662f\u8be5\u8d85\u5e02\u8425\u4e1a\u8303\u56f4\u5185\u65b0\u589e\u4e86\u7ade\u4e89\u5bf9\u624b\u7684\u5e97\u9762\uff0c\u6216\u7ade\u4e89\u5bf9\u624b\u91c7\u53d6\u4e86\u4fc3\u9500\u63aa\u65bd\u7b49\u624b\u6bb5\u5206\u6d41\u4e86\u8d2d\u4e70\u529b\uff0c\u4ece\u800c\u63d0\u9192\u7ecf\u8425\u8005\u53ca\u65f6\u5bf9\u8425\u4e1a\u7b56\u7565\u505a\u51fa\u8c03\u6574\uff0c\u907f\u514d\u8fdb\u4e00\u6b65\u7684\u635f\u5931\u3002<br \/>\u3000\u3000\u8d85\u5e02\u5e97\u9762\u7684\u8425\u4e1a\u989d\u7edf\u8ba1\u6211\u4eec\u6709\u4e86\uff0c\u4e0b\u4e00\u6b65\u5c31\u9700\u8981\u83b7\u5f97\u6bcf\u4e2a\u8d85\u5e02\u6f5c\u5728\u7684\u6d88\u8d39\u4eba\u7fa4\u6570\u91cf\u3002\u6211\u4eec\u5206\u4e24\u6b65\u6765\u5b8c\u6210\u8fd9\u9879\u5de5\u4f5c\uff1a\u7b2c\u4e00\u6b65\u8ba1\u7b97\u51fa\u8ddd\u79bb\u67d0\u4e2a\u8d85\u5e02\u5e97\u9762\u4e00\u5b9a\u65f6\u95f4\u8f66\u7a0b\u7684\u5730\u7406\u8303\u56f4\uff0c\u4f5c\u4e3a\u8be5\u8d85\u5e02\u6f5c\u5728\u6d88\u8d39\u7fa4\u4f53\u7684\u5c45\u4f4f\u533a\u57df\uff1b\u7b2c\u4e8c\u90e8\u67e5\u8be2\u51fa\u8be5\u533a\u57df\u5185\u7684\u5e38\u9a7b\u4eba\u53e3\u6570\u3002<br \/>\u3000\u3000GIS\u6b63\u662f\u7528\u4e8e\u5904\u7406\u6240\u6709\u4e0e\u5730\u7406\u5206\u5e03\u76f8\u5173\u4efb\u52a1\u7684\u4e00\u4e2a\u6709\u529b\u5de5\u5177\uff0cGeoprocessing\u5219\u662f\u5b83\u7684\u6838\u5fc3\u6240\u5728\u3002\u4e0a\u9762\u7684\u4e24\u4e2a\u6b65\u9aa4\u6211\u4eec\u5c31\u53ef\u4ee5\u5229\u7528Geoprocessing\u8f7b\u677e\u5b8c\u6210\u3002ArcGIS Server\u4e2d\uff0c\u5c06\u5177\u6709\u4e00\u5b9a\u903b\u8f91\u76f8\u5173\u7684\u4e00\u7ec4\u4efb\u52a1\u5c01\u88c5\u6210\u4e00\u4e2a\u5904\u7406\u6d41\u7a0b\uff0c\u53d1\u5e03\u6210<a href=\"http:\/\/help.arcgis.com\/en\/arcgisserver\/10.0\/help\/arcgis_server_dotnet_help\/index.html#\/\/009300000028000000.htm\">Geoprocessing Service<\/a>\uff08\u7b80\u79f0GP\u670d\u52a1\uff09\uff0c\u901a\u8fc7Task\u7684\u5f62\u5f0f\u4f9b\u5ba2\u6237\u7aef\u8c03\u7528\u3002\u5ba2\u6237\u7aef\u53ea\u9700\u63d0\u4f9b\u76f8\u5173\u7684\u53c2\u6570\u540e\uff0c\u5c31\u53ef\u76f4\u63a5\u5f97\u5230\u5904\u7406\u7ed3\u679c\uff0c\u800c\u4e0d\u9700\u8981\u7406\u4f1a\u670d\u52a1\u5668\u7aef\u590d\u6742\u7684\u5904\u7406\u6d41\u7a0b\u3002<a href=\"http:\/\/www.arcgis.com\">ArcGIS Online<\/a>\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e24\u4e2a\u73b0\u6210\u7684Geoprocessing Service\uff1a<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Network\/ESRI_DriveTime_US\/GPServer\/CreateDriveTimePolygons\">CreateDriveTimePolygons<\/a>\u548c<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Demographics\/ESRI_Population_World\/GPServer\/PopulationSummary\">PopulationSummary<\/a>\u3002\u524d\u8005\u7528\u6765\u83b7\u5f97\u8ddd\u67d0\u70b9\u4e00\u5b9a\u65f6\u95f4\u7684\u8f66\u7a0b\u8303\u56f4\uff0c\u540e\u8005\u7528\u6765\u83b7\u5f97\u67d0\u8303\u56f4\u7684\u5e38\u9a7b\u4eba\u53e3\uff0c\u521a\u597d\u7b26\u5408\u6211\u4eec\u7684\u9700\u6c42\u3002\u56e0\u6b64\u53ea\u9700\u8c03\u7528\u8fd9\u4e24\u4e2aGP\u670d\u52a1\uff0c\u5373\u53ef\u5f97\u5230\u6211\u4eec\u60f3\u8981\u7684\u6570\u636e\uff0c\u4ece\u800c\u5b8c\u6210\u76f8\u5173\u8ba1\u7b97\u5de5\u4f5c\u3002<br \/>\u3000\u3000\u6ce8\uff1a<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Network\/ESRI_DriveTime_US\/GPServer\/CreateDriveTimePolygons\">CreateDriveTimePolygons<\/a>\u9002\u7528\u4e8e\u7f8e\u56fd\u5883\u5185\uff0c\u5728\u6b64\u4ec5\u4f5c\u8bf4\u660e\u4e4b\u7528\uff1b\u7531\u4e8e\u6570\u636e\u539f\u56e0\uff0c\u7a0b\u5e8f\u5185\u6240\u4f7f\u7528\u7684\u5317\u4eac\u5e02\u5185\u7684\u5bf9\u5e94GP\u670d\u52a1\u65e0\u6cd5\u516c\u5f00\u3002<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Demographics\/ESRI_Population_World\/GPServer\/PopulationSummary\">PopulationSummary<\/a>\u9002\u7528\u4e8e\u5168\u4e16\u754c\u8303\u56f4\uff0c\u4f46\u7ed3\u679c\u7cbe\u5ea6\u4e0d\u505a\u4fdd\u8bc1\u3002\u5173\u4e8e\u4e24\u4e2a\u670d\u52a1\u7684\u4f7f\u7528\u9650\u5236\uff0c\u8bf7\u67e5\u770b\u76f8\u5173\u9875\u9762\u3002<br \/>\u3000\u3000\u6211\u4eec\u4f9d\u7136\u521b\u5efa\u4e00\u4e2a\u5de5\u5177\u7c7b\uff0c\u53d6\u540dAnalysis\uff0c\u8be5\u7c7b\u5305\u542b\u4e24\u4e2a<a href=\"http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/windowsphone\/apiref\/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.Geoprocessor.html\">GeoProcessing Task<\/a>\uff08Geoprocessor\uff09\uff1a_gpDriveTime\u548c_gpPopulation\uff0c\u5206\u522b\u7528\u4e8e\u83b7\u53d6\u67d0\u8d85\u5e02\u7684\u8425\u4e1a\u8303\u56f4\u548c\u8be5\u8303\u56f4\u5185\u7684\u5e38\u9a7b\u4eba\u53e3\u6570\u3002<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">private<\/span> Geoprocessor _gpDriveTime = <span style=\"color: #0000ff\">new<\/span> Geoprocessor(App.Current.Resources[<span style=\"color: #006080\">\"GPDriveTime\"<\/span>] <span style=\"color: #0000ff\">as<\/span> <span style=\"color: #0000ff\">string<\/span>);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span> <span style=\"color: #0000ff\">private<\/span> Geoprocessor _gpPopulation = <span style=\"color: #0000ff\">new<\/span> Geoprocessor(App.Current.Resources[<span style=\"color: #006080\">\"GPPopulation\"<\/span>] <span style=\"color: #0000ff\">as<\/span> <span style=\"color: #0000ff\">string<\/span>);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span> Time.ExecuteCompleted += gpDriveTime_ExecuteCompleted;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>                 _gpDriveTime.Failed += (s, a) =&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>                 {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>                     MessageBox.Show(<span style=\"color: #006080\">\"ServiceArea\"<\/span>+a.Error.Message + <span style=\"color: #006080\">\"n\"<\/span> + a.UserState);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>                 };<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>                 _gpPopulation.ExecuteCompleted += gpPopulation_ExecuteCompleted;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span>                 _gpPopulation.Failed += (s, a) =&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span>                 {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span>                     ChangeMapOpacity(-1);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span>                     MessageBox.Show(<span style=\"color: #006080\">\"Population\"<\/span>+a.Error.Message + <span style=\"color: #006080\">\"n\"<\/span> + a.UserState);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span>                 };<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000GP Task\u662fArcGIS API for Windows Phone\u63d0\u4f9b\u7ed9\u6211\u4eec\u7528\u6765\u8c03\u7528Geoprocessing Service\u7684\u7c7b\uff0c\u4e0eQuery Task\uff0cIdentify Task\u7b49\u76f8\u540c\uff0c\u4f7f\u7528\u5206\u4e3a\u4e09\u4e2a\u6b65\u9aa4\uff1a\u51c6\u5907\u53c2\u6570\uff0c\u63d0\u4ea4\u8bf7\u6c42\uff0c\u5904\u7406\u7ed3\u679c\u3002\u6211\u4eec\u9996\u5148\u6765\u770b\u4e00\u4e0b<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Network\/ESRI_DriveTime_US\/GPServer\/CreateDriveTimePolygons\">CreateDriveTimePolygons<\/a>\u8fd9\u4e2aGP\u670d\u52a1\u6240\u9700\u7684\u53c2\u6570\uff1a <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/05\/image.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/05\/image_thumb.png\" width=\"436\" height=\"607\"><\/a> <\/p>\n<p>\u3000\u3000\u603b\u5171\u6709\u4e09\u4e2a\u53c2\u6570\u3002Direction\u4e3aInput\u7684\u53c2\u6570\uff0c\u5373\u8f93\u5165\u53c2\u6570\uff0c\u6709\u4e24\u4e2a\uff1aInput_Location\u548cDrive_Times\u3002\u56e0\u6b64\u6211\u4eec\u53ea\u9700\u51c6\u5907\u597d\u8fd9\u4e24\u4e2a\u53c2\u6570\uff0c\u5373\u53ef\u8c03\u7528\u8be5\u670d\u52a1\u3002\u6700\u540e\u7ed3\u679c\u4e2d\uff0c\u4f1a\u5305\u542bDirection\u4e3aOutput\u7684\u53c2\u6570\uff0c\u5373\u5c31\u662f\u6211\u4eec\u7684\u7ed3\u679c\u4e86\uff08esriGeometryPolygon\uff09\u3002<\/p>\n<div style=\"border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px\" id=\"codeSnippetWrapper\">\n<div style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\" id=\"codeSnippet\">\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum1\">   1:<\/span> <span style=\"color: #0000ff\">void<\/span> _FLayer_MouseLeftButtonDown(<span style=\"color: #0000ff\">object<\/span> sender, GraphicMouseButtonEventArgs e)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum2\">   2:<\/span> {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum3\">   3:<\/span>     <span style=\"color: #008000\">\/\/\u2026\u2026<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum4\">   4:<\/span>     <span style=\"color: #008000\">\/\/prepare parameters for GP Service<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum5\">   5:<\/span>     GraphicCollection gc = <span style=\"color: #0000ff\">new<\/span> GraphicCollection();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum6\">   6:<\/span>     gc.Add(e.Graphic);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum7\">   7:<\/span>     CalculateServiceArea(gc);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum8\">   8:<\/span>     <span style=\"color: #008000\">\/\/\u2026\u2026<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum9\">   9:<\/span> }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum10\">  10:<\/span> mary&gt;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum11\">  11:<\/span> <span style=\"color: #008000\">\/\/\/ find the service area of a given supermarket<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum12\">  12:<\/span> <span style=\"color: #008000\">\/\/\/ &lt;\/summary&gt;<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum13\">  13:<\/span> <span style=\"color: #008000\">\/\/\/ &lt;param name=\"gc\"&gt;the graphic collection contains the supermarket&lt;\/param&gt;<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum14\">  14:<\/span> <span style=\"color: #0000ff\">private<\/span> <span style=\"color: #0000ff\">void<\/span> CalculateServiceArea(GraphicCollection gc)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum15\">  15:<\/span> {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum16\">  16:<\/span>     ESRI.ArcGIS.Client.Projection.WebMercator wm = <span style=\"color: #0000ff\">new<\/span> ESRI.ArcGIS.Client.Projection.WebMercator();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum17\">  17:<\/span>     GraphicCollection graphicCollection = <span style=\"color: #0000ff\">new<\/span> GraphicCollection();<span style=\"color: #008000\">\/\/using new gc to remain point(121000) stay on map<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum18\">  18:<\/span>     <span style=\"color: #0000ff\">foreach<\/span> (Graphic g <span style=\"color: #0000ff\">in<\/span> gc)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum19\">  19:<\/span>     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum20\">  20:<\/span>         Graphic graphic = <span style=\"color: #0000ff\">new<\/span> Graphic()<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum21\">  21:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum22\">  22:<\/span>             Geometry=wm.ToGeographic(g.Geometry)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum23\">  23:<\/span>         };<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum24\">  24:<\/span>         graphicCollection.Add(graphic);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum25\">  25:<\/span>     };<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum26\">  26:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum27\">  27:<\/span>     FeatureSet fs = <span style=\"color: #0000ff\">new<\/span> FeatureSet(graphicCollection);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum28\">  28:<\/span>     List&lt;GPParameter&gt; parameters = <span style=\"color: #0000ff\">new<\/span> List&lt;GPParameter&gt;();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum29\">  29:<\/span>     parameters.Add(<span style=\"color: #0000ff\">new<\/span> GPFeatureRecordSetLayer(<span style=\"color: #006080\">\"Input_Facilities\"<\/span>, fs));<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum30\">  30:<\/span>     parameters.Add(<span style=\"color: #0000ff\">new<\/span> GPString(<span style=\"color: #006080\">\"Drive_Time_Values\"<\/span>, <span style=\"color: #006080\">\"20 40\"<\/span>));<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum31\">  31:<\/span>     <span style=\"color: #008000\">\/\/execute the GP Task<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum32\">  32:<\/span>     _gpDriveTime.ExecuteAsync(parameters);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum33\">  33:<\/span> }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum34\">  34:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum35\">  35:<\/span> riveTime_ExecuteCompleted(<span style=\"color: #0000ff\">object<\/span> sender, GPExecuteCompleteEventArgs e)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum36\">  36:<\/span> {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum37\">  37:<\/span>     ESRI.ArcGIS.Client.Projection.WebMercator wm = <span style=\"color: #0000ff\">new<\/span> ESRI.ArcGIS.Client.Projection.WebMercator();<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum38\">  38:<\/span>     <span style=\"color: #0000ff\">foreach<\/span> (GPParameter parameter <span style=\"color: #0000ff\">in<\/span> e.Results.OutParameters)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum39\">  39:<\/span>     {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum40\">  40:<\/span>         <span style=\"color: #0000ff\">if<\/span> (parameter <span style=\"color: #0000ff\">is<\/span> GPFeatureRecordSetLayer)<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum41\">  41:<\/span>         {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum42\">  42:<\/span>             GPFeatureRecordSetLayer gpLayer = parameter <span style=\"color: #0000ff\">as<\/span> GPFeatureRecordSetLayer;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum43\">  43:<\/span>             <span style=\"color: #008000\">\/\/40 min<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum44\">  44:<\/span>             gpLayer.FeatureSet.Features[0].Symbol = <span style=\"color: #0000ff\">new<\/span> SimpleFillSymbol()<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum45\">  45:<\/span>             {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum46\">  46:<\/span>                 Fill=<span style=\"color: #0000ff\">new<\/span> SolidColorBrush(Color.FromArgb(119,153,255,153)),<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum47\">  47:<\/span>                 BorderBrush=<span style=\"color: #0000ff\">new<\/span> SolidColorBrush(Color.FromArgb(255,153,255,153)),<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum48\">  48:<\/span>                 BorderThickness=2<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum49\">  49:<\/span>             };<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum50\">  50:<\/span>             gpLayer.FeatureSet.Features[0].Geometry = wm.FromGeographic(gpLayer.FeatureSet.Features[0].Geometry);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum51\">  51:<\/span>             _GLayer.Graphics.Add(gpLayer.FeatureSet.Features[0]);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum52\">  52:<\/span>             <span style=\"color: #008000\">\/\/20 min<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum53\">  53:<\/span>             gpLayer.FeatureSet.Features[1].Symbol = <span style=\"color: #0000ff\">new<\/span> SimpleFillSymbol()<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum54\">  54:<\/span>             {<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum55\">  55:<\/span>                 Fill = <span style=\"color: #0000ff\">new<\/span> SolidColorBrush(Color.FromArgb(119, 153, 153, 255)),<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum56\">  56:<\/span>                 BorderBrush = <span style=\"color: #0000ff\">new<\/span> SolidColorBrush(Color.FromArgb(255, 153, 153, 255)),<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum57\">  57:<\/span>                 BorderThickness = 2<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum58\">  58:<\/span>             };<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum59\">  59:<\/span>             gpLayer.FeatureSet.Features[1].Geometry = wm.FromGeographic(gpLayer.FeatureSet.Features[1].Geometry);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum60\">  60:<\/span>             _GLayer.Graphics.Add(gpLayer.FeatureSet.Features[1]);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum61\">  61:<\/span>&nbsp; <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum62\">  62:<\/span>             map1.ZoomTo(gpLayer.FeatureSet.Features[0].Geometry);<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum63\">  63:<\/span>             <\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum64\">  64:<\/span>             <span style=\"color: #008000\">\/\/\u2026\u2026<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum65\">  65:<\/span>             (_BusyIndicator.Child <span style=\"color: #0000ff\">as<\/span> TextBlock).Text = <span style=\"color: #006080\">\"\u67e5\u8be2\u670d\u52a1\u533a\u5185\u4eba\u53e3\u6570......\"<\/span>;<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum66\">  66:<\/span>             <span style=\"color: #008000\">\/\/\u7ee7\u7eed\u67e5\u8be2\u8be5\u8303\u56f4\u4eba\u53e3\u6570<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum67\">  67:<\/span>             <span style=\"color: #008000\">\/\/\u2026\u2026<\/span><\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum68\">  68:<\/span>         }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: white; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum69\">  69:<\/span>     }<\/pre>\n<p><!--CRLF--><\/p>\n<pre style=\"border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: #f4f4f4; margin: 0em; border-left-style: none; padding-left: 0px; width: 100%; padding-right: 0px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; font-size: 8pt; overflow: visible; padding-top: 0px\"><span style=\"color: #606060\" id=\"lnum70\">  70:<\/span> }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/05\/image1.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/05\/image_thumb1.png\" width=\"275\" height=\"450\"><\/a> <\/p>\n<p>\u3000\u3000\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u5728parameters\u96c6\u5408\u4e2d\u6dfb\u52a0\u4e86GP\u670d\u52a1\u6240\u8981\u6c42\u7684\u6240\u6709\u8f93\u5165\u53c2\u6570\uff0c\u7136\u540e\u6267\u884c\uff1b\u800c\u7ed3\u679c\u4e2d\uff0c\u6211\u4eec\u4e5f\u53d6\u5f97\u4e86GP\u670d\u52a1\u4e2d\u7684\u8f93\u51fa\u53c2\u6570\u3002\u8fd9\u91cc\u8bf4\u660e\u4e00\u70b9\uff0cGP\u670d\u52a1\u7684\u53c2\u6570GPParameter\u6bd4\u8f83\u7075\u6d3b\uff0c\u65b0\u5efa\u53c2\u6570\u65f6\u7684\u540d\u79f0\uff0c\u7c7b\u578b\u4e00\u5b9a\u8981\u4fdd\u6301\u4e0eService Directory\u670d\u52a1\u5217\u8868\u4e2d\u4e00\u81f4\uff0c\u5426\u5219\u53ef\u80fd\u5bfc\u81f4\u8c03\u7528\u5931\u8d25\u3002\u53e6\u5916\u7531\u4e8eGP\u670d\u52a1\u7684\u7a7a\u95f4\u53c2\u8003\uff084326\uff09\u4e0e\u6211\u4eec\u7684\u5e95\u56fe\uff08102100\uff09\u4e0d\u4e00\u81f4\uff0c\u6240\u4ee5\u505a\u4e86\u5750\u6807\u8f6c\u6362\u3002<br \/>\u3000\u3000\u6b64\u5916\u6211\u4eec\u8fd8\u6ce8\u610f\u5230\u4e00\u70b9\uff0c<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Network\/ESRI_DriveTime_US\/GPServer\/CreateDriveTimePolygons\">CreateDriveTimePolygons<\/a>\u670d\u52a1\u7684\u6267\u884c\u65b9\u5f0f\u662f\u201cesriExecutionTypeSynchronous\u201d\u5373\u540c\u6b65\u8c03\u7528\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e00\u822c\u7528\u4e8e\u6267\u884c\u8fc7\u7a0b\u65f6\u95f4\u8f83\u77ed\u7684GP\u670d\u52a1\uff0c\u7f3a\u70b9\u662f\u5ba2\u6237\u7aef\u9700\u8981\u5728\u8fd4\u56de\u7ed3\u679c\u4e4b\u524d\u7b49\u5f85\u3002\u5177\u4f53\u53ef\u53c2\u8003<a href=\"http:\/\/help.arcgis.com\/en\/arcgisserver\/10.0\/help\/arcgis_server_dotnet_help\/0093\/00930000000r000000.htm\">\u8fd9\u91cc<\/a>\u3002<br \/>\u3000\u3000\u83b7\u5f97\u4e86\u8d85\u5e02\u7684\u670d\u52a1\u8303\u56f4\u4e4b\u540e\uff0c\u9700\u8981\u7528\u7b2c\u4e8c\u4e2aGP\u670d\u52a1\uff0c<a href=\"http:\/\/sampleserver1.arcgisonline.com\/ArcGIS\/rest\/services\/Demographics\/ESRI_Population_World\/GPServer\/PopulationSummary\">PopulationSummary<\/a>\u6765\u83b7\u5f97\u8be5\u8303\u56f4\u5185\u7684\u4eba\u53e3\u603b\u6570\uff1b\u4e4b\u540e\u5c31\u53ef\u6309\u7167\u524d\u9762\u7684\u5206\u6790\u601d\u8def\uff0c\u6765\u8ba1\u7b97\u51fa\u8be5\u8d85\u5e02\u7684\u8425\u4e1a\u989d\u9884\u671f\uff0c\u4e0e\u5b9e\u9645\u8425\u4e1a\u72b6\u51b5\u6bd4\u8f83\u540e\uff0c\u53ef\u5f97\u51fa\u76f8\u5e94\u7684\u7ed3\u8bba\u3002 <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/05\/image2.png\"><img decoding=\"async\" loading=\"lazy\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto 5px; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/05\/image_thumb2.png\" width=\"256\" height=\"413\"><\/a> <\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a<br \/>Geoprocessing\u6982\u5ff5\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/arcgisdesktop\/10.0\/help\/002s\/002s00000001000000.htm\">http:\/\/help.arcgis.com\/en\/arcgisdesktop\/10.0\/help\/002s\/002s00000001000000.htm<\/a> <\/p>\n<p>ArcGIS Server\u4e2d\u7684Geoprocessing Service\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/arcgisserver\/10.0\/help\/arcgis_server_dotnet_help\/index.html#\/\/009300000028000000.htm\">http:\/\/help.arcgis.com\/en\/arcgisserver\/10.0\/help\/arcgis_server_dotnet_help\/index.html#\/\/009300000028000000.htm<\/a> <\/p>\n<p>ArcGIS API for Windows Phone\u4e2d\u8c03\u7528Geoprocessing Service\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/windowsphone\/help\/011v\/011v0000001m000000.htm\">http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/windowsphone\/help\/011v\/011v0000001m000000.htm<\/a> <\/p>\n<p>\u3000\u3000\u81f3\u6b64\uff0c\u300aArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b\u300b\u5df2\u7ecf\u7ed3\u675f\uff0c\u5e0c\u671b\u5927\u5bb6\u80fd\u901a\u8fc7\u8fd9\u51e0\u7bc7\u6587\u7ae0\u5bf9ArcGIS API for Windows Phone\u6709\u6240\u4e86\u89e3\u3002\u76ee\u524dAPI\u7684\u7248\u672c\u662f2.2 beta\uff0c\u8fd9\u4ec5\u4ec5\u662f\u4e00\u4e2a\u5f00\u59cb\uff0c\u968f\u7740\u4ee5\u540e\u5927\u5bb6\u5bf9\u79fb\u52a8GIS\u7684\u5173\u6ce8\u8d8a\u6765\u8d8a\u591a\uff0c\u76f8\u4fe1esri\u4e5f\u4f1a\u5728API\u4e2d\u9010\u6b65\u63a8\u51fa\u66f4\u591a\u7684\u529f\u80fd\u6765\u6ee1\u8db3\u6211\u4eec\u66f4\u591a\u7684\u5e94\u7528\u9700\u6c42\u3002<br \/>\u3000\u3000\u5728\u524d\u4e0d\u4e45\u53ec\u5f00\u7684MIX11\u5927\u4f1a\u4e0a\uff0c\u5fae\u8f6f\u5c55\u793a\u4e86\u65b0\u7684Windows Phone Mongo\uff0c\u8be5\u7248\u672c\u7684SDK\u4e2d\u4e0d\u4ec5WP\u7684\u6027\u80fd\u6709\u4e86\u5f88\u5927\u63d0\u5347\uff0c\u800c\u4e14\u6709\u7740\u5168\u9762\u652f\u6301\u771f\u6b63\u7684\u591a\u4efb\u52a1\uff0cSilverlight 4\uff0c\u5185\u5d4c\u5168\u529f\u80fdIE9\u6d4f\u89c8\u5668\uff0c\u652f\u6301socket\u901a\u4fe1\uff0c\u5141\u8bb8\u540c\u65f6\u4f7f\u7528Silverlight\u548cXNA\u7f16\u7a0b\u6a21\u578b\uff08SL\u4e2d\u5c31\u4f1a\u6709\u539f\u751f3D\u529f\u80fd\u652f\u6301\uff09\u7b49<a href=\"http:\/\/blogs.microsoft.co.il\/blogs\/alex_golesh\/archive\/2011\/04\/13\/windows-phone-mango-what-s-coming-in-near-future.aspx\">\u4ee4\u4eba\u5174\u594b\u7684\u65b0\u7279\u6027<\/a>\u3002\u4f34\u968f\u7740\u5e02\u573a\u5360\u6709\u7387\u4e0d\u65ad\u63d0\u5347\u7684\u8fd9\u4e00\u4e8b\u5b9e\uff0c\u6709\u7740\u771f\u6b63\u786c\u5b9e\u529b\u7684Windows Phone\u6709\u7406\u7531\u8ba9\u6211\u4eec\u76f8\u4fe1\u4e0d\u4ec5\u5bf9\u4e8e\u5f00\u53d1\u8005\uff0c\u540c\u6837\u5bf9\u4e8e\u7528\u6237\u800c\u8a00\uff0c\u5b83\u80fd\u7ed9\u6211\u4eec\u5e26\u6765\u66f4\u591a\u673a\u4f1a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u672c\u6587\u5185\u5bb9\uff1aGeoprocessing\u3000\u3000\u524d\u51e0\u8282\u4e2d\uff0c\u6211\u4eec\u5229\u7528GIS\u8fd9\u4e2a\u5de5\u5177\uff0c\u5bf9\u8fde\u9501\u8d85\u5e02\u5e97\u9762\u7684\u8425\u4e1a\u72b6\u51b5\u505a\u4e86\u5145\u5206\u7684\u5c55\u793a\u3002\u8fd9\u4e00\u8282\u4e2d\uff0c\u6211\u4eec\u5229\u7528GIS\u7279\u6709\u7684Geoprocessing\u529f\u80fd\uff0c\u7ed3\u5408\u8d85\u5e02\u7684\u8425\u4e1a\u6570\u636e\u7edf\u8ba1\uff0c\u5bf9\u8d85\u5e02\u7684\u8425\u4e1a\u72b6\u51b5\u505a\u4e00\u4e2a\u6bd4\u8f83\u5408\u7406\u7684\u5224\u65ad\uff0c\u4ece\u800c\u6709\u52a9\u4e8e\u7ecf\u8425\u8005\u53ca\u65f6\u8c03\u6574\u7b56\u7565\uff0c\u9002\u5e94\u5e02\u573a\u7684\u53d8\u5316\u3002\u3000\u3000\u6211\u4eec\u7684\u5927\u81f4\u5206\u6790\u601d\u8def\u662f\u8fd9\u6837\u7684\uff1a\u5bf9\u4e8e\u6bcf\u4e2a\u8d85\u5e02\u6765\u8bf4\uff0c\u4f1a\u6709\u56fa\u5b9a\u7684\u6d88\u8d39\u7fa4\u4f53\uff0c\u4e00\u822c\u901a\u5e38\u662f\u8ddd\u79bb\u8be5\u8d85\u5e02\u4e00\u5b9a\u8303\u56f4\u5185\u7684\u5e38\u9a7b\u5c45\u6c11\uff0c\u8fd9\u90e8\u5206\u5360\u7edd\u5927\u591a\u6570\uff08\u4e00\u6b21\u6027\u8def\u8fc7\u7684\u6d88\u8d39\u8005\u4eba\u6570\u8f83\u5c11\uff0c\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1\uff09\uff1b\u9996\u5148\u6211\u4eec\u5229\u7528GIS\u8fd9\u4e2a\u5de5\u5177\uff0c\u8bbe\u6cd5\u5f97\u5230\u6bcf\u4e2a\u8d85\u5e02\u5468\u56f4\u4e00\u5b9a\u8303\u56f4\u5185\u7684\u5e38\u9a7b\u4eba\u53e3\u6570\uff0c\u505a\u4e3a\u8be5\u8d85\u5e02\u7684\u6f5c\u5728\u6d88\u8d39\u7fa4\u4f53\uff1b\u7136\u540e\u6839\u636e\u8fc7\u53bb\u4e00\u5b9a\u65f6\u95f4\u5185\uff0c\u8fd9\u4e2a\u54c1\u724c\u6240\u6709\u8d85\u5e02\u7684\u8425\u4e1a\u989d\u7edf\u8ba1\uff0c\u8ba1\u7b97\u51fa\u6240\u6709\u8d85\u5e02\u5e97\u9762\u6f5c\u5728\u6d88\u8d39\u7fa4\u4f53\u6bcf\u4eba\u6bcf\u5929\u7684\u5927\u7ea6\u6d88\u8d39\u989d\u5ea6\u662f\u591a\u5c11\uff0c\u505a\u4e3a\u8be5\u54c1\u724c\u8d85\u5e02\u7684\u4e00\u4e2a\u5e73\u5747\u7ade\u4e89\u529b\uff08\u6bcf\u4eba\/\u5929\u8d2d\u4e70\u529b\u662f\u591a\u5c11\uff09\uff1b\u8fd9\u6837\u5c31\u80fd\u5229\u7528\u8fd9\u4e2a\u5e73\u5747\u7ade\u4e89\u529b\u6570\u503c\u548c\u67d0\u4e2a\u8d85\u5e02\u6f5c\u5728\u6d88\u8d39\u4eba\u53e3\u6570\uff0c\u9884\u4f30\u51fa\u8be5\u8d85\u5e02\u4e00\u5b9a\u65f6\u671f\u5185\u5927\u7ea6\u7684\u8425\u4e1a\u989d\u6536\u5165\u3002\u5982\u679c\u5b9e\u9645\u8425\u4e1a\u989d\u4e0e\u8fd9\u4e2a\u9884\u4f30\u76f8\u5dee\u4e0d\u5927\uff0c\u6211\u4eec\u8ba4\u4e3a\u8be5\u8d85\u5e02\u8425\u4e1a\u72b6\u51b5\u6b63\u5e38\uff1b\u5982\u679c\u8425\u4e1a\u989d\u7edf\u8ba1\u660e\u663e\u5c0f\u4e8e\u8fd9\u4e2a\u9884\u4f30\u503c\uff0c\u5219\u6709\u53ef\u80fd\u662f\u8be5\u8d85\u5e02\u8425\u4e1a\u8303\u56f4\u5185\u65b0\u589e\u4e86\u7ade\u4e89\u5bf9\u624b\u7684\u5e97\u9762\uff0c\u6216\u7ade\u4e89\u5bf9\u624b\u91c7\u53d6\u4e86\u4fc3\u9500\u63aa\u65bd\u7b49\u624b\u6bb5\u5206\u6d41\u4e86\u8d2d\u4e70\u529b\uff0c\u4ece\u800c\u63d0\u9192\u7ecf\u8425\u8005\u53ca\u65f6\u5bf9\u8425\u4e1a\u7b56\u7565\u505a\u51fa\u8c03\u6574\uff0c\u907f\u514d\u8fdb\u4e00\u6b65\u7684\u635f\u5931\u3002\u3000\u3000\u8d85\u5e02\u5e97\u9762\u7684\u8425\u4e1a\u989d\u7edf\u8ba1\u6211\u4eec\u6709\u4e86\uff0c\u4e0b\u4e00\u6b65\u5c31\u9700\u8981\u83b7\u5f97\u6bcf\u4e2a\u8d85\u5e02\u6f5c\u5728\u7684\u6d88\u8d39\u4eba\u7fa4\u6570\u91cf\u3002\u6211\u4eec\u5206\u4e24\u6b65\u6765\u5b8c\u6210\u8fd9\u9879\u5de5\u4f5c\uff1a\u7b2c\u4e00\u6b65\u8ba1\u7b97\u51fa\u8ddd\u79bb\u67d0\u4e2a\u8d85\u5e02\u5e97\u9762\u4e00\u5b9a\u65f6\u95f4\u8f66\u7a0b\u7684\u5730\u7406\u8303\u56f4\uff0c\u4f5c\u4e3a\u8be5\u8d85\u5e02\u6f5c\u5728\u6d88\u8d39\u7fa4\u4f53\u7684\u5c45\u4f4f\u533a\u57df\uff1b\u7b2c\u4e8c\u90e8\u67e5\u8be2\u51fa\u8be5\u533a\u57df\u5185\u7684\u5e38\u9a7b\u4eba\u53e3\u6570\u3002\u3000\u3000GIS\u6b63\u662f\u7528\u4e8e\u5904\u7406\u6240\u6709\u4e0e\u5730\u7406\u5206\u5e03\u76f8\u5173\u4efb\u52a1\u7684\u4e00\u4e2a\u6709\u529b\u5de5\u5177\uff0cGeoprocessing\u5219\u662f\u5b83\u7684\u6838\u5fc3\u6240\u5728\u3002\u4e0a\u9762\u7684\u4e24\u4e2a\u6b65\u9aa4\u6211\u4eec\u5c31\u53ef\u4ee5\u5229\u7528Geoprocessing\u8f7b\u677e\u5b8c\u6210\u3002ArcGIS Server\u4e2d\uff0c\u5c06\u5177\u6709\u4e00\u5b9a\u903b\u8f91\u76f8\u5173\u7684\u4e00\u7ec4\u4efb\u52a1\u5c01\u88c5\u6210\u4e00\u4e2a\u5904\u7406\u6d41\u7a0b\uff0c\u53d1\u5e03\u6210Geoprocessing Service\uff08\u7b80\u79f0GP\u670d\u52a1\uff09\uff0c\u901a\u8fc7Task\u7684\u5f62\u5f0f\u4f9b\u5ba2\u6237\u7aef\u8c03\u7528\u3002\u5ba2\u6237\u7aef\u53ea\u9700\u63d0\u4f9b\u76f8\u5173\u7684\u53c2\u6570\u540e\uff0c\u5c31\u53ef\u76f4\u63a5\u5f97\u5230\u5904\u7406\u7ed3\u679c\uff0c\u800c\u4e0d\u9700\u8981\u7406\u4f1a\u670d\u52a1\u5668\u7aef\u590d\u6742\u7684\u5904\u7406\u6d41\u7a0b\u3002ArcGIS Online\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e24\u4e2a\u73b0\u6210\u7684Geoprocessing Service\uff1aCreateDriveTimePolygons\u548cPopulationSummary\u3002\u524d\u8005\u7528\u6765\u83b7\u5f97\u8ddd\u67d0\u70b9\u4e00\u5b9a\u65f6\u95f4\u7684\u8f66\u7a0b\u8303\u56f4\uff0c\u540e\u8005\u7528\u6765\u83b7\u5f97\u67d0\u8303\u56f4\u7684\u5e38\u9a7b\u4eba\u53e3\uff0c\u521a\u597d\u7b26\u5408\u6211\u4eec\u7684\u9700\u6c42\u3002\u56e0\u6b64\u53ea\u9700\u8c03\u7528\u8fd9\u4e24\u4e2aGP\u670d\u52a1\uff0c\u5373\u53ef\u5f97\u5230\u6211\u4eec\u60f3\u8981\u7684\u6570\u636e\uff0c\u4ece\u800c\u5b8c\u6210\u76f8\u5173\u8ba1\u7b97\u5de5\u4f5c\u3002\u3000\u3000\u6ce8\uff1aCreateDriveTimePolygons\u9002\u7528\u4e8e\u7f8e\u56fd\u5883\u5185\uff0c\u5728\u6b64\u4ec5\u4f5c\u8bf4\u660e\u4e4b\u7528\uff1b\u7531\u4e8e\u6570\u636e\u539f\u56e0\uff0c\u7a0b\u5e8f\u5185\u6240\u4f7f\u7528\u7684\u5317\u4eac\u5e02\u5185\u7684\u5bf9\u5e94GP\u670d\u52a1\u65e0\u6cd5\u516c\u5f00\u3002PopulationSummary\u9002\u7528\u4e8e\u5168\u4e16\u754c\u8303\u56f4\uff0c\u4f46\u7ed3\u679c\u7cbe\u5ea6\u4e0d\u505a\u4fdd\u8bc1\u3002\u5173\u4e8e\u4e24\u4e2a\u670d\u52a1\u7684\u4f7f\u7528\u9650\u5236\uff0c\u8bf7\u67e5\u770b\u76f8\u5173\u9875\u9762\u3002\u3000\u3000\u6211\u4eec\u4f9d\u7136\u521b\u5efa\u4e00\u4e2a\u5de5\u5177\u7c7b\uff0c\u53d6\u540dAnalysis\uff0c\u8be5\u7c7b\u5305\u542b\u4e24\u4e2aGeoProcessing Task\uff08Geoprocessor\uff09\uff1a_gpDriveTime\u548c_gpPopulation\uff0c\u5206\u522b\u7528\u4e8e\u83b7\u53d6\u67d0\u8d85\u5e02\u7684\u8425\u4e1a\u8303\u56f4\u548c\u8be5\u8303\u56f4\u5185\u7684\u5e38\u9a7b\u4eba\u53e3\u6570\u3002 1: private Geoprocessor _gpDriveTime = new Geoprocessor(App.Current.Resources[&#8220;GPDriveTime&#8221;] as string); 2: private Geoprocessor _gpPopulation = new Geoprocessor(App.Current.Resources[&#8220;GPPopulation&#8221;] as string); 3: Time.ExecuteCompleted += gpDriveTime_ExecuteCompleted; 4: _gpDriveTime.Failed += (s, a) =&gt; 5: { 6: MessageBox.Show(&#8220;ServiceArea&#8221;+a.Error.Message + &#8220;n&#8221; + a.UserState); 7: }; 8: _gpPopulation.ExecuteCompleted += gpPopulation_ExecuteCompleted; 9: _gpPopulation.Failed += (s, a) =&gt; 10: { 11: ChangeMapOpacity(-1); 12: MessageBox.Show(&#8220;Population&#8221;+a.Error.Message + &#8220;n&#8221; + a.UserState); 13: &hellip; <a href=\"https:\/\/blog.newnaw.com\/?p=760\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b(7):\u5229\u7528Geoprocessing\u5206\u6790\u8d85\u5e02\u7684\u8425\u4e1a\u72b6\u51b5<\/span> <span class=\"meta-nav\">&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[18,25],"_links":{"self":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/760"}],"collection":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=760"}],"version-history":[{"count":0,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/760\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}