laptop and a wrench

Error

The GP Intersect tools does not work when one input is a shape file and is being passed in using a value table in VB.Net. The same code is VBA works.

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM002101
EnviadoApril 13, 2006
Última modificaciónJune 5, 2024
Relacionado conNo Product Found
Versión encontrada9.1
Lenguaje del programaVB.Net
Versión corregida9.2
EstadoFixed

Solución alternativa

Do not use value table instead use strings. i.e. instead of: Dim vt As Object vt = gp.CreateObject("ValueTable") vt.setrow(0, "D:\inc479405\LandUse_selection.lyr") vt.setrow(1, "D:\inc479405\Soilshp.shp") gp.Intersect_analysis(vt, out_polygons, "ALL", "", "INPUT") 'Does not workUSE: Dim inPath1 As String Dim inPath2 As String Dim inPaths As String Dim quotes As String Dim semicoln As String inPath1 = "D:\inc479405\LandUse_selection.lyr" inPath2 = "D:\inc479405\soilsshp.shp" quotes = " ''" semicoln = "; " inPaths = inPath1 + quotes + semicoln + inPath2 + quotes gp.Intersect_analysis(inPaths, out_polygons, "ALL", "", "INPUT")

Pasos para reproducir

ID del error: NIM002101

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga