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(); }
public Boolean Read() { checkDisposed(); Boolean reading = _objectEnumerator.MoveNext(); if (reading) { _currentFeature = _shapeFile.GetFeatureByOid(_objectEnumerator.Current); } return(reading); }
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(); }