<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[有些随风 有些入梦 有些长驻心中]]></title> 
<link>http://www.windshow.com/index.php</link> 
<description><![CDATA[by 乱码]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[有些随风 有些入梦 有些长驻心中]]></copyright>
<item>
<link>http://www.windshow.com/post/82/</link>
<title><![CDATA[错误: 无法生成项目输出组“内容文件来自(活动) 绝对解决]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[我们结婚啦]]></category>
<pubDate>Wed, 07 Dec 2011 02:10:02 +0000</pubDate> 
<guid>http://www.windshow.com/post/82/</guid> 
<description>
<![CDATA[ 
	<span style="line-height: 18px; font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span">当我们完成某个项目之后，一般都需要使用VS.NET的&ldquo;安装和部署项目&rdquo;来创建一个安装程序。可能你有时会遇到这样的错误：<strong><span style="color: #000000">错误: 无法生成项目输出组&ldquo;内容文件来自WebApplication1(活动)&rdquo;</span></strong>&nbsp;。&nbsp;</span><div><span style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><span style="line-height: 18px" class="Apple-style-span"><br /></span></span></div><div><span style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><span style="line-height: 18px" class="Apple-style-span"><br /></span></span></div><div><span style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><span style="line-height: 18px" class="Apple-style-span">web程序可以 使用 发布的方式检测到 是什么问题引起的~&nbsp;</span></span></div><div><span style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><span style="line-height: 18px" class="Apple-style-span"><br /></span></span></div><div><span style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><span style="line-height: 18px" class="Apple-style-span">右键项目 发布 配置一下 发布在本地<br /></span></span><div><span style="line-height: 18px; font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><br /></span></div><div><span style="font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif" class="Apple-style-span"><span style="line-height: 18px" class="Apple-style-span"><br /></span></span></div></div><br/>Tags - <a href="http://www.windshow.com/tags/%25E9%2594%2599%25E8%25AF%25AF%253A/" rel="tag">错误:</a> , <a href="http://www.windshow.com/tags/%25E6%2597%25A0%25E6%25B3%2595%25E7%2594%259F%25E6%2588%2590%25E9%25A1%25B9%25E7%259B%25AE%25E8%25BE%2593%25E5%2587%25BA%25E7%25BB%2584%25E2%2580%259C%25E5%2586%2585%25E5%25AE%25B9%25E6%2596%2587%25E4%25BB%25B6%25E6%259D%25A5%25E8%2587%25AA%2528%25E6%25B4%25BB%25E5%258A%25A8%2529%25EF%25BC%258C%25E7%25BB%259D%25E5%25AF%25B9%25E8%25A7%25A3%25E5%2586%25B3/" rel="tag">无法生成项目输出组“内容文件来自(活动)，绝对解决</a>
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/80/</link>
<title><![CDATA[关于 P3P IE 跨域 问题]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Thu, 09 Dec 2010 05:26:55 +0000</pubDate> 
<guid>http://www.windshow.com/post/80/</guid> 
<description>
<![CDATA[ 
	<span style="font-size: 13px; line-height: 19px; font-family: Verdana, Helvetica, Arial; color: #5e5e5e" class="Apple-style-span"><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><strong>1.二级域名</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">HTML code&nbsp;<br />&lt;%@ Page Language=&quot;C#&quot;%&gt;<br />&lt;%<br />HttpCookie hc = new HttpCookie(&quot;OutByTopDomain&quot;, &quot;OutByTopDomain&quot; + DateTime.Now.ToString());<br />hc.Expires = DateTime.Now.AddDays(30);//过期时间为30天<br />hc.Domain = &quot;你的顶级域名&quot;;//设置共享域,如aa.com,bb.aa.com等,可以设置为aa.com,这样可以在子域共享<br />Response.Cookies.Add(hc);<br />%&gt;<br />subdomain.aspx,子域读cookie</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">HTML code&nbsp;<br />&lt;%@ Page Language=&quot;C#&quot;%&gt;<br />&lt;%<br />Response.Write(&quot;顶级域名产生的Cookie==&#124;&quot; + Response.Cookies[&quot;OutByTopDomain&quot;].Value + &quot;&#124;===&quot;);<br />%&gt;</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><br /></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><strong>2.sso方案</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><br /><strong>&nbsp;通过设置p3p头来实现跨域访问cookie</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">今天在w3网站上看到了一篇介绍p3p的文章（<a style="color: #8d8c8c; text-decoration: none" href="http://www.w3.org/TR/P3P/" target="_blank">http://www.w3.org/TR/P3P/</a>），利用这个可以实现跨域访问cookie，我也试验一下。 其实很简单：试验用了2个域名readlog.cn和diaor.com 首先在readlog.cn下放置一个文件setcookie.php 内容：&nbsp; PHP代码 header(&rsquo;P3P: CP=&quot;CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">&nbsp;PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV&quot;&rsquo;);//p3p&nbsp;&nbsp; setcookie(&quot;TestCookie&quot;,&quot;test&quot;,time()+3600,&quot;/&quot;,&quot;.readlog.cn&quot;);//设置cookie&nbsp; 再放置一个readcookie.php 内容： 然后在diaor.com下放置setcookie.php ，内容： JavaScript代码 1. &lt;script xsrc=&quot;<a style="color: #8d8c8c; text-decoration: none" href="http://www.readlog.cn/setcookie.php%22%3E%3C/script" target="_blank">http://www.readlog.cn/setcookie.php&quot;&gt;&lt;/script</a>&gt;&nbsp; 然后访问<a style="color: #8d8c8c; text-decoration: none" href="http://www.diaor.com/setcookie.php" target="_blank">http://www.diaor.com/setcookie.php</a>&nbsp;抓取数据包可以发现，在readlog.cn域下生成了一个cookie ，名称是TestCookie,值是test 下面访问<a style="color: #8d8c8c; text-decoration: none" href="http://www.readlog.cn/readcookie.php" target="_blank">http://www.readlog.cn/readcookie.php</a>&nbsp;来验证一下，可以发现，cookie确实设置成功了。 有兴趣可以去掉header(&rsquo;P3P: CP=&quot;CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IN</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">D PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV&quot;&rsquo;);这句，试一下就会发现cookie能设置，但是在readlog.cn读不到这个cookie。</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><strong>------IIS 通用设置</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">打开IIS</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">&nbsp;</p><div>管理工具&mdash;&mdash;〉选择一个网站&mdash;&mdash;〉属性&mdash;&mdash;〉http头，增加一个http头</div><div>然后输入头名：P3P</div><div><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">输入头内容：CP=CAO PSA OUR</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><strong>------HttpModual实现</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">可以用httpmodual来实现在全部页面或者部分页面头部插入所需要的标志</p></div><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><strong>------老外的解决方案</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><a style="color: #8d8c8c; text-decoration: none" href="http://articles.sitepoint.com/article/p3p-cookies-ie6/2" target="_blank">http://articles.sitepoint.com/article/p3p-cookies-ie6/2</a></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">-----P3P设置验证</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><a style="color: #8d8c8c; text-decoration: none" href="http://www.w3.org/P3P/validator.html" target="_blank"><u><span style="color: #0000ff">http://www.w3.org/P3P/validator.html</span></u></a>，</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px"><strong>利用js解决ajax跨域问题</strong></p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">由于安全性问题, ajax在进行请求数据时,不能跨域请求. 比如 在&nbsp;<a style="color: #8d8c8c; text-decoration: none" href="http://www.a.com/" target="_blank">http://www.a.com/</a>&nbsp;下的页面, 无法ajax请求<a style="color: #8d8c8c; text-decoration: none" href="http://www.b.com/ajax.php" target="_blank">www.b.com/ajax.php</a>的内容. 尽管这样的需求不多,但遇到了怎么办? 这里给出一个JS模拟ajax的方式实现跨域, 但仅仅局限于GET!</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">在 &lt;script&gt; 标签中, src的属性是可以设置非本域下的地址的. 借助此特点,即可模拟ajax的方式实现跨域. 假设&nbsp;<a style="color: #8d8c8c; text-decoration: none" href="http://www.a.com/" target="_blank">http://www.a.com/</a>&nbsp;域名下的程序 需要通过ajax方式提交数据到<a style="color: #8d8c8c; text-decoration: none" href="http://www.b.com/" target="_blank">http://www.b.com/</a>&nbsp;下的login.php?username=*&amp;passwod=*实现登陆判断. 实现方式如下: 在<a style="color: #8d8c8c; text-decoration: none" href="http://www.a.com/" target="_blank">http://www.a.com/</a>内动态创建JS的方式来加载<a style="color: #8d8c8c; text-decoration: none" href="http://www.b.com/" target="_blank">http://www.b.com/</a>的内容,代码如下</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">JavaScript代码<br />//此代码在<a style="color: #8d8c8c; text-decoration: none" href="http://www.a.com/" target="_blank">http://www.a.com/</a>下&nbsp;&nbsp;&nbsp;&nbsp;<br />var head = document.getElementsByTagName(&quot;head&quot;)[0];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />var js = document.createElement(&quot;script&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />js.src = &quot;<a style="color: #8d8c8c; text-decoration: none" href="http://www.b.com/login.php?username=*&amp;passwod" target="_blank">http://www.b.com/login.php?username=*&amp;passwod</a>=*&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />js.onload = js.onreadystatechange = function()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&#123;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp; if (!this.readyState &#124;&#124; this.readyState == &quot;loaded&quot; &#124;&#124; this.readyState == &quot;complete&quot;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp; &#123;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; head.removeChild(js);&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //JS加载完毕了. 类似于ajax请求完成.&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //执行是否登陆成功的判断&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp; &#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />head.appendChild(js);&nbsp;&nbsp;&nbsp;<br />这只是一个简单的例子,需要b.com下的login.php做好配合,login.php通过GET取得传入值,并生成JS的登陆标记. JS加载完成后,根据JS标记判断登陆的状态,提示登陆成功或失败.即可完成要求,代码兼容常见浏览器. :)</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">当然缺陷也很明显,只能支持GET的方式提交数据. 下一次我会在说说ajax跨域POST的方法.</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 用JS或jQuery访问页面内的iframe,兼容IE/FF</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">js或者jQuery访问页面中的框架也就是iframe. 注意:框架内的页面是不能跨域的! 假设有两个页面,在相同域下. index.html 文件内含有一个iframe:</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">XML/HTML代码<br />&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a style="color: #8d8c8c; text-decoration: none" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;&nbsp;&nbsp;&nbsp;<br />&lt;html xmlns=&quot;<a style="color: #8d8c8c; text-decoration: none" href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&quot;&gt;&nbsp;&nbsp;&nbsp;<br />&lt;head&gt;&nbsp;&nbsp;&nbsp;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;&nbsp;&nbsp;&nbsp;<br />&lt;title&gt;页面首页&lt;/title&gt;&nbsp;&nbsp;&nbsp;<br />&lt;/head&gt;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&lt;body&gt;&nbsp;&nbsp;&nbsp;<br />&lt;iframe xsrc=&quot;iframe.html&quot; id=&quot;koyoz&quot; height=&quot;0&quot; width=&quot;0&quot;&gt;&lt;/iframe&gt;&nbsp;&nbsp;&nbsp;<br />&lt;/body&gt;&nbsp;&nbsp;&nbsp;<br />&lt;/html&gt;&nbsp;&nbsp;&nbsp;<br />iframe.html 内容:</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">XML/HTML代码<br />&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a style="color: #8d8c8c; text-decoration: none" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;&nbsp;&nbsp;&nbsp;<br />&lt;html xmlns=&quot;<a style="color: #8d8c8c; text-decoration: none" href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&quot;&gt;&nbsp;&nbsp;&nbsp;<br />&lt;head&gt;&nbsp;&nbsp;&nbsp;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;&nbsp;&nbsp;&nbsp;<br />&lt;title&gt;iframe.html&lt;/title&gt;&nbsp;&nbsp;&nbsp;<br />&lt;/head&gt;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;<br />&lt;body&gt;&nbsp;&nbsp;&nbsp;<br />&lt;div id=&quot;test&quot;&gt;www.koyoz.com&lt;/div&gt;&nbsp;&nbsp;&nbsp;<br />&lt;/body&gt;&nbsp;&nbsp;&nbsp;<br />&lt;/html&gt;&nbsp;&nbsp;&nbsp;<br />1. 在index.html执行JS直接访问:</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">JavaScript代码<br />document.getElementById('koyoz').contentWindow.document.getElementById('test').style.color='red'&nbsp;&nbsp;&nbsp;<br />通过在index.html访问ID名为'koyoz'的iframe页面,并取得此iframe页面内的ID为'test'的对象,并将其颜色设置为红色.</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">此代码已经测试通过,能支持IE/firefox . 2. 在index.html里面借助jQuery访问:</p><p style="margin-top: 5px; margin-right: auto; margin-bottom: 5px; margin-left: auto; text-indent: 0px">JavaScript代码<br />$(&quot;#koyoz&quot;).contents().find(&quot;#test&quot;).css('color','red'); &nbsp;</p></span>
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/79/</link>
<title><![CDATA[Flex中ArrayCollection的复制（克隆）删除]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Wed, 14 Jul 2010 09:01:25 +0000</pubDate> 
<guid>http://www.windshow.com/post/79/</guid> 
<description>
<![CDATA[ 
	<span style="line-height: 21px; font-family: verdana, sans-serif; font-size: 14px" class="Apple-style-span"><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">在Flex的开发过程中，常常会遇到复制ArrayCollection的情况。以前只是从网上找个方法拿来就用，也没有具体的搞清楚所以然来。今天有时间，研究了一下，总结如下：</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">Flex中的复制同java一样，也分为深复制和浅复制<span style="color: #000000">下面总结一下ArrayCollection的浅复制，共有4种方法：</span></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">1、var newArray:ListCollectionView=new ListCollectionView(ListCollectionView(oldArray).list);</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">2、var newArray:ArrayCollection=new ArrayCollection(oldArray.source);</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">3、var newArray:ArrayCollection=new ArrayCollection(oldArray.source.slice());</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">4、var newArray:ArrayCollection=new ArrayCollection(oldArray.toArray());</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">以上方法中，第一种方法由于不是创建的独立的ArrayCollection对象，所以不推荐使用。第二、三、四种方法相似，可以参考使用。</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">有的时候，我们也会用到深复制，方法如下：</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">var newArray:ArrayCollection=ArrayCollection(this.clone(oldArray));</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">this.clone()方法定义如下：</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">function clone(source:Object):*<br />&#123;<br />var myBA:ByteArray = new ByteArray();<br />myBA.writeObject(source);<br />myBA.position = 0;<br />return(myBA.readObject());<br />&#125;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">下面是我测试以上程序的Flex程序代码，大家可以参考：</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><span style="color: #0000ff">&lt;?</span><span style="color: #ff00ff">xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;</span><span style="color: #0000ff">?&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Application </span><span style="color: #ff0000">xmlns:mx</span><span style="color: #0000ff">=&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #ff0000"> creationComplete</span><span style="color: #0000ff">=&quot;initApp()&quot;</span><span style="color: #ff0000"> layout</span><span style="color: #0000ff">=&quot;absolute&quot;</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Script</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;![CDATA[</span><span style="color: #808080"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> import mx.collections.ArrayCollection;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> import mx.collections.ListCollectionView;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> import mx.controls.Alert;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> import flash.utils.ByteArray;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> public function initApp():void<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123; <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //开始测试：<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制1<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> private function test1():void<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //初始化需要的对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj1:Object=new Object();//定义对象obj1<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj11:Object=new Object();//定义对象obj1的引用对象obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.name=&quot;obj1.name&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.sub=obj11;//obj1的sub属性引用obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name&quot;; <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //实例化ArrayCollection对象，并将obj1添加进该对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var oldArray:ArrayCollection=new ArrayCollection();<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> oldArray.addItem(obj1);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制ArrayCollection<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var newArray:ListCollectionView=new ListCollectionView(ListCollectionView(oldArray).list);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //修改obj11.name的值<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name is changed!&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //输出复制前后的两个对象所引用的obj11对象的name属性值，如一致为浅复制，不一致为深复制<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> Alert.show(oldArray.getItemAt(0).sub.name+&quot;---&quot;+newArray.getItemAt(0).sub.name);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制2<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> private function test2():void<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //初始化需要的对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj1:Object=new Object();//定义对象obj1<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj11:Object=new Object();//定义对象obj1的引用对象obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.name=&quot;obj1.name&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.sub=obj11;//obj1的sub属性引用obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name&quot;; <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //实例化ArrayCollection对象，并将obj1添加进该对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var oldArray:ArrayCollection=new ArrayCollection();<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> oldArray.addItem(obj1);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制ArrayCollection<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var newArray:ArrayCollection=new ArrayCollection(oldArray.source);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //修改obj11.name的值<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name is changed!&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //输出复制前后的两个对象所引用的obj11对象的name属性值，如一致为浅复制，不一致为深复制<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> Alert.show(oldArray.getItemAt(0).sub.name+&quot;---&quot;+newArray.getItemAt(0).sub.name);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制3<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> private function test3():void<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //初始化需要的对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj1:Object=new Object();//定义对象obj1<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj11:Object=new Object();//定义对象obj1的引用对象obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.name=&quot;obj1.name&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.sub=obj11;//obj1的sub属性引用obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name&quot;; <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //实例化ArrayCollection对象，并将obj1添加进该对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var oldArray:ArrayCollection=new ArrayCollection();<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> oldArray.addItem(obj1);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制ArrayCollection<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var newArray:ArrayCollection=new ArrayCollection(oldArray.source.slice());<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //修改obj11.name的值<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name is changed!&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //输出复制前后的两个对象所引用的obj11对象的name属性值，如一致为浅复制，不一致为深复制<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> Alert.show(oldArray.getItemAt(0).sub.name+&quot;---&quot;+newArray.getItemAt(0).sub.name);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制4<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> private function test4():void<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //初始化需要的对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj1:Object=new Object();//定义对象obj1<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj11:Object=new Object();//定义对象obj1的引用对象obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.name=&quot;obj1.name&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.sub=obj11;//obj1的sub属性引用obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name&quot;; <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //实例化ArrayCollection对象，并将obj1添加进该对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var oldArray:ArrayCollection=new ArrayCollection();<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> oldArray.addItem(obj1);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制ArrayCollection<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var newArray:ArrayCollection=new ArrayCollection(oldArray.toArray());<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //修改obj11.name的值<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name is changed!&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //输出复制前后的两个对象所引用的obj11对象的name属性值，如一致为浅复制，不一致为深复制<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> Alert.show(oldArray.getItemAt(0).sub.name+&quot;---&quot;+newArray.getItemAt(0).sub.name);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //深复制<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> private function test5():void<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //初始化需要的对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj1:Object=new Object();//定义对象obj1<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var obj11:Object=new Object();//定义对象obj1的引用对象obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.name=&quot;obj1.name&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj1.sub=obj11;//obj1的sub属性引用obj11<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name&quot;; <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //实例化ArrayCollection对象，并将obj1添加进该对象<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var oldArray:ArrayCollection=new ArrayCollection();<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> oldArray.addItem(obj1);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //浅复制ArrayCollection<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var newArray:ArrayCollection=ArrayCollection(this.clone(oldArray));<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //修改obj11.name的值<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> obj11.name=&quot;obj11.name is changed!&quot;;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //输出复制前后的两个对象所引用的obj11对象的name属性值，如一致为浅复制，不一致为深复制<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> Alert.show(oldArray.getItemAt(0).sub.name+&quot;---&quot;+newArray.getItemAt(0).sub.name);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> //深复制调用的方法<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> function clone(source:Object):*<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#123;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> var myBA:ByteArray = new ByteArray();<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> myBA.writeObject(source);<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> myBA.position = 0;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> return(myBA.readObject());<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> &#125;<br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">]]&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">mx:Script</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Button </span><span style="color: #ff0000">label</span><span style="color: #0000ff">=&quot;第一种浅复制方法&quot;</span><span style="color: #ff0000"> click</span><span style="color: #0000ff">=&quot;test1()&quot;</span><span style="color: #ff0000"> x</span><span style="color: #0000ff">=&quot;61&quot;</span><span style="color: #ff0000"> y</span><span style="color: #0000ff">=&quot;36&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Button </span><span style="color: #ff0000">label</span><span style="color: #0000ff">=&quot;第二种浅复制方法&quot;</span><span style="color: #ff0000"> click</span><span style="color: #0000ff">=&quot;test2()&quot;</span><span style="color: #ff0000"> y</span><span style="color: #0000ff">=&quot;57&quot;</span><span style="color: #ff0000"> x</span><span style="color: #0000ff">=&quot;61&quot;</span><span style="color: #ff0000"> width</span><span style="color: #0000ff">=&quot;114&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Button </span><span style="color: #ff0000">label</span><span style="color: #0000ff">=&quot;第三种浅复制方法&quot;</span><span style="color: #ff0000"> click</span><span style="color: #0000ff">=&quot;test3()&quot;</span><span style="color: #ff0000"> y</span><span style="color: #0000ff">=&quot;78&quot;</span><span style="color: #ff0000"> x</span><span style="color: #0000ff">=&quot;61&quot;</span><span style="color: #ff0000"> width</span><span style="color: #0000ff">=&quot;114&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Button </span><span style="color: #ff0000">label</span><span style="color: #0000ff">=&quot;第四种浅复制方法&quot;</span><span style="color: #ff0000"> click</span><span style="color: #0000ff">=&quot;test4()&quot;</span><span style="color: #ff0000"> y</span><span style="color: #0000ff">=&quot;98&quot;</span><span style="color: #ff0000"> x</span><span style="color: #0000ff">=&quot;61&quot;</span><span style="color: #ff0000"> width</span><span style="color: #0000ff">=&quot;114&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> <br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /> </span><span style="color: #0000ff">&lt;</span><span style="color: #800000">mx:Button </span><span style="color: #ff0000">label</span><span style="color: #0000ff">=&quot;深复制方法&quot;</span><span style="color: #ff0000"> click</span><span style="color: #0000ff">=&quot;test5()&quot;</span><span style="color: #ff0000"> y</span><span style="color: #0000ff">=&quot;147&quot;</span><span style="color: #ff0000"> x</span><span style="color: #0000ff">=&quot;61&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000"><br /><img style="border-width: 0px" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" border="0" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">mx:Application</span><span style="color: #0000ff">&gt;</span></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><span style="color: #0000ff"><br /></span></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><span style="color: #0000ff"><br /></span></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><span style="color: #0000ff">删除</span></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><span style="color: #0000ff"><br /></span></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; initialize=&quot;init()&quot;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">backgroundGradientColors=&quot;[#ffffff, #ffffff]&quot; &gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:Script&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;![CDATA[</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">import mx.collections.ArrayCollection;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">[Bindable]</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">public var ac:ArrayCollection=new ArrayCollection([</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#123;name:&quot;1&quot;,sex:&quot;男&quot;,age:&quot;11&quot;&#125;,</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#123;name:&quot;2&quot;,sex:&quot;女&quot;,age:&quot;12&quot;&#125;,</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#123;name:&quot;3&quot;,sex:&quot;女&quot;,age:&quot;14&quot;&#125;,</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#123;name:&quot;4&quot;,sex:&quot;女&quot;,age:&quot;15&quot;&#125;,</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#123;name:&quot;5&quot;,sex:&quot;男&quot;,age:&quot;16&quot;&#125;,</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#123;name:&quot;6&quot;,sex:&quot;男&quot;,age:&quot;13&quot;&#125;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">]); </p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">public function init():void&#123;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">for(var i:int=0;i&lt;ac.length;i++)&#123;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">var item:Object=ac.getItemAt(i);</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">if(item.sex==&quot;女&quot;)&#123;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">ac.removeItemAt(i);</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#125;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#125;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&#125;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">]]&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;/mx:Script&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:DataGrid width=&quot;100%&quot; dataProvider=&quot;&#123;ac&#125;&quot;&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:columns&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:DataGridColumn dataField=&quot;name&quot; width=&quot;100&quot; headerText=&quot;ID&quot;/&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:DataGridColumn dataField=&quot;sex&quot; width=&quot;100&quot; headerText=&quot;性别&quot;/&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;mx:DataGridColumn dataField=&quot;age&quot; width=&quot;100&quot; headerText=&quot;年龄&quot;/&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;/mx:columns&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;/mx:DataGrid&gt;</p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px">&lt;/mx:Application&gt;</p><div><br /></div></span><p></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><br /></p><p style="padding-bottom: 0px; margin: 1em 0px 0.5em; padding-left: 0px; padding-right: 0px; padding-top: 0px"><br /></p>
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/78/</link>
<title><![CDATA[ArcServer +Flex 发布GP服务生成等值面]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[orther东西]]></category>
<pubDate>Wed, 30 Jun 2010 02:40:25 +0000</pubDate> 
<guid>http://www.windshow.com/post/78/</guid> 
<description>
<![CDATA[ 
	<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="text-align: left; line-height: 21px; font-family: Arial, Helvetica, sans-serif; font-size: 12px" class="Apple-style-span"><span style="line-height: normal !important; font-size: 12pt; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS Server Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; font-size: 12pt; word-break: break-all">调用</span><span style="line-height: normal !important; font-size: 12pt; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; font-size: 12pt; word-break: break-all">服务的一般步骤</span> <p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">1</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">、说明</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS Geoprocessing</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">提供了大量地理处理和分析工具，可根据需要对这些工具进行组合构造自己的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GIS</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">分析模型，然后发布成</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务，以方便各种</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Web</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">客户端调用。</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">中提供了访问</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务的接口，通过该接口和</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具，可实现具有高级</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GIS</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">分析功能的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Web</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">应用。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">2</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">、模型创建与测试</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">创建模型可在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">modelbuilder</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">可视化环境下进行，也可使用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Python</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">脚本定义。模型创建完成需要在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcMap</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">环境下测试是否正常运行。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">详细建模过程请参考</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">的帮助文档。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">3</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">、</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务发布</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">发布</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务可使用两种资源类型：</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具；包含结果图层的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MXD</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">文档。其中包含结果图层的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MXD</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">文档发布成</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务时又有两种选择：一种只发布为</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务；另一种发布成</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MapService</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">和</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务。第二种方式可预先在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MXD</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">文档中对结果图层渲染，这样可简化客户端的可视化工作。实际项目中选择使用哪一种方式，需要根据具体业务需要确定，不能一概而论。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">4</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">、</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务测试</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">1</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcMap</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">中加载</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MapService</span></span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">注意为方便测试，该</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MapService</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">不能使用发布</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务时一同发布出来的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MapService</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">2</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcToolbox</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">中添加</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">将发布的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务添加到</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcToolbox</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">中，点击运行，生成的结果会自动添加到当前的地图中。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">5</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">、</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS Server Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">调用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务示例</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">上面几小节简单的介绍了</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具的制作和</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务的发布，本小节正式进入正题，讲讲如何使用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS Server Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">调用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务。</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务分同步和异步两种执行模式，</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">也提供了两种处理方式与之对应。</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">调用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务使用的是</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Geoprocessor</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">类。该类提供了</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">execute(params)</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">和</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">submitJob(params)</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">两个方法调用后台的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务进行数据处理，其中</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">execute(params)</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">对应的是同步执行模式，执行完成触发</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">executeComplete</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">事件。</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">submitJob(params)</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">对应的是异步执行模式，执行完成触发</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">jobComplete</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">事件。对</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务结果的处理我们可以定义在这些</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">complete</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">事件中。如果</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务处理过程比较简单而且耗费时间少，我们可以选择同步执行模式，但如果比较耗时，为避免客户端长时间等待，常使用异步执行模式。</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">为保证</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Flex API</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">正常调用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务，在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">模型定义和</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务发布过程需要，还需要注意以下几项：</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">1</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）在配置</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MXD</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">文档时，设置临时工作空间</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MXD</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">中添加完</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具后，如果未设置临时工作空间，则运行</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具生成的结果将默认保存在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">C</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">盘下，该路径会导致</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务无法读取结果图层，可通过设置临时工作空间解决。设置方法：在</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcToolbox</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">上右键选择</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Environment</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">，设置</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">scratchworkspace</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">的路径即可。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">2</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具输出路径的处理</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; word-break: break-all"></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">为方便访问输出图层，一般情况下使用环境变量来指定输出路径，即使用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">scratchworkspace</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">变量，该变量指向</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS Server</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">arcgisjobs</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">目录。例如：</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">%scratchworkspace%&#92;idwraster</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">3</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）输出图层中文字符处理</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">如果</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具中输出的图层名包含中文，需要更改为英文名称，否则添加到地图上的结果图层无法正常显示。</span></span></p><p style="line-height: 1.8em !important; text-indent: 21pt; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">本示例以生成等值面为例，数据使用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">自带的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">World</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">地图，软件环境使用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS Server9.3.1</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">，</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">ArcGIS for Flex API 1.3</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">版本。示例代码如下：</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">1</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）发布服务</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">将包含</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">工具的</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">MXD</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">文档发布成同名的地图服务和</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务。</span></span></p><p style="line-height: 1.8em !important; margin: 0cm 0cm 0pt; word-break: break-all" class="MsoNormal"><span style="line-height: normal !important; font-size: small; word-break: break-all"><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">（</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">2</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">）</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">Flex</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">调用</span><span style="line-height: normal !important; word-break: break-all"><span style="line-height: normal !important; font-family: Calibri; word-break: break-all">GP</span></span><span style="line-height: normal !important; font-family: 宋体; word-break: break-all">服务</span></span></p><span style="line-height: normal; font-size: small; word-break: break-all"><span style="line-height: normal; font-family: 宋体; word-break: break-all"><span style="line-height: normal !important; font-family: 'Courier New'; color: #006633; font-size: 10pt; word-break: break-all">&lt;mx:Script&gt;<br />&lt;![CDATA[<br />import mx.controls.Alert;<br />import com.esri.ags.events.*;<br />import com.esri.ags.tasks.*;<br />import com.esri.ags.layers.*;<br /><br />private function gpJobCompleteHandler(event:GeoprocessorEvent):void<br />&#123;<br /><br />var imageParameters : ImageParameters = new ImageParameters();<br />var myImageLayer2 :GPResultImageLayer = gp.getResultImageLayer(event.jobInfo.jobId,&quot;dzhm&quot;,imageParameters);<br />//dzhm参数为GP工具中定义的输出文件名<br />baseLayer.visible = false;<br />map1.addLayer(myImageLayer2,0);<br /><br />Alert.show(&quot;job:&quot;+event.jobInfo.jobId);<br />&#125;<br />]]&gt;<br />&lt;/mx:Script&gt;<br /><br />&lt;esri:Geoprocessor id=&quot;gp&quot; url=&quot;<a href="http://xinli:8399/arcgis/rest/services/test/world_gdb/GPServer/IDW">http://xinli:8399/arcgis/rest/services/test/world_gdb/GPServer/IDW</a>&quot;<br />jobComplete=&quot;gpJobCompleteHandler(event)&quot;&gt;<br />&lt;esri:fault&gt;<br />&lt;![CDATA[<br />Alert.show(event.fault.message);<br />]]&gt;<br />&lt;/esri:fault&gt;<br />&lt;/esri:Geoprocessor&gt;<br />&lt;mx:Button x=&quot;10&quot; y=&quot;10&quot; label=&quot;执行&quot;&gt;<br />&lt;mx:click&gt;<br />&lt;![CDATA[<br />var params:Object = &#123;&#125;;<br />gp.submitJob(params);<br />]]&gt;<br />&lt;/mx:click&gt;<br />&lt;/mx:Button&gt;<br />&lt;esri:Map id=&quot;map1&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;<br />&lt;esri:ArcGISDynamicMapServiceLayer id=&quot;baseLayer&quot; url=&quot;<a href="http://xinli:8399/arcgis/rest/services/test/world_gdb/MapServer%22/">http://xinli:8399/arcgis/rest/services/test/world_gdb/MapServer&quot;/</a>&gt;<br />&lt;/esri:Map&gt;<br /></span></span></span></span></span>
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/81/</link>
<title><![CDATA[爱你1]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[我们结婚啦]]></category>
<pubDate>Sun, 30 May 2010 04:12:38 +0000</pubDate> 
<guid>http://www.windshow.com/post/81/</guid> 
<description>
<![CDATA[ 
	<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 21px; color: #3d3d3d; font-size: 15px" class="Apple-style-span">我想在五十年之後，我一定还是像现在一样爱你，<br /><span class="Apple-converted-space">不管以后怎么样 我要告诉你，你变成老奶奶 我这个老爷爷也会一直陪着你</span><br />　　<span class="Apple-converted-space"> </span><br />不要短暂的温存，只要你一世的陪伴，<br />流星虽然好看，我更喜欢夜晚的路灯，照亮远方<br /><br />我的电脑有2台，可不可以帮我用用... <br /><br />我希望睡前最後看到的是你，<br /><br />请你当我手心里的宝，我想要和你一起慢慢变老，<br /><br />身边没你，好怪， 陪我一生一世好吗? <br /><br />和你在一起只是我不想给任何人机会！<br /><br />自从你出现後，我才知道原来有人爱是那麽的美好... <br /><br /><br />曾经迷惘的心中，是你牵引我走出寂寞 <br /><br />我爱你的心是直到世界末日也不变 <br /><br />对你，不管阴晴圆缺，也不变 <br /><br />想想和我一同看日升日落的喜悦吧 <br /><br />我愿意用一千万年等待你初春暖阳般的绽颜一笑 <br /><br />我的世界只有你懂 <br /><br />我知道/爱要自由才能快乐/我却宁愿留在你身边/ 陪你/陪你走过<br /><br />只有你知我的情绪，也只有你能带给我情绪<br /><br />如果这一生我们爱不够，来世必能长久... <br /><br />因为知道不能没有你 所以我会更珍惜... <br /><br />地球仍然转重，世间依旧善变， 而我永远爱你 <br />　　 <br />在每一个有你相伴的夜，不再过於寂寥冷清 <br />　　 <br />我想将对你的感情，化作暖暖的阳光，期待那洒落的光明能温暖你的心房 <br />　　 <br />我想将对你的思念，寄予散落的星子，但愿那点点的星光能照进你的窗前，伴你好眠 <br />　　 <br />　　 <br />每天...很想你... <br />　　 <br />人总是会老的 希望到时 你仍在我身边 <br />　　 <br />不论天涯海角 只要你需要我的时候 我就会&quot;飞&quot;回你的身边 <br />　　 <br />&nbsp;你使得我的生活有情有爱还有泪 ... <br />　　 <br />　　 <br />&nbsp;如果你冷，我将你拥入怀中；如果你恨，我替你擦去泪痕... <br />　　 <br />&nbsp;我的爱为你开启，像白色的闪电划破天际；我的爱为你奔驰，像红色的血液充满身体... <br />　　 <br />&nbsp;不管今世也来世也好...我所要的只有你... <br />　　 <br />&nbsp;虽然不能满足你最大的物质生活...但我可以把我的心来满足你... <br />　　 <br />&nbsp;我爱你用我旧愁里的热情和孩童时代的忠诚... <br />　　 <br />&nbsp;你的话已经锁在我的记忆里了那钥匙你就替我保管一辈子吧 <br />　　 <br />&nbsp;没有一种服装比起你的爱更合身没有一种装饰比起你的爱更迷人 <br />　　&nbsp;<br />&nbsp; 我想对你爱恋的极短诗篇升华为漫长的生活散文 <br />　　 <br />&nbsp;对你，我已经无条件投降了，你就签下爱情合约吧 <br />　　&nbsp;<br />&nbsp; 今生...如果...不能拥有你，我会............好恨自己 <br />　　 <br />&nbsp;喝了你酿的爱情的酒，如果没有续杯，情愿渴一辈子 <br />　　 <br />&nbsp;　　 <br />&nbsp;你的名字写满在我心里.....就让我永远爱你吧!!!!! <br />　　 <br />&nbsp;如果没有你的爱...活著的目标将难复再! <br />　　 <br />&nbsp;为你情愿不自由 <br />　　 <br />&nbsp;今生今世永远爱你 <br />　　 <br />&nbsp;我已准备好将权利减半、义务倍增了... <br />　　 <br />&nbsp;这一生我只牵你的手...因为今生有你早已足够... <br />　　 <br />&nbsp;认识你才知道有一种心情叫做依恋，有一种感觉叫做爱 <br />　　 <br />&nbsp;原来等待也可以如此的美丽，因为爱你 <br />　　 <br />&nbsp;我不相信永远的爱，因为我只会一天比一天更爱你 <br />　　 <br />&nbsp;自从爱你以後......才知爱的甜美...... <br />　　 <br />&nbsp;除了爱你...我想不出能使我继续活著的理由... <br />　　 <br />&nbsp;我爱你..我爱你..我永远爱你....：P <br />　　 <br />&nbsp;我要变成风 温柔的将你包围 ...... <br />　　 <br />&nbsp;你是我今生的...新娘... <br />　　 <br />&nbsp;幸福!只存在你我相聚时刻... <br />　　 <br />&nbsp;在我心中任何时刻都只有&quot;想你!爱你!&quot; <br />　　 <br />&nbsp;时间的巨轮无法抹去我对你的思念纵使海枯石烂，你的身影永存於我心中...<br />　　 <br />&nbsp;不需言语，让我用行动告诉你，什麽叫爱...... <br />　　 <br />&nbsp;看著你的眼，我看见了大海，蓝天，更看到了美丽的未来!! <br />　　&nbsp;<br />&nbsp;你是我生命中所能经历的,最最深切的感觉!! <br />　　 <br />&nbsp;只想牵你的手...看你的眼...光著脚丫子...在海边漫步...只有你...只因你... <br />　　 <br />&nbsp;我这一生只为了吻你........ <br />　　 <br />&nbsp;现在每天醒来睁开眼见到的是墙上你那似阳光般的笑靥，好想哪天醒来时，第一眼所触及的是真正的你那似花般甜甜的睡容...... <br />　　 <br />&nbsp;如果活著，是上帝赋予我最大的是命，那麽活麽有你，将会是上帝赋予我使命中最大的恩赐.... <br />　　 <br />&nbsp;不要问我爱你有多深，我真的说不出来，只知道你已成为我生活中的一种习惯，不可或缺的习惯，每天每天，可以不吃饭、不睡觉，却无法不想你...... <br />　　 <br />&nbsp;不愿意醒来时，台灯投射在墙上只有我孤独的身影 <br />　　 <br />&nbsp;好想一直抱著你，紧紧的抱著你，一直走到上帝面前... <br />　　 <br />&nbsp;这辈子最疯狂的事，就是爱上了你，最大的希望，就是有你陪我疯一辈子..... <br />　　 <br />&nbsp;真的，输了你，赢了世界又如何？？？ <br />　　 <br />&nbsp;如果爱上你也算是一种错，我深信这会是生命中最美丽的错，我情愿错一辈子...... <br />　　 <br />&nbsp;或许我没有太阳般狂热的爱，也没有流水般绵长的情，只知道不断的爱你、疼你、无所不能的为你...... <br />　　&nbsp;<br />&nbsp;看著微笑的你，突然发现，我真是世界上最幸福的人..... <br />　　 <br />&nbsp;假如可以的话，我愿意花去生命中的每一分每一秒~陪著你~ <br />　　 <br />&nbsp;你看到的，就是最真的我!!一种永无止尽的感动!!感动这世界有你 你与我这最美的存在!! <br />　　 <br />&nbsp;好好照顾自己，我不想等到下辈子再来爱你 <br />　　 <br />&nbsp;每次我感到失意时，都回忆起你的浅笑、你的鼓励，它们使我坚强的面对下去，谢谢你!! <br />　　 <br />&nbsp;愿天上的每一个流星，都为你而闪耀天际... <br />　　 <br />&nbsp;在人群之中寻觅著你，就彷佛在海边掬起所有的沙粒，急於发现你的踪迹，如果不从愿，但愿还有来生。 <br />　　 <br />&nbsp;在认识你之後...我才发现自己可以这样情愿的付出........ <br />　　 <br />&nbsp;以为没有你...我可以坚强一个人...终於知道我不行... <br />　　 <br />&nbsp;想你的心情实在没办法用一句话代替... <br />　　 <br />&nbsp;总是想念著你，虽然我们无法共同拥有每分每秒 <br />　　 <br />&nbsp;你就是我最困难时的那位永远支持我的人! <br />　　 <br />&nbsp;你可知我百年的孤寂只为你一人守候 千夜的恋歌只为你一人而唱 <br />　　 <br />&nbsp;白昼与黑夜将无法阻挡我俩的深深思念! <br />　　 <br />&nbsp;我是那深深的大海，你是那自海的另一边升起的曙光，永远照亮我的人生..... <br />　　 <br />&nbsp;将你心再加上我的心，就算痛苦滋味也愿意尝 <br />　　 <br />&nbsp;直到遇见了你，我才感受到自己的存在，一直舍不得离开你,虽然你说的如此坚决...... <br />　　 <br />&nbsp;每天我的动力就是见到你，并和你说说话... <br />　　 <br />&nbsp;思念就像河流般，滔滔不绝地流向大海，流向我的心房... <br />　　 <br />&nbsp;喜欢你的笑容，喜欢静静的看著你，我的忧愁像云一般一下子就飞去了 <br />　　 <br />&nbsp;如果能用一辈子换你停留在我视线中...我将毫不保留 <br />　　 <br />&nbsp;我会每天回家做晚饭!!! <br />　　 <br /><br /></span></span>
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/77/</link>
<title><![CDATA[oracle 判断正负值个数]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Wed, 19 May 2010 13:00:52 +0000</pubDate> 
<guid>http://www.windshow.com/post/77/</guid> 
<description>
<![CDATA[ 
	<div><br /></div><div><span style="line-height: 18px; font-family: Arial, sans-serif, Helvetica, Tahoma" class="Apple-style-span"><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small"><strong style="font-weight: bold">decode</strong></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">&nbsp;</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">&nbsp;</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">在Oracle/PLSQL中,&nbsp;&nbsp;<strong style="font-weight: bold">decode</strong>&nbsp;具有和 IF-THEN-ELSE 一样的功能。</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span><span style="font-size: small"><strong style="font-weight: bold">decode</strong>&nbsp;函数语法如下：</span></span></p><blockquote style="border-left-style: solid; margin-left: 10px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; background-color: #fafafa; border-width: 1px; border-color: #cccccc"><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">decode( expression , search , result [, search , result]... [, default] )</span></p></blockquote><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span><span style="font-size: small"><em style="font-style: italic">expression</em>&nbsp;要比较的表达式.</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">&nbsp;</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span><span style="font-size: small"><em style="font-style: italic">search</em>&nbsp;要与<em style="font-style: italic">expression</em>&nbsp;<em style="font-style: italic">比较的字段。</em>.</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">&nbsp;</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span><span style="font-size: small"><em style="font-style: italic">result</em>&nbsp;如果<em style="font-style: italic">expression</em>&nbsp;与<em style="font-style: italic">search</em>&nbsp;一样的话，返回该结果。.</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span><span style="font-size: small"><em style="font-style: italic">default</em>&nbsp;此参数可选，如果没有与<em style="font-style: italic">expression</em>&nbsp;匹配上的<em style="font-style: italic">search</em>&nbsp;. 就返回此结果，如果此参数没有设置，当没有与expression匹配上的search时，返回null。</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small"><span>search&nbsp;和 result可成对出现多次，代表各种要匹配的情况。&nbsp;<br /></span>&nbsp;</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px" class="example_heading"><span style="font-size: small">应用于</span></p><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 30px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px"><span style="font-size: small">Oracle 9i, Oracle 10g, Oracle 11g</span></li></ul></span></div><div><br /></div><div>判断数据正负然后统计&nbsp;</div><div><br /></div>sum(DECODE(SIGN(INTENS-0), 1, 1, 0) ) as zINTENS,sum(DECODE(SIGN(INTENS-0), -1, 1, 0) ) as fINTENS
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/76/</link>
<title><![CDATA[arcgis 雷电查询系统]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Tue, 18 May 2010 01:26:01 +0000</pubDate> 
<guid>http://www.windshow.com/post/76/</guid> 
<description>
<![CDATA[ 
	arcgis 雷电查询 <br />支持 线杆走廊半径内雷电查询（缓冲区）&nbsp;&nbsp;支持手工画区域查询<br />结合大气电场仪 支持区域雷电报警 <br /><img class="insertimage" src="attachment.php?fid=14" border="0" width="754" height="572" /><br /><img class="insertimage" src="attachment.php?fid=15" border="0" width="599" height="381" />
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/75/</link>
<title><![CDATA[ArcMap中设置.mxd相对路径 ]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Wed, 05 May 2010 06:00:30 +0000</pubDate> 
<guid>http://www.windshow.com/post/75/</guid> 
<description>
<![CDATA[ 
	复制拷贝地图文档后再次打开会遇到图层前一个！的标识符号，是因为加载图层的相对路径变化了，需要重新指定图层位置。对此将.mxd文档设置为相对路径起到作用，具体做法如下：<br />（1）File--&gt;Document Properties--&gt;打开对话框中，点击Data Source Options...按钮；<br />（2）选中store relative path names to data sources单选框，并勾选Make relative paths the defalut of...前的复选框。<br />以上两步操作即可。 
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/74/</link>
<title><![CDATA[ArcGIS9.3安装流程]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Wed, 05 May 2010 05:54:49 +0000</pubDate> 
<guid>http://www.windshow.com/post/74/</guid> 
<description>
<![CDATA[ 
	<p align="center"><span style="font-family: 宋体; font-size: 14pt">ArcGIS Desktop 9.3</span><span style="font-family: 宋体; font-size: 14pt">安装流程</span></p><p align="center"></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">1、</span> <span style="font-family: 宋体">打开安装文件夹，点击ESRI.exe文件，进入安装页面。首先安装ArcGIS License Manager。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">2、</span> <span style="font-family: 宋体">在弹出的Import License File对话框中，需要将Desktop的破解文件导入，该文件位于安装文件&quot;ArcGIS Desktop 9.3&quot;ESRI ArcGIS Desktop 9.3 license文件夹中。文件名为arcgis_tbe.lic。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">3、</span> <span style="font-family: 宋体">然后一直Next到安装完成。安装完成后要重新启动一次机器。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">4、</span> <span style="font-family: 宋体">破解：重启后，打开ArcGIS－&gt;License Manager(9.x)-&gt; License Manager Tools,在Service/License File选项卡中，选择Configuration using Services单选框，再在Start/Stop/Reread选项卡，点Stop Server停止服务。然后将第2步中破解文件夹中的文件拷贝到C:&quot;Program Files&quot;ESRI&quot;License&quot;arcgis9x文件夹中（该文件夹位置固定）。再次打开License Manager Tools，在Service/License File选项卡中，选择Configuration using Services单选框，再在Config Services选项卡中配置license和lmgrd的路径，选择Path to the lmgrd.exe file后的Browse，定位文件C:&quot;Program Files&quot;ESRI&quot;License&quot;arcgis9x&quot;lmgrd.exe；选择Path to the license file后的Browse，定位文件C:&quot;Program Files&quot;ESRI&quot;License&quot;arcgis9x&quot;ARCINFO9.lic，然后点击Save Service，再在Start/Stop/Reread选项卡中，先Stop Server，然后再Start Server，需出现&ldquo;Server Start Successful.&rdquo;字样，最后点ReRead License File，需出现&ldquo;Reread Server License File Completed&rdquo;字样，则说明破解成功，若仍有问题，重启再试。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">5、</span> <span style="font-family: 宋体">安装ArcGIS Desktop，若需要使用对ArcGIS Desktop的扩展功能，则在Select Installation Type中，选择Custom，然后在Select Features中，把Extentions选中安装（默认不安装）。在安装过程中注意一下安装的位置即可。其他步骤一律Next。安装完后，打开ArcMap，若能够运行则说明安装成功。</span></p><p align="left"></p><p align="center"><span style="font-family: 宋体; font-size: 14pt">ArcGIS Server 9.3</span><span style="font-family: 宋体; font-size: 14pt">安装流程</span></p><p align="left"></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">1、</span> <span style="font-family: 宋体">打开安装文件夹，点击ESRI.exe文件，进入安装页面。选择ArcGIS Server for the Microsoft .NET Framework,安装之前需要保证该计算机上已经安装了IIS6.0/7.0以及VS2005/VS2008软件，若无VS系列软件，则至少需要安装.NET Framework2.0和.NET Framework3.0/3.5。另外ArcGIS Server需要占用80端口，该端口易被迅雷等下载软件占用，安装之前尽量保证80端口不被占用。若被占用，需在安装过程中改端口或者改变迅雷等软件的端口。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">2、</span> <span style="font-family: 宋体">安装过程中除了需要改变安装路径之外，一律Next。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">3、</span> <span style="font-family: 宋体">破解：在安装完了软件后，将弹出一个破解的对话框（GIS Server Post Install），在Welcome to the GIS Server Post Install页面中，两个复选框都选中，点下一步。在Specify GIS Server Accounts页面中，配置ArcGISSOM和ArcGISSOC的密码。在GIS Server Webservices Account页面中，为ArcGISWebServices配置密码。在Specify GIS Server directories中，为Web Server 制定路径、站点名称和站点端口。后边一路next。在Registration Options中选择第三个（I have received an authorization file from ESRI and am now ready to finish the registration process）。在Software Authorization中，选择你的破解文件，点Browse，选择安装文件夹下的ecp文件完成破解。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">4、</span> <span style="font-family: 宋体">更改组和用户属性：右键我的电脑，选择管理菜单，进入计算机管理页面。选择本地用户和组，此处对用户和组任意一项配置即可，另一项将自动做相应的配置。此处仅介绍组配置。Administrators组，其成员为：Administrator、ArcGISSOM和ArcGISWebServices。agsadmin组，其成员为：Administrator、ArcGISSOM和ArcGISWebServices。agsusers组，其成员为：Administrator、ArcGISSOM和ArcGISSOC。Users组，其成员为：ArcGISSOM、ArcGISSOC和ArcGISWebServices。注意，此处仅说明了是与GIS有关的组的成员信息，若该组在其他方面还有成员，其他成员不要乱删。</span></p><p style="text-indent: -18pt; margin-left: 18pt" align="left"><span style="font-family: 宋体">5、</span> <span style="font-family: 宋体">打开ArcGIS-&gt;ArcGIS Server for the Microsoft .NET Framework-&gt;ArcGIS Server Manager,User name中输入用户名&quot;登录名（Administrator&quot;ArcGISWebServices），密码就是你配置ArcGISWebServices时的密码，若你用其他用户名登录，密码为相应密码。登录成功后，则可以发布相应的ArcGIS Server服务。<br /><br /><br /><br />iis<br /><img class="insertimage" src="attachment.php?fid=13" border="0" width="487" height="492" /></span></p>
]]>
</description>
</item><item>
<link>http://www.windshow.com/post/73/</link>
<title><![CDATA[实例建立简单的Model Builder例子]]></title> 
<author>windshow &lt;webmaster@windshow.com&gt;</author>
<category><![CDATA[风语]]></category>
<pubDate>Tue, 04 May 2010 04:52:02 +0000</pubDate> 
<guid>http://www.windshow.com/post/73/</guid> 
<description>
<![CDATA[ 
	<span style="font-size: 14px; line-height: 21px; font-family: simsun; color: #323e32" class="Apple-style-span"><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; border-width: 0px"><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">任务：利用山东省县级市数据，现在通过</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model Builder</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">做一个各个县级城市</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">12</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">公里范围的缓冲区。</span><span style="word-wrap: normal; word-break: normal; line-height: 21px"><br />&nbsp;&nbsp;&nbsp;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">步骤：</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; text-indent: 21pt; border-width: 0px"><span style="word-wrap: normal; word-break: normal; line-height: 21px">1</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、打开</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">ArcMAP</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">，并且添加县级市数据；</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 21pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; border-width: 0px"><span style="word-wrap: normal; word-break: normal; line-height: 21px">2</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">&nbsp;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">打开</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">ArcToolbox,</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">并鼠标右击</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">--&gt;New Toolbox,</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">在</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">ArcToolbox</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">下列表中，会添加一个</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Toolbox</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">的工具箱，可以修改此工具箱的名称。鼠标右击</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">--&gt;New&agrave;Model</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">，建立一个新的</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model.<br />3</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">&nbsp;&nbsp;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">通过</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">ArcToolbox</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">&mdash;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Analysis Tools</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">把</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Select</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">工具以及</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Buffer</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">工具拖拽到</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">中。</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 21pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; border-width: 0px"><span style="word-wrap: normal; word-break: normal; line-height: 21px">4</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">&nbsp;&nbsp;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">双击</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Select</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">工具，在弹出的对话框中选择</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Input Features</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">通过浏览选择要进行选择的数据，</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">.shp</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">文件</span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 21pt; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; border-width: 0px"><span style="word-wrap: normal; word-break: normal; line-height: 21px">5</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、利用</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Add Connection</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">工具连接县级市</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">_Select.shp</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">，然后双击</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Buffer</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">，设置</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Buffer</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">的缓冲区为</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">2KM.</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">，并设置输出的结果的文件路径和名称（系统含有默认的输出结果的文件路径和名称）。</span><span style="word-wrap: normal; word-break: normal; line-height: 21px"><br />6</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">&nbsp;&nbsp;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">点击</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">&rdquo;Run&rdquo;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">运行模型</span><span style="word-wrap: normal; word-break: normal; line-height: 21px"><br />7</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">、</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">&nbsp;&nbsp;</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">保存</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">，建立好的</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model</span>&nbsp;<span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">如图</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">2</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">所示。（注意：上面是一个简单的建立</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">的例子，在</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Model</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">里边可以添加的不仅仅是已有工具，也可以是自己写的</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">Script</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">脚本工具，以及</span><span style="word-wrap: normal; word-break: normal; line-height: 21px">SubModel</span><span style="word-wrap: normal; word-break: normal; line-height: 21px; font-family: 宋体">。）</span></p></span><br/>Tags - <a href="http://www.windshow.com/tags/arcgismodel/" rel="tag">arcgismodel</a>
]]>
</description>
</item>
</channel>
</rss>
