帖子
|
对于10.0,工具集的安排不同,但解决的是相同的问题。我还应该指出,在ArcGIS for Server v10中,你可以使用AGSFeatureLayer的maxAllowableOffset属性来进行动态泛化。这篇博客文章涵盖了这个主题。尼克。
...查看更多
03-05-201206:11我
|
0
|
0
|
491
|
帖子
|
嗨,Anoop,好问题。这已经超出了这个帖子和论坛的范围,但是我会试着给你一些建议。我不知道什么是泛化,我们的服务器版本是9.31。这是我们应该在服务器端实现的东西?是的,服务器端。我们怎么知道一个层是不是广义的呢?泛化只是将矢量数据的“分辨率”降低到适合您的目的的水平(在本例中,在给定的缩放级别上呈现)的过程。例如,一条包含数千个点的折线适合绘制墙壁大小的地图,但在小屏幕上看起来完全相同只需要十分之一的点。一个更好的问题可能是:您如何知道一个特性类是否需要泛化?让我们只考虑查看数据(编辑是另一个问题,一般规则是不要直接编辑泛化数据)。 And remember this discussion is for dynamic layers only (i.e. not tiled layers). [INDENT] Ex. 1: You could have a problem if you zoom in on a polyline or polygon layer much further than your app needs and can still see a lot of detail. That means that when you're zoomed at a working level, the data is too detailed for what you can see at that scale. Ex. 2: You could perhaps have a polygon that is the right level of detail, but that is much larger than your visible working area. The single polygon still needs to be pulled over in its entirety for rendering. Solving that can be a whole separate discussion. Ex. 3: You might find (as is possibly the case here) that the data is more detailed than your client specifications allow for, and so you'd want to create a generalized set of that data just for that client app. [/INDENT] There is a lot to consider. Client limitations, bandwidth, managing the data, data updates, editing. The 9.3 documentation has a short discussion on the topic and overview of the operations . You will need an ArcInfo license to use most of the tools (you'll probably need " Simplify Polygon "). For 10.0, the toolset is arranged differently but attacks the same problems. I do work with many complex layers with boundary of various states, municipalities etc. To be exact all the layers have some kind of complex irregular graphics in it If it were me, the first thing I would do is try to show that it is these complex layers that are causing your memory issue. Either use the profiler, or create a test set of generalized layers and use those. If so, try to categorize your feature classes: "Needs generalizing" (causes a memory warning), "could do with generalizing" (takes a while to load, but doesn't cause a memory warning), and "fine as it is". That should put you in a better position to work out your next steps (and longer term data management goals if necessary). Hope this helps a little, Nick.
...查看更多
03-02-2012上午08:09
|
0
|
0
|
491
|
帖子
|
嗨,Anoop:我需要更多的说明,当添加多个地图层时,基图是先加载的,层是从下往上重画的方式仪式?是的。你先添加最底部的层,其他层按你使用addMapLayer:withName:添加它们的顺序添加在顶部。关于地图的空间参考信息,请参见层概念概述页面。如果在平铺层下面有任何动态层,当平铺层完全加载时,它们将被隐藏,因此我们可以安全地隐藏这些“蒙面层”并节省网络流量和内存。不一定。平铺层可能具有透明度(参见世界运输层的例子)。在这种情况下,您可能不希望隐藏序列中较早添加的层。与往常一样,考虑您正在处理的数据。请分享是否有一些内存管理解决方案针对这种情况。 Here are a couple of thoughts: Add and Remove layers: You could consider using the AGSMapView's removeMapLayerWithName: and insertMapLayerWithName:atIndex: methods. Provided you are not somehow retaining a handle to the removed layer or layer view (you'd have to do it quite deliberately) that should help. Use the profiler to see. In my testing this helped reduce the footprint a little (although it may be no better than just hiding the layer as Nimesh suggested). Generalize complex lines/polygons: Note also that a Dynamic Layer will load the data as provided by the server and may cause a spike as it is loaded and rendered. If you find that you have very complex data, you could consider generalizing that data on the server end. In fact, if I add this layer (which is not generalized) and view the memory profile as it loads, it causes a spike in memory usage to well over 25Mb as the data is loaded before dropping down again once rendered. When testing against a generalized copy of the same dataset, the memory usage stays very low. Hopefully this will help a little. Cheers, Nick.
...查看更多
02-29-201205:59点
|
0
|
0
|
491
|
帖子
|
嗨,梅林达,这里可能有点剪贴错误。我想你的意思是:NSMutableDictionary *graphicAttributes = CurrentFeatureGraphic.attributes;[graphicAttributes setObject: MarkupDescription。文本forKey: @“描述”);...费萨尔:同样值得注意的是,你可能不应该为一个现有的功能更新OBJECTID。这是自动生成的,不应该更新(除非您故意对特性类做了一些非常奇怪的事情,而且您不太可能遇到这种情况)。为了增加与属性字典或地理数据库模式的解耦,你应该考虑在读取对象ID时使用AGSFeatureLayer的objectIdForFeature:方法。尼克。
...查看更多
02-29-201205:21点
|
0
|
0
|
332
|
帖子
|
嗨,伙计们,我有下一个代码,其中answerText是UITextField if (answerText。text == @"1") {NSLog(@"YES");} else NSLog(@"NO");这段代码总是返回NO时,我键入textField“1”(在iOS模拟器),它只返回YES时,我键入Xcode answerText。Text = @"1",为什么?你好。你在比较指向两个字符串的指针。记住,@"1"只是一个快捷方式来创建一个全新的NSString对象,其中包含单个字符"1"。两个字符串看起来一样,但它们是独立的对象。相反,请使用isEqualToString:(参见Apple的文档)。如果([answerText。text isEqualToString:@"1"]) {NSLog(@"YES"); } else NSLog(@"NO"); Cheers, Nick. UPDATE: I just happened across this road map from Apple , and this page seems particularly relevant.
...查看更多
02-29-201209:56我
|
0
|
0
|
210
|
帖子
|
除了这些步骤之外,在你创建特征层时添加这行代码是至关重要的,以便获得所有可用的外场:self.myfeatureLayer.outFields = [NSArray arrayWithObject:@"*"];可能还值得注意的是,您应该在您正在下拉的数据和弹出窗口的要求的上下文中考虑这一点。虽然这肯定是确保您拥有一切的最简单方法,但对于具有许多字段的数据源和/或可能具有包含大量数据的字段的数据源,请考虑只列出您想要使用的字段(特别是在3G上运行时)。尼克。
...查看更多
02-29-201209:34我
|
0
|
0
|
214
|
帖子
|
…让我更想在这个论坛上发帖:)所以你应该,亚当(抱歉我之前叫你亚伦!)!很高兴你能解决这个问题。如果你遇到SDK的问题,请在这里发布。我们不能总是保证能解决所有问题,但我们已经尽力了,尼克。(顺便说一下,如果我上面提供的帖子上有一个复选标记,也许你可以标记这个回答?它帮助我浏览论坛帖子,看看我是否能帮忙。)
...查看更多
02-24-201201:38点
|
0
|
0
|
295
|
帖子
|
嗨,我试图自学如何为iOS制作移动应用程序,所以我在12月从ESRI买了两个课程。好吧,还没有更新类以匹配新的4.3或新的OS Lion。ESRI培训中心的人一直没有帮上什么忙,我希望论坛能给我指引正确的方向。我做了类做了它说,但我得到的是一个白色的屏幕在模拟器(网络地图没有加载)。我也尝试使用soultion文件,但运气不好。我在下面附上了我的项目。这是类的软件要求:ArcGIS API for iOS 2.0 Macintosh计算机运行雪豹Xcode 4 iOS SDK 4.3或更高包含在Xcode 4安装这是我的软件“ArcGIS API for iOS 2.1 Macintosh计算机运行Lion 10.7.3 Xcode 4.3 iOS SDK 5我觉得这是一些语法错误,没有注册。嗨,亚伦,听说你有麻烦,我很难过。我建立了一个虚拟机,Mac OS X更新到10.7.3,Xcode 4.3从苹果应用商店下载,以及最新的ArcGIS API(2.1)。然而,我无法重现这个问题。 The solution you attached builds and runs fine and shows me the expected map display in the iPhone simulator. At least we know it's not a syntax error Are you able to run the attached project and see a map of the world? Note : you may need to change the "Library Search Paths" project build setting. If not, could there be network problems/firewalls preventing you from accessing the data sources? Try opening this link from your developer machine. You should see a map of San Francisco 311 incidents. Cheers, Nick.
...查看更多
02-24-201203:51我
|
0
|
0
|
295
|
帖子
|
帕特里克,很高兴能帮上忙。谢谢你给我打分干杯,尼克。
...查看更多
02-22-201206:31点
|
0
|
0
|
843
|
帖子
|
嗨Patrick,如果你在你的半透明覆盖UIView的属性检查器上取消选择“用户交互启用”复选框,你应该让交互气泡通过底层的AGSMapView。注意,在标识检查器的可访问性部分下也有一个“用户交互启用”设置,但你不应该修改这个设置,除非你在同一部分启用了可访问性。到目前为止,我只在模拟器中测试了这一点,但可以点击,平移和捏。我还没有尝试过任何更复杂的手势,但我怀疑它们会被传递下去。干杯,尼克。附注:我附上了一个最小的XCode 4.2/iOS 5示例项目来展示这一点。
...查看更多
02-22-201202:29点
|
0
|
0
|
843
|
标题 | 荣誉 | 发布 |
---|---|---|
1 | 一周前 | |
1 | 一周前 | |
2 | 一个月前 | |
1 | 一个月前 | |
1 | 11-07-202207:43我 |