{"id":705,"date":"2011-03-27T16:04:20","date_gmt":"2011-03-27T08:04:20","guid":{"rendered":"http:\/\/blog.newnaw.com\/?p=705"},"modified":"2011-03-27T16:04:20","modified_gmt":"2011-03-27T08:04:20","slug":"arcgis-api-for-windows-phone%e5%bc%80%e5%8f%91%e5%ae%9e%e4%be%8b5%e5%af%b9%e8%b6%85%e5%b8%82%e4%bf%a1%e6%81%af%e8%bf%9b%e8%a1%8c%e7%a9%ba%e9%97%b4%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"https:\/\/blog.newnaw.com\/?p=705","title":{"rendered":"ArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b(5):\u5bf9\u8d85\u5e02\u4fe1\u606f\u8fdb\u884c\u7a7a\u95f4\u67e5\u8be2"},"content":{"rendered":"<p>\u3000\u3000\u672c\u6587\u5185\u5bb9\uff1aArcGIS API\u4e2dTask\u7684\u6982\u5ff5\uff0cQueryTask\u7684\u4f7f\u7528\uff0c\u4ee5\u53caDraw\u5bf9\u8c61\u3002<br \/>\u3000\u3000\u7a7a\u95f4\u67e5\u8be2GIS\u4e2d\u4e00\u4e2a\u975e\u5e38\u5e38\u7528\u7684\u529f\u80fd\uff1a\u5728\u5730\u56fe\u4e0a\u753b\u51fa\u4efb\u610f\u591a\u8fb9\u5f62\uff0c\u4ece\u81ea\u5df1\u611f\u5174\u8da3\u7684\u4e8b\u7269\u4e2d\u7b5b\u9009\u51fa\u4e0e\u6240\u753b\u591a\u8fb9\u5f62\u6709\u6307\u5b9a\u7a7a\u95f4\u5173\u7cfb\uff08\u901a\u5e38\u662f\u76f8\u4ea4\uff09\u7684\u8981\u7d20\u6765\uff0c\u8fdb\u4e00\u6b65\u67e5\u770b\u3002\u5728\u672c\u6b21\u5f00\u53d1\u5b9e\u4f8b\u4e2d\uff0c\u7b2c\u4e8c\u4e2a\u529f\u80fd\u5c31\u662f\u7a7a\u95f4\u67e5\u8be2\u3002\u7528\u624b\u52bf\u5728\u5730\u56fe\u4e0a\u753b\u4e00\u4e2a\u8303\u56f4\uff0c\u7b5b\u9009\u51fa\u843d\u5165\u8be5\u8303\u56f4\u7684\u8d85\u5e02\u5e97\u9762\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u67e5\u770b\u5b83\u4eec\u7684\u8425\u4e1a\u989d\u7edf\u8ba1\u4fe1\u606f\u3002<br \/>\u3000\u3000ArcGIS API\u4e2d\uff0c\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u8bb8\u591aTask\u7c7b\uff0c\u6765\u5b8c\u6210\u4e00\u4e9b\u5e38\u89c1\u7684GIS\u529f\u80fd\uff0c\u6bd4\u5982\u5c5e\u6027\/\u63a7\u4ef6\u67e5\u8be2\uff0c\u51e0\u4f55\u5bf9\u8c61\u7684\u62d3\u6251\u5904\u7406\uff0c\u7279\u5b9a\u5de5\u4f5c\u6d41\u7684\u5730\u7406\u4efb\u52a1\u7b49\u3002\u5b83\u4eec\u90fd\u662f\u5df2\u7ecf\u5c01\u88c5\u597d\u7684Task\u7c7b\uff0c\u4f7f\u7528\u8d77\u6765\u90fd\u9075\u5faa3\u4e2a\u6b65\u9aa4\u7684\u539f\u5219\uff1a1\u3001\u4e3a\u67d0\u4e2aTask\u8bbe\u7f6e\u6240\u9700\u7684\u76f8\u5e94\u53c2\u6570\uff1b2\u3001\u901a\u8fc7Task\u5bf9\u8c61\u5411\u670d\u52a1\u5668\u53d1\u9001\u5904\u7406\u8bf7\u6c42\uff1b3\u3001\u63a5\u53d7\u670d\u52a1\u5668\u7aef\u8fd4\u56de\u7684\u7ed3\u679c\u3002\u6240\u6709\u7684\u8ba1\u7b97\u548c\u5904\u7406\u5de5\u4f5c\u90fd\u662f\u7531ArcGIS Server\u53d1\u5e03\u7684REST\u670d\u52a1\u6765\u5b8c\u6210\uff0c\u662f\u5178\u578b\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u670d\u52a1\u5668\u7aef\u76f8\u5e94\u7684\u6d41\u7a0b\u3002<br \/>\u3000\u3000QueryTask\u662fArcGIS API\u63d0\u4f9b\u7684\u8bf8\u591aTask\u4e4b\u4e00\uff0c\u5b83\u63a5\u53d7Query\u7c7b\u578b\u7684\u53c2\u6570\u3002\u8be5\u53c2\u6570\u6709\u51e0\u4e2a\u5e38\u7528\u7684\u5c5e\u6027\uff0c\u6bd4\u5982Where\u5c5e\u6027\u548cGeometry\u5c5e\u6027\uff0c\u901a\u8fc7\u5bf9\u8fd9\u4e24\u4e2a\u5c5e\u6027\u7684\u8bbe\u7f6e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5b8c\u6210\u6700\u5e38\u89c1\u7684\u5c5e\u6027\u67e5\u8be2\u548c\u7a7a\u95f4\u67e5\u8be2\u529f\u80fd\u3002\u4f9d\u7136\u5c06\u7a7a\u95f4\u67e5\u8be2\u8fd9\u4e2a\u529f\u80fd\u5c01\u88c5\u6210\u4e00\u4e2a\u5de5\u5177\uff0c\u5728\u4e3b\u754c\u9762\u4e2d\u8fdb\u884c\u8c03\u7528\u3002  <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0023.jpg\"><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=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image002_thumb3.jpg\" width=\"161\" height=\"301\"><\/a>  <\/p>\n<p>\u3000\u3000\u8fd9\u91cc\u4e3a\u4e86\u6e05\u6670\u8d77\u89c1\uff0c\u6211\u7701\u53bb\u4e0e\u7a7a\u95f4\u67e5\u8be2\u529f\u80fd\u65e0\u5173\u7684\u4ee3\u7801\uff08\u6240\u6709\u7a0b\u5e8f\u4ee3\u7801\u4f1a\u5728\u6559\u7a0b\u5b8c\u7ed3\u540e\u63d0\u4f9b\u4e0b\u8f7d\uff09\u3002\u8981\u4f7f\u7528QueryTask\u7684\u529f\u80fd\uff0c\u6211\u4eec\u6309\u7167\u524d\u9762\u8bf4\u4e09\u4e2a\u6b65\u9aa4\u6765\u505a\u3002\u9996\u5148\u8bbe\u7f6e\u597d\u67e5\u8be2\u53c2\u6570Query\uff0c\u7136\u540e\u901a\u8fc7QueryTask\u5bf9\u8c61\u63d0\u4ea4\u67e5\u8be2\u8bf7\u6c42\uff1a<\/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> _draw_DrawComplete(<span style=\"color: #0000ff\">object<\/span> sender, DrawEventArgs 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>             Polygon polygon = <span style=\"color: #0000ff\">null<\/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: #0000ff\">if<\/span> (_usingFreeHand) <span style=\"color: #008000\">\/\/geometry is freehand polyline<\/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>             {<\/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>                 Polyline polyline = e.Geometry <span style=\"color: #0000ff\">as<\/span> Polyline;<\/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>                 ESRI.ArcGIS.Client.Geometry.PointCollection pc = polyline.Paths[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=\"lnum8\">   8:<\/span>                 pc.Add(pc[0]);<\/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>                 polygon = <span style=\"color: #0000ff\">new<\/span> Polygon()<\/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>                     SpatialReference = map1.SpatialReference,<\/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>                 };<\/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>                 polygon.Rings.Add(pc);<\/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>             }<\/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>             <span style=\"color: #0000ff\">else<\/span> <span style=\"color: #008000\">\/\/geometry is polygon<\/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>             {<\/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>                 polygon = e.Geometry <span style=\"color: #0000ff\">as<\/span> Polygon;<\/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>             }<\/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>&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=\"lnum20\">  20:<\/span>             _GLayer.Graphics.Clear();<\/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>             Graphic g = <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: #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>             {<\/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>                 Geometry = polygon,<\/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>                 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=\"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>                     Fill=<span style=\"color: #0000ff\">new<\/span> SolidColorBrush(Color.FromArgb(33,255,0,0)),<\/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>                     BorderBrush=<span style=\"color: #0000ff\">new<\/span> SolidColorBrush(Colors.Red),<\/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>                     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=\"lnum29\">  29:<\/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=\"lnum30\">  30:<\/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>             _GLayer.Graphics.Add(g); <span style=\"color: #008000\">\/\/display the geometry created by Draw object<\/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>&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=\"lnum33\">  33:<\/span>             QueryTask queryTask = <span style=\"color: #0000ff\">new<\/span> QueryTask(App.Current.Resources[<span style=\"color: #006080\">\"BusinessLayer\"<\/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=\"lnum34\">  34:<\/span>             Query query = <span style=\"color: #0000ff\">new<\/span> Query();<\/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>             <span style=\"color: #008000\">\/\/102100 to 4326<\/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=\"lnum36\">  36:<\/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=\"lnum37\">  37:<\/span>             query.Geometry = wm.ToGeographic(polygon);<\/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>             query.OutFields.AddRange(<span style=\"color: #0000ff\">new<\/span> <span style=\"color: #0000ff\">string<\/span>[] { <span style=\"color: #006080\">\"*\"<\/span> });<span style=\"color: #008000\">\/\/return all attributes fields<\/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=\"lnum39\">  39:<\/span>             query.SpatialRelationship = SpatialRelationship.esriSpatialRelIntersects;<\/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>             queryTask.ExecuteCompleted += <span style=\"color: #0000ff\">new<\/span> System.EventHandler&lt;QueryEventArgs&gt;(queryTask_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=\"lnum41\">  41:<\/span>             queryTask.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=\"lnum42\">  42:<\/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=\"lnum43\">  43:<\/span>                 MessageBox.Show(<span style=\"color: #006080\">\"\u67e5\u8be2\u5931\u8d25\"<\/span> + a.Error.Message);<\/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>             };<\/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>             _busyIndicator.Visibility = Visibility.Visible;<\/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>             queryTask.ExecuteAsync(query);     <\/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>         }<\/pre>\n<p><!--CRLF--><\/div>\n<\/div>\n<p>\u3000\u3000\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5229\u7528\u8d85\u5e02\u56fe\u5c42\u7684\u670d\u52a1\u5730\u5740\uff0c\u521d\u59cb\u5316\u4e86\u4e00\u4e2aQueryTask\u5bf9\u8c61\u3002\u5bf9\u4e8eQuery\u53c2\u6570\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u4e86Geometry\u5c5e\u6027\uff0c\u4f5c\u4e3a\u7a7a\u95f4\u67e5\u8be2\u7684\u56fe\u5f62\uff1b\u5bf9OutFields\u53c2\u6570\u7684\u8bbe\u7f6e\u8868\u793a\u5728\u67e5\u8be2\u7ed3\u679c\u4e2d\u8fd4\u56de\u6240\u6709\u5c5e\u6027\u5b57\u6bb5\uff1b\u6307\u5b9a\u7a7a\u95f4\u5173\u7cfb\u4e3a\u4e0eGeometry\u76f8\u4ea4\u3002\u7136\u540e\u901a\u8fc7ExecuteAsync\u65b9\u6cd5\u5c06\u67e5\u8be2\u8bf7\u6c42\u63d0\u4ea4\u5230\u670d\u52a1\u5668\u7aef\u3002\u6ce8\u610f\u5230\u5728\u8bbe\u7f6eQuery\u7684Geometry\u5c5e\u6027\u4e4b\u524d\uff0c\u6211\u4eec\u5bf9Polygon\u5bf9\u8c61\u505a\u4e86\u7a7a\u95f4\u53c2\u8003\u7684\u8f6c\u6362\uff0c\u5c06\u5176\u4ece102100\u5750\u6807\u7cfb\uff08WGS 1984 Web Mercator Auxiliary Sphere\uff0c\u8fd9\u662f\u5730\u56fe\u63a7\u4ef6\u7684\u5750\u6807\u7cfb\uff09\u8f6c\u6362\u5230\u4e864326\u5750\u6807\u7cfb\uff08WGS 1984\uff0c\u8fd9\u662f\u8d85\u5e02\u56fe\u5c42\u7684\u5750\u6807\u7cfb\uff09\uff0c\u5982\u679cQuery\u4e2dGeometry\u7684\u5750\u6807\u7cfb\u4e0d\u6b63\u786e\uff0c\u67e5\u8be2\u7ed3\u679c\u5f80\u5f80\u4f1a\u4e0d\u53ef\u9884\u6599\u3002<br \/>\u3000\u3000\u53d1\u51fa\u8bf7\u6c42\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u8bbe\u7f6e\u597d\u7684queryTask_ExecuteCompleted\u65b9\u6cd5\u4e2d\u53d6\u5f97\u67e5\u8be2\u7ed3\u679c\u4e86\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> queryTask_ExecuteCompleted(<span style=\"color: #0000ff\">object<\/span> sender, QueryEventArgs 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>             _busyIndicator.Visibility = Visibility.Collapsed;<\/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: #0000ff\">if<\/span> (e.FeatureSet.Features.Count == 0) <span style=\"color: #008000\">\/\/typeof(e.FeatureSet.Features)==GraphicCollection<\/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>             {<\/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\">\"\u672a\u9009\u4e2d\u4efb\u4f55\u5e97\u9762\"<\/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=\"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>             <span style=\"color: #0000ff\">else<\/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>                 <span style=\"color: #0000ff\">string<\/span> str = <span style=\"color: #006080\">\"\u662f\u5426\u67e5\u770b\u56fe\u8868\u8be6\u60c5\uff1f\"<\/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>                 <span style=\"color: #0000ff\">if<\/span> (MessageBox.Show(str,<\/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: #006080\">\"\u67e5\u8be2\u7ed3\u679c\"<\/span>, MessageBoxButton.OKCancel) == MessageBoxResult.OK)<\/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--><\/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: #008000\">\/\/add selected graphics to app level, so spatialquerychart.xaml could retrieve them<\/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=\"lnum15\">  15:<\/span>                     App app = Application.Current <span style=\"color: #0000ff\">as<\/span> App;<\/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>                     <span style=\"color: #0000ff\">if<\/span> (app.AppParameters.ContainsKey(<span style=\"color: #006080\">\"QueryedGraphics\"<\/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=\"lnum17\">  17:<\/span>                         app.AppParameters[<span style=\"color: #006080\">\"QueryedGraphics\"<\/span>] = e.FeatureSet.Features;<\/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\">else<\/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=\"lnum19\">  19:<\/span>                         app.AppParameters.Add(<span style=\"color: #006080\">\"QueryedGraphics\"<\/span>, e.FeatureSet.Features);<\/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>&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=\"lnum21\">  21:<\/span>                     (app.AppParameters[<span style=\"color: #006080\">\"MainPage\"<\/span>] <span style=\"color: #0000ff\">as<\/span> PhoneApplicationPage).NavigationService.Navigate(<span style=\"color: #0000ff\">new<\/span> Uri(<span style=\"color: #006080\">\"\/Tools\/SpatialQueryChart.xaml\"<\/span>, UriKind.Relative));<\/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>                 }<\/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>                 _GLayer.ClearGraphics();<\/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>             }<\/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--><\/div>\n<\/div>\n<p>\u3000\u3000\u53ef\u4ee5\u770b\u5230\uff0c\u67e5\u8be2\u7ed3\u679c\uff08\u843d\u5165\u6240\u9009\u8303\u56f4\u5185\u7684\u8d85\u5e02\uff09\u4ee5Graphic\u7684\u5f62\u5f0f\u5b58\u50a8\u5728\u4e8b\u4ef6\u53c2\u6570\u4e2d\u3002Graphic\u7684Geometry\u5c31\u662f\u8d85\u5e02\u7684\u56fe\u5f62\u4fe1\u606f\uff0c\u800cAttributes\u5c5e\u6027\u4e2d\u662f\u6211\u4eec\u60f3\u8981\u7684\u6240\u6709\u8425\u4e1a\u4fe1\u606f\u3002\u5982\u679c\u67e5\u8be2\u7ed3\u679c\u4e0d\u4e3a\u7a7a\uff0c\u6211\u4eec\u5c06\u5176\u5b58\u5165\u5168\u5c40\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u5728\u53e6\u4e00\u4e2a\u9875\u9762\u4e2d\u7528\u56fe\u8868\u7684\u5f62\u5f0f\u6765\u663e\u793a\u3002\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528VisiFire\u63a7\u4ef6\u6765\u663e\u793a\u56fe\u8868\uff0c\u5b83\u662f\u4e00\u5957\u53ef\u7528\u4e8eWP\u4e0a\u7684Silverlight\u63d2\u4ef6\uff0c\u6b64\u5904\u4e0d\u8fdb\u884c\u8fc7\u591a\u8ba8\u8bba\uff0c\u6709\u5174\u8da3\u540c\u5b66\u53ef\u81ea\u5df1\u641c\u7d22\u3002<br \/>\u3000\u3000\u6574\u4e2a\u67e5\u8be2\u7684\u8fc7\u7a0b\u5728QueryTask\u7684\u5e2e\u52a9\u4e0b\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u3002\u7ec6\u5fc3\u7684\u670b\u53cb\u53ef\u80fd\u4f1a\u6709\u7591\u95ee\uff0c\u6211\u4eec\u8fd9\u4e2a\u7a7a\u95f4\u67e5\u8be2\u7684\u56fe\u5f62\u662f\u5982\u4f55\u5f97\u5230\u7684\uff1f\u5728\u524d\u9762\u7684\u4ee3\u7801\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u53d1\u8d77\u67e5\u8be2\u8bf7\u6c42\u7684\u4ee3\u7801\u662f\u5199\u5728_draw_DrawComplete\u8fd9\u4e2a\u4e8b\u4ef6\u4e2d\u7684\u3002_draw\u662f\u6211\u4eec\u63d0\u524d\u5b9a\u4e49\u597d\u7684\u4e00\u4e2aDraw\u5bf9\u8c61\uff1aprivate Draw _draw;\u3002<br \/>\u3000\u3000\u4e3a\u4e86\u65b9\u4fbf\u4e0e\u7528\u6237\u7684\u4ea4\u4e92\uff0cArcGIS API\u4e2d\u63d0\u4f9b\u4e86Draw\u8fd9\u4e2a\u7c7b\uff0c\u53ef\u4ee5\u5229\u7528\u9f20\u6807\u6216\u624b\u52bf\u6765\u4ea4\u4e92\u5730\u753b\u51faPoint\uff0cPolyline\uff0cPolygon\uff0cFreehand\uff08Polyline\uff09\u7b49\u51e0\u4f55\u5bf9\u8c61\uff0c\u57282.2\u7248\u672c\u7684API\u4e2d\uff0cDraw\u8fd8\u65b0\u589e\u4e86arrow\uff0ctriangle\uff0ccircle\uff0cellipses\u51e0\u4e2a\u539f\u751f\u56fe\u5f62\u3002 <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image002.gif\"><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=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image002_thumb.gif\" width=\"311\" height=\"198\"><\/a> <\/p>\n<p>\u3000\u3000\u4f7f\u7528Draw\u8fd9\u4e2a\u5bf9\u8c61\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u521d\u59cb\u5316\uff0c\u8bbe\u5b9a\u597d\u8981\u753b\u7684\u51e0\u4f55\u56fe\u5f62\u7c7b\u578b\uff0c\u7136\u540e\u5c06\u5176IsEnabled\u5c5e\u6027\u8bbe\u4e3aTrue\uff0c\u5c31\u8fdb\u5165\u4e86\u4ea4\u4e92\u72b6\u6001\uff0c\u7ed8\u5236\u5b8c\u6bd5\u540e\uff0c\u5c31\u4f1a\u89e6\u53d1DrawComplete\u4e8b\u4ef6\uff0c\u5728\u4e8b\u4ef6\u7684\u53c2\u6570\u4e2d\u5c31\u53ef\u4ee5\u5f97\u5230\u753b\u51fa\u7684Geometry\u7ed3\u679c\uff0c\u5f97\u5230\u7ed3\u679c\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5229\u7528Graphic\u5c06\u8fd9\u4e2a\u770b\u4e0d\u89c1\u6478\u4e0d\u7740\u7684Geometry\u663e\u793a\u51fa\u6765\u4e86\uff0c\u8fd9\u6837\u5c31\u8fbe\u5230\u4e86\u4ea4\u4e92\u7684\u76ee\u7684\u3002\u6211\u4eec\u7a7a\u95f4\u67e5\u8be2\u7684\u51e0\u4f55\u5bf9\u8c61\u5c31\u662f\u5229\u7528Draw\u5f97\u5230\u7684\u3002 <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0042.jpg\"><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=\"clip_image004\" border=\"0\" alt=\"clip_image004\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image004_thumb2.jpg\" width=\"227\" height=\"371\"><\/a> <\/p>\n<p><a href=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image0061.jpg\"><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=\"clip_image006\" border=\"0\" alt=\"clip_image006\" src=\"http:\/\/blog.newnaw.com\/wp-content\/uploads\/2011\/03\/clip_image006_thumb1.jpg\" width=\"228\" height=\"380\"><\/a> <\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a <\/p>\n<p>ArcGIS API\u4e2d\u5404\u79cdTask\u4ecb\u7ecd\uff1a<br \/><a href=\"http:\/\/bbs.esrichina-bj.cn\/ESRI\/thread-45302-1-1.html\">http:\/\/bbs.esrichina-bj.cn\/ESRI\/thread-45302-1-1.html<\/a> <\/p>\n<p>Draw\u5bf9\u8c61\u7684\u4f7f\u7528\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/WindowsPhone\/help\/011v\/011v00000019000000.htm\"><br \/>http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/WindowsPhone\/help\/011v\/011v00000019000000.htm<\/a> <\/p>\n<p>QueryTask\u7684\u4f7f\u7528\uff1a<a href=\"http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/WindowsPhone\/help\/011v\/011v00000016000000.htm\"><br \/>http:\/\/help.arcgis.com\/en\/arcgismobile\/10.0\/apis\/WindowsPhone\/help\/011v\/011v00000016000000.htm<\/a> <\/p>\n<p>VisiFire\uff1a<br \/><a href=\"http:\/\/www.visifire.com\/\">http:\/\/www.visifire.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u3000\u672c\u6587\u5185\u5bb9\uff1aArcGIS API\u4e2dTask\u7684\u6982\u5ff5\uff0cQueryTask\u7684\u4f7f\u7528\uff0c\u4ee5\u53caDraw\u5bf9\u8c61\u3002\u3000\u3000\u7a7a\u95f4\u67e5\u8be2GIS\u4e2d\u4e00\u4e2a\u975e\u5e38\u5e38\u7528\u7684\u529f\u80fd\uff1a\u5728\u5730\u56fe\u4e0a\u753b\u51fa\u4efb\u610f\u591a\u8fb9\u5f62\uff0c\u4ece\u81ea\u5df1\u611f\u5174\u8da3\u7684\u4e8b\u7269\u4e2d\u7b5b\u9009\u51fa\u4e0e\u6240\u753b\u591a\u8fb9\u5f62\u6709\u6307\u5b9a\u7a7a\u95f4\u5173\u7cfb\uff08\u901a\u5e38\u662f\u76f8\u4ea4\uff09\u7684\u8981\u7d20\u6765\uff0c\u8fdb\u4e00\u6b65\u67e5\u770b\u3002\u5728\u672c\u6b21\u5f00\u53d1\u5b9e\u4f8b\u4e2d\uff0c\u7b2c\u4e8c\u4e2a\u529f\u80fd\u5c31\u662f\u7a7a\u95f4\u67e5\u8be2\u3002\u7528\u624b\u52bf\u5728\u5730\u56fe\u4e0a\u753b\u4e00\u4e2a\u8303\u56f4\uff0c\u7b5b\u9009\u51fa\u843d\u5165\u8be5\u8303\u56f4\u7684\u8d85\u5e02\u5e97\u9762\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u67e5\u770b\u5b83\u4eec\u7684\u8425\u4e1a\u989d\u7edf\u8ba1\u4fe1\u606f\u3002\u3000\u3000ArcGIS API\u4e2d\uff0c\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u8bb8\u591aTask\u7c7b\uff0c\u6765\u5b8c\u6210\u4e00\u4e9b\u5e38\u89c1\u7684GIS\u529f\u80fd\uff0c\u6bd4\u5982\u5c5e\u6027\/\u63a7\u4ef6\u67e5\u8be2\uff0c\u51e0\u4f55\u5bf9\u8c61\u7684\u62d3\u6251\u5904\u7406\uff0c\u7279\u5b9a\u5de5\u4f5c\u6d41\u7684\u5730\u7406\u4efb\u52a1\u7b49\u3002\u5b83\u4eec\u90fd\u662f\u5df2\u7ecf\u5c01\u88c5\u597d\u7684Task\u7c7b\uff0c\u4f7f\u7528\u8d77\u6765\u90fd\u9075\u5faa3\u4e2a\u6b65\u9aa4\u7684\u539f\u5219\uff1a1\u3001\u4e3a\u67d0\u4e2aTask\u8bbe\u7f6e\u6240\u9700\u7684\u76f8\u5e94\u53c2\u6570\uff1b2\u3001\u901a\u8fc7Task\u5bf9\u8c61\u5411\u670d\u52a1\u5668\u53d1\u9001\u5904\u7406\u8bf7\u6c42\uff1b3\u3001\u63a5\u53d7\u670d\u52a1\u5668\u7aef\u8fd4\u56de\u7684\u7ed3\u679c\u3002\u6240\u6709\u7684\u8ba1\u7b97\u548c\u5904\u7406\u5de5\u4f5c\u90fd\u662f\u7531ArcGIS Server\u53d1\u5e03\u7684REST\u670d\u52a1\u6765\u5b8c\u6210\uff0c\u662f\u5178\u578b\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u670d\u52a1\u5668\u7aef\u76f8\u5e94\u7684\u6d41\u7a0b\u3002\u3000\u3000QueryTask\u662fArcGIS API\u63d0\u4f9b\u7684\u8bf8\u591aTask\u4e4b\u4e00\uff0c\u5b83\u63a5\u53d7Query\u7c7b\u578b\u7684\u53c2\u6570\u3002\u8be5\u53c2\u6570\u6709\u51e0\u4e2a\u5e38\u7528\u7684\u5c5e\u6027\uff0c\u6bd4\u5982Where\u5c5e\u6027\u548cGeometry\u5c5e\u6027\uff0c\u901a\u8fc7\u5bf9\u8fd9\u4e24\u4e2a\u5c5e\u6027\u7684\u8bbe\u7f6e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5b8c\u6210\u6700\u5e38\u89c1\u7684\u5c5e\u6027\u67e5\u8be2\u548c\u7a7a\u95f4\u67e5\u8be2\u529f\u80fd\u3002\u4f9d\u7136\u5c06\u7a7a\u95f4\u67e5\u8be2\u8fd9\u4e2a\u529f\u80fd\u5c01\u88c5\u6210\u4e00\u4e2a\u5de5\u5177\uff0c\u5728\u4e3b\u754c\u9762\u4e2d\u8fdb\u884c\u8c03\u7528\u3002 \u3000\u3000\u8fd9\u91cc\u4e3a\u4e86\u6e05\u6670\u8d77\u89c1\uff0c\u6211\u7701\u53bb\u4e0e\u7a7a\u95f4\u67e5\u8be2\u529f\u80fd\u65e0\u5173\u7684\u4ee3\u7801\uff08\u6240\u6709\u7a0b\u5e8f\u4ee3\u7801\u4f1a\u5728\u6559\u7a0b\u5b8c\u7ed3\u540e\u63d0\u4f9b\u4e0b\u8f7d\uff09\u3002\u8981\u4f7f\u7528QueryTask\u7684\u529f\u80fd\uff0c\u6211\u4eec\u6309\u7167\u524d\u9762\u8bf4\u4e09\u4e2a\u6b65\u9aa4\u6765\u505a\u3002\u9996\u5148\u8bbe\u7f6e\u597d\u67e5\u8be2\u53c2\u6570Query\uff0c\u7136\u540e\u901a\u8fc7QueryTask\u5bf9\u8c61\u63d0\u4ea4\u67e5\u8be2\u8bf7\u6c42\uff1a 1: void _draw_DrawComplete(object sender, DrawEventArgs e) 2: { 3: Polygon polygon = null; 4: if (_usingFreeHand) \/\/geometry is freehand polyline 5: { 6: Polyline polyline = e.Geometry as Polyline; 7: ESRI.ArcGIS.Client.Geometry.PointCollection pc = polyline.Paths[0]; 8: pc.Add(pc[0]); 9: polygon = new Polygon() 10: { 11: SpatialReference = map1.SpatialReference, 12: }; 13: polygon.Rings.Add(pc); 14: } 15: else \/\/geometry is polygon 16: &hellip; <a href=\"https:\/\/blog.newnaw.com\/?p=705\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ArcGIS API for Windows Phone\u5f00\u53d1\u5b9e\u4f8b(5):\u5bf9\u8d85\u5e02\u4fe1\u606f\u8fdb\u884c\u7a7a\u95f4\u67e5\u8be2<\/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\/705"}],"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=705"}],"version-history":[{"count":0,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=\/wp\/v2\/posts\/705\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.newnaw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}