Exemplo n.º 1
0
        public bool Read()
        {
            if (_reader.PeekChar() != -1)
            {
                _currentOffset = _reader.ReadIntBE();
                _currentLength = _reader.ReadIntBE();

                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
 public bool MoveNext()
 {
     if (_shpBinaryReader.PeekChar() != -1)
     {
         int recordNumber  = _shpBinaryReader.ReadIntBE();
         int contentLength = _shpBinaryReader.ReadIntBE();
         if (Shapefile.TraceSwitch.Enabled)
         {
             Trace.WriteLine("Record number :" + recordNumber);
             Trace.WriteLine("contentLength :" + contentLength);
         }
         _geometry = _handler.Read(_shpBinaryReader, _parent._geometryFactory);
         return(true);
     }
     else
     {
         // reached end of file, so close the reader.
         _shpBinaryReader.Close();
         return(false);
     }
 }