示例#1
0
        public void Reset()
        {
            DbaseReader newReader = m_Reader.Clone();

            m_Reader.Dispose();
            m_Reader = newReader;
            m_CurrentAttrTbleIndex = 0;
        }
示例#2
0
        public ShapeDataReader(IStreamProviderRegistry streamProviderRegistry, ISpatialIndex <ShapeLocationInFileInfo> index, IGeometryFactory geoFactory, bool buildIndexAsync)
        {
            m_SpatialIndex = index;
            m_GeoFactory   = geoFactory;

            ValidateParameters();


            m_ShapeReader = new ShapeReader(streamProviderRegistry);

            if (buildIndexAsync)
            {
                m_CancellationTokenSrc = new CancellationTokenSource();
                m_IndexCreationTask    = Task.Factory.StartNew(FillSpatialIndex, m_CancellationTokenSrc.Token);
            }
            else
            {
                FillSpatialIndex();
            }

            m_DbfReader = new DbaseReader(streamProviderRegistry[StreamTypes.Data]);
        }
示例#3
0
 public DbaseEnumerator(DbaseReader reader)
 {
     m_Reader = reader.Clone();
     m_CurrentAttrTbleIndex = 0;
 }