Ejemplo n.º 1
0
        public void GetFeatureTest()
        {
            ShapeFileProvider shapeFile = new ShapeFileProvider(
                BcRoadsShapeFile, _geoFactory, _coordSysFactory);

            shapeFile.Open();
            FeatureDataRow <UInt32> feature = shapeFile.GetFeatureByOid(0) as FeatureDataRow <UInt32>;

            Assert.IsNotNull(feature);
            Assert.AreEqual(0, feature.Id);
            shapeFile.Close();
        }
Ejemplo n.º 2
0
        public Boolean Read()
        {
            checkDisposed();

            Boolean reading = _objectEnumerator.MoveNext();

            if (reading)
            {
                _currentFeature = _shapeFile.GetFeatureByOid(_objectEnumerator.Current);
            }

            return(reading);
        }
Ejemplo n.º 3
0
 public void GetFeatureTest()
 {
     ShapeFileProvider shapeFile = new ShapeFileProvider(
         BcRoadsShapeFile, _geoFactory, _coordSysFactory);
     shapeFile.Open();
     FeatureDataRow<UInt32> feature = shapeFile.GetFeatureByOid(0) as FeatureDataRow<UInt32>;
     Assert.IsNotNull(feature);
     Assert.AreEqual(0, feature.Id);
     shapeFile.Close();
 }