Solved! Go to Solution.
Good day all,
I was hoping to get clarity on an issue I am having with the use of Geoprocessing tools in VB.NET.
Essentially I have an Add-In that draws in a number of Geoprocessing Operations.
I am using the GP.Execute(Geprocessor Name, Nothing) way of conducting the whole thing.
The inputs for this need to be the path of the shapefiles i.e. C:\Directory\Test.shp
I am getting stuck when trying to use data sitting on the server.
The GP.Execute simply will not work.
If I do the process manually, it works - so I do not think its a server rights issue.
Which leads me to believe its a Character Limit - is there a character limit to inputs / outputs in a geoprocessor?
If I keep the data on my C:\ and use short directory names, everything works 100%.
Any ideas / solutions will be welcomed!
Public Function VS() ' ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop) Dim gp As New Geoprocessor Dim VSh As ESRI.ArcGIS.Analyst3DTools.Viewshed = New ESRI.ArcGIS.Analyst3DTools.Viewshed Dim out As String out = Label1.Text VSh.in_observer_features = Label3.Text ' reads this from a label populated with the full path to the input feature VSh.in_raster = Label2.Text ' reads this from a label populated with the full path to the raster feature VSh.out_raster = Label4.Text ' reads this from a label populated with the full path to the output raster VS = gp.Execute(VSh, Nothing) ' if the label text above points to my C:\ this works, if it points to the network drive (G:\ ; H:\ ; Q:\) it all fails gp = Nothing End Function