阅读:2219回复:3
关于AE 版本协调的问题(官方源代码示例)
<p><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">官方关于版本协调的源代码都在这里 87到102行,不是很明白它具体完成了什么,怀疑是进行手动版本协调的解决方法</span><br style="font: 14px="14px" /normal Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"/><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">我现在想做对单个要素进行手动选择冲突解决方案,之前看了gisbreeze的相关提问帖:</span><a style="font: 14px="14px" /normal Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(0, 153, 204); text-transform: none; text-indent: 0px; letter-spacing: normal; text-decoration: none; word-spacing: 0px; white-space: normal; word-wrap: break-word; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" href="http://bbs.esrichina-bj.cn/esri/viewthread.php?tid=45340;extra=;page=1" target="_blank">http://bbs.esrichina-bj.cn/esri/viewthread.php?tid=45340;extra=;page=1</a><br style="font: 14px="14px" /normal Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"/><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">他的思路是将获得的各版本QI到FeatureWorkspace中 然后对相应要素用setValue进行替换,并且成功了</span><br style="font: 14px="14px" /normal Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; word-wrap: break-word; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"/><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">我在使用SetValue解决时发现当替换到shape.area字段时就会报错,这应该是默认生成的要素相关属性想OBJ一样不能修改,请问各位达人是否有相应的解决办法。</span></p><p><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">另外想问一下 </span></p><table style="font: 12px="12px" /normal Verdana, Helvetica, Arial, sans-serif; width: 600px; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; margin-left: 1px; word-spacing: 0px; white-space: normal; border-collapse: collapse; table-layout: fixed; word-wrap: break-word; orphans: 2; widows: 2; empty-cells: show; font-size-adjust: none; font-stretch: normal; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" cellspacing="0" cellpadding="0"><tbody style="line-height: normal; word-wrap: break-word;"><tr style="line-height: normal; word-wrap: break-word;"><td style="font: 14px="14px" /1.6em Verdana, Helvetica, Arial, sans-serif; color: rgb(68, 68, 68); word-wrap: break-word; font-size-adjust: none; font-stretch: normal;" id="postmessage_980421" class="t_msgfont">到底 IVersionEdit4.post(str TargetVer) 是将那个版本提交给Target版本?</td></tr></tbody></table></span><p><span style="font: 14px="14px" /22px Verdana, Helvetica, Arial, sans-serif; text-align: left; color: rgb(68, 68, 68); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline="inline" !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(239, 244, 255); -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"> </span></p>
[此贴子已经被作者于2012-02-29 17:16:22编辑过]
|
|
1楼#
发布于:2012-02-29 17:17
<a href="http://bbs.esrichina-bj.cn/ESRI/thread-110575-1-1.html">源代码</a>
|
|
2楼#
发布于:2012-03-03 10:13
<p>提供的网址今天刚好访问不了<img src="images/post/smile/dvbbs/em03.gif" /></p>
<p> </p> <p> </p> |
|
|
3楼#
发布于:2012-03-29 10:33
<p>shape.area是只读的临时字段,是根据shape字段生成的,实际上在数据库中并不存在。当然无法setvalue更新。</p>
<p>post就是将当前版本得奖给target版本,IVersionEdit4就是你当前版本的接口</p> |
|