public static bool OpenShapefile(string filename, string tableName)
{
string databaseFileName = Path.Combine(Path.GetDirectoryName(filename), "shape.dat");
var client = new SqliteDataClient(databaseFileName);
using (DbConnection conn = client.GetConnection())
{
return ShapefileHelper.ImportShapefile(conn, client, filename, tableName, -1);
}
}