Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileFormats.ShapefileHelper.OpenShapefile C# (CSharp) Method

OpenShapefile() public static method

Helper function for testing the shapefile importer
public static OpenShapefile ( string filename, string tableName ) : bool
filename string
tableName string
return bool
        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);
            }
        }