示例#1
0
        public void GetFeatureShouldWorkForShapeFileWithoutObjectID()
        {
            string path    = @"..\..\..\..\data\gemeenten.shp";
            var    s       = new ShapeFile(path);
            var    feature = s.Features[0];

            Assert.LessOrEqual(0, s.IndexOf((IFeature)feature));
        }
示例#2
0
        public void GetFeatureShouldWorkForShapeFile()
        {
            string path    = @"..\..\..\..\data\Europe_Lakes.shp";
            var    s       = new ShapeFile(path);
            var    feature = s.Features[1];

            Assert.LessOrEqual(0, s.IndexOf((IFeature)feature));
        }