Geoprocessor: using arc toolbox in vb.net

المشرف العام

Administrator
طاقم الإدارة
i am doing the following in order to use the predefined tool points to line in arctool box

Dim ptoline As ESRI.ArcGIS.DataManagementTools.PointsToLine = New ESRI.ArcGIS.DataManagementTools.PointsToLine Dim pgeo As ESRI.ArcGIS.Geoprocessor.Geoprocessor = New ESRI.ArcGIS.Geoprocessor.Geoprocessor ptoline.Input_Features = " D:\Mayur\shapefiles\new_pooint_3.shp" ptoline.Output_Feature_Class = " D:\Mayur\shapefiles\new_line123.shp" pgeo_OverwriteOutput = True Dim geoProcessorResult As IGeoProcessorResult geoProcessorResult = pgeo.Execute(ptoline, Nothing)i dont know the exact syntax of it. after running it shows error on

geoProcessorResult = pgeo.Execute(ptoline, Nothing)Error HRESULT E_FAIL has been returned from a call to a COM component.

the references geoprocessor and datamanagement tools are included.

the path to the input feature is correct.the o/p file is created automatically.

is there any prerequisite to run geoprocessor?do I have to do that workspace thing also ?

all suggestions are welcome



أكثر...
 
أعلى