当前位置: 代码迷 >> GIS >> 怎么用java创建shapefile有关问题
  详细解决方案

怎么用java创建shapefile有关问题

热度:325   发布时间:2016-05-05 06:36:36.0
如何用java创建shapefile问题,
IFeatureWorkspace featureWorkspace=null;
  IWorkspaceFactory workspaceFactory = new ShapefileWorkspaceFactory();
  featureWorkspace = (IFeatureWorkspace)workspaceFactory.openFromFile(strFolder, 0);
每次运行到
 IWorkspaceFactory workspaceFactory = new ShapefileWorkspaceFactory();
时,错误显示
Could not load native libraries. ArcGIS/bin should be added to the system PATH environment variable.
java.lang.UnsatisfiedLinkError: no ntvauth in java.library.path
java.lang.UnsatisfiedLinkError: no ntvauth in java.library.path
  请高手指点一下,谢谢!

------解决方案--------------------
把 ArcGIS/bin 目录下的文件拷贝到 jdk的bin目录下试试
这个一般是找不到要用的dll 或者 dll的版本内写的引用路径 和 实际引用路径不一样
  相关解决方案