mitab/mitab_miffile.cpp
int MIFFile::GotoFeature(int nFeatureId)
{

    if (nFeatureId < 1)
      return -1;

    if (nFeatureId == m_nPreloadedId) // CorrectPosition
    {
        return 0;
    }
    else
    {
        if (nFeatureId < m_nCurFeatureId || m_nCurFeatureId == 0)
            ResetReading();

        while(m_nPreloadedId < nFeatureId)
        {
            if (NextFeature() == FALSE)
              return -1;
        }

        CPLAssert(m_nPreloadedId == nFeatureId);

        return 0;
    }
}
/**********************************************************************
 *                   MIFFile::GotoFeature()
 *
 * Private method to move MIF and MID pointers ready to read specified 
 * feature.  Note that Feature Ids start at 1.
 *
 * Returns 0 on success, -1 on error (likely request for invalid feature id)
 **********************************************************************/
:GotoFeature()
Private method to move MIF and MID pointers ready to read specified
feature.  Note that Feature Ids start at 1.

Returns 0 on success, -1 on error (likely request for invalid feature id)
: GotoFeature () Private method to move MIF and MID pointers ready to read specified feature . Note that Feature Ids start at 1 . Returns 0 on success - 1 on error ( likely request for invalid feature id )
int MIFFile::GotoFeature(int nFeatureId)
{
    if (nFeatureId < 1)
      return -1;
    if (nFeatureId == m_nPreloadedId) 
    {
        return 0;
    }
    else
    {
        if (nFeatureId < m_nCurFeatureId || m_nCurFeatureId == 0)
            ResetReading();
        while(m_nPreloadedId < nFeatureId)
        {
            if (NextFeature() == FALSE)
              return -1;
        }
        CPLAssert(m_nPreloadedId == nFeatureId);
        return 0;
    }
}
int MIFFile :: GotoFeature ( int nFeatureId ) { if ( nFeatureId < 1 ) return -1 ; if ( nFeatureId == m_nPreloadedId ) { return 0 ; } else { if ( nFeatureId < m_nCurFeatureId || m_nCurFeatureId == 0 ) ResetReading ( ) ; while ( m_nPreloadedId < nFeatureId ) { if ( NextFeature ( ) == FALSE ) return -1 ; } CPLAssert ( m_nPreloadedId == nFeatureId ) ; return 0 ; } }
MIFFile::GotoFeature()
 Private method to move MIF and MID pointers ready to read specified
 feature.
MIFFile :: GotoFeature () Private method to move MIF and MID pointers ready to read specified feature .
// CorrectPosition