使用“MakeRouteEventLayer” 在 ArcGIS 中
我正在尝试使用 MakeRouteEventLayer 工具,但似乎无法满足不同的先决条件。 这些路线托管在 SDE 数据库上。 到目前为止,我通过连接到数据库服务器来设置工作区,但我不知道如何获取 MakeRouteEventLayer 的 构造函数。 我似乎找不到如何让要素图层作为输入路线要素传递。 另外,我不明白如何正确创建事件表。 除了 这个我不明白,因为它没有太多记录/评论,并且没有提及数据类型。
供您参考,我正在开发的工具是用 C# 编写的。
I'm trying to use the MakeRouteEventLayer tool but can't seem to get the different pre-conditions met. The routes are hosted on an SDE database. So far, I am setting the workspace by making a connection to the database server but I don't know how to get the arguments needed by MakeRouteEventLayer's constructor. I can't seem to find how i'm supposed to get the Feature Layer to pass as the Input Route Features. Also, I don't understand how to create an event table properly. I can't seem to find any exemple relating to what I am trying to accomplish aside from this one which I don't understand since it isn't documented/commented very much and the datatypes are not mentionned.
For your information, the tool I am working on is written in C#.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
阅读桌面应用程序的帮助文件可能会很有用,因为它解释得更好一些:ESRI WebHelp for ArcGIS 9.3.1。
在过去使用个人地理数据库时,我不得不处理类似的问题。 因此,本质上,这就是您需要做的:
希望这能让您更好地理解这些领域来完成您的任务。 一个 Python 示例可能会对您有一点帮助:
上面的代码允许您在临时的内存层中创建 Route Event 层。 要保存图层,只需运行 SaveToLayerFile(inLayer, outLayer) 命令即可完成。
It may be useful to read the help file for the desktop application, as it explains it a little better: ESRI WebHelp for ArcGIS 9.3.1.
I had to deal with similar problems in the past working with personal geodatabases. So in essence, this is what you need to do:
Hopefully this enables you to understand the fields a little better to complete your task. A Python example may help you a little bit:
The above code allows you to create the Route Event layer in a temporary, in-memory layer. To save the layer, simply run the SaveToLayerFile(inLayer, outLayer) command and you are done.