alaazz
路人甲
路人甲
  • 注册日期2004-12-18
  • 发帖数3
  • QQ
  • 铜币119枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1134回复:1

多重buffer问题,HELP 谢谢

楼主#
更多 发布于:2005-02-24 12:51
It is not convenient for me to type Chinese, sorry if you do not like it.

I am using ArcGIS 9 with service pack 2 and VB 6. I plan to creat a buffer(multiRingBuffer, 30;60;90 meters) for my stream/pond shape file.

Originally, I think I can use GeoProcessing's multiRingBuffer, but sample codes in Geoprocessing is not that clear to use. As shows below, I am not sure where the user installed ArcGIS in his computer, how could I set the toolbox in my code?

Any suggestions would be greatly appreciated.

Thank you for your attention and help.

Yanli
Sub RunGPTool()
'Create the Geoprocessor object
Dim GP As Object
Set GP = CreateObject("esriGeoprocessing.GpDispatch.1")

'Set the toolbox
GP.Toolbox = "D:\ArcGIS\ArcToolbox\Toolboxes\Analysis Tools.tbx"

'Execute tools
GP.Clip "D:\Workspace\Portland.mdb\Region\streets", _
"D:\Workspace\Portland.mdb\Region\downtown", "D:\Workspace\Portland.mdb\Region\dt_streets"

GP.Buffer "D:\Workspace\Portland.mdb\Region\dt_streets", _
"D:\Workspace\Portland.mdb\Region\dt_streetsbuf", "500"
End Sub
喜欢0 评分0
xpdown
路人甲
路人甲
  • 注册日期2005-02-25
  • 发帖数3
  • QQ
  • 铜币110枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2005-02-28 13:52
ArcGIS的安装位置是可以通过注册表来读取的。

HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\ArcGIS下面有一个条目叫InstallDir。
举报 回复(0) 喜欢(0)     评分
游客

返回顶部