Arcobjects 联合方法

Arcobjects union method

我在尝试 运行 联合工具与 arcobjects 的地理处理器时遇到一个 AutomatedException 错误,我不知道如何解决这个问题。这是我的代码:

GeoProcessor geoProcessor = null;
try {
    geoProcessor = new GeoProcessor();
    geoProcessor.setOverwriteOutput(true);
    String inputString = "...\a.shp"+ ";" + "...\b.shp";
    Union u = new Union(inputString, "...\union.shp");
    geoProcessor.execute(u, null);
} catch (AutomationException e) {
    e.printStackTrace();
} catch (IOException e) {
    e.printStackTrace();
}

我找到了解决方案:

String inputString = "'...:\a.shp' #; '...\b.shp' #";