예제 #1
0
 public void GetFeatureShouldWorkForShapeFileWithoutObjectID()
 {
     const string path = SharpMapTestDataPath + "gemeenten.shp";
     var s = new OgrFeatureProvider(path, Path.GetFileNameWithoutExtension(path));
     var feature = s.Features[0];
     Assert.Less(-1, s.IndexOf((IFeature) feature));
 }
예제 #2
0
 public void GetFeatureShouldWorkForShapeFile()
 {
     const string path = SharpMapTestDataPath + "Europe_Lakes.shp";
     using (var s = new OgrFeatureProvider(path, Path.GetFileNameWithoutExtension(path)))
     {
         var feature = s.Features[0];
         Assert.Less(-1, s.IndexOf((IFeature) feature));
     }
 }