importDBF(
configConnectionName, password, fileNameWithoutExtension, sqlSchema, dbfTableName,
sqlOverwrite, nullValues);
}
GeometryStreamConverter converter = new GeometryStreamConverter(new SQLGeometryStreamDestination(
conn, sqlSchema, sqlTablePrefix, sqlOverwrite));
for (String file : fileNameWithoutExtension)
{
// convert shape data to streaming sql format
String shpfile = getUploadPath() + file + ".shp";
SHPGeometryStreamUtils.convertShapefile(converter, shpfile, Arrays.asList(keyColumns));
}
converter.flushAndCommitAll();
}
catch (Exception e)
{
e.printStackTrace();
throw new RemoteException("Shapefile import failed", e);