Exemple #1
0
        public void RebuildSpatialIndexWhenClosedThrowsExceptionTest()
        {
            ShapeFileProvider shapeFile = new ShapeFileProvider(BcRoadsShapeFile, _geoFactory);

            shapeFile.RebuildSpatialIndex();
            shapeFile.Close();
        }
Exemple #2
0
        public void RebuildSpatialIndexTest()
        {
            ShapeFileProvider shapeFile = new ShapeFileProvider(BcRoadsShapeFile, _geoFactory, _coordSysFactory, false);

            shapeFile.Open();
            File.Delete(BcRoadsSpatialIndex);
            shapeFile.RebuildSpatialIndex();
            Assert.IsTrue(File.Exists(BcRoadsSpatialIndex));
            shapeFile.Close();
            File.Delete(BcRoadsSpatialIndex);
        }
 public void RebuildSpatialIndexTest()
 {
     ShapeFileProvider shapeFile = new ShapeFileProvider(BcRoadsShapeFile, _geoFactory, _coordSysFactory, false);
     shapeFile.Open();
     File.Delete(BcRoadsSpatialIndex);
     shapeFile.RebuildSpatialIndex();
     Assert.IsTrue(File.Exists(BcRoadsSpatialIndex));
     shapeFile.Close();
     File.Delete(BcRoadsSpatialIndex);
 }
 public void RebuildSpatialIndexWhenClosedThrowsExceptionTest()
 {
     ShapeFileProvider shapeFile = new ShapeFileProvider(BcRoadsShapeFile, _geoFactory);
     shapeFile.RebuildSpatialIndex();
     shapeFile.Close();
 }