The error occured between version 1.5 and version 1.6. Up to 1.5.1 the
text has been displayed correctly. Since 1.6 it is not the case.
Like I said, i am gonna send a bugreport. 

regards

--- In [email protected], "mp83alpha" <[EMAIL PROTECTED]> wrote:
>
> I did export and reimport the files, but with the same result.
> I use MITAB 1.6.1. 
> 
> The problem is, that the text inside of the mapinfo file (the new
> file) is completly different. He is larger than in the old file and
> also not on the correct place. ( outside of the bounds ):
> 
> I used tab2tab.exe with the small change from the first commment.
> 
> D:\BG\Database\Map\Guillestrois\plans>tab2tab.exe Decheterie.TAB
Test.TAB
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 2124.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 2680.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 4107.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 4200.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 4770.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 4960.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 5587.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9088.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9093.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9094.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9095.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9102.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9106.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9109.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9112.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9115.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9117.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9118.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9120.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9131.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9134.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9135.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9139.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9143.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9144.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9148.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9149.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9150.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9151.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9155.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9156.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9157.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9158.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9160.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9162.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9172.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9178.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9190.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9196.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9197.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9198.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9202.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9204.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9205.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9206.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9207.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9208.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9211.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9212.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9213.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9222.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9224.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9228.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9233.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9235.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9242.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9247.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9248.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9250.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9273.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9282.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9288.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9302.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9312.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9319.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9322.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9327.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9332.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9334.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9335.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9341.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9348.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9349.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9361.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9368.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9387.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9394.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9396.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9397.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9400.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9401.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9402.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9406.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9410.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9418.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9419.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9420.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9422.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9425.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9426.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9439.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9441.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9442.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9445.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9446.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9775.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9955.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9957.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9965.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9971.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9974.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 9980.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10044.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10108.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10111.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10573.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10578.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10581.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10582.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10584.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10586.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 10587.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11466.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11477.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11478.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11489.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11494.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11504.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11514.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11516.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11532.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11533.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11546.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11553.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11554.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11565.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11568.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11569.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11576.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11583.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11585.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11588.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 11589.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 12016.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 12070.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 13773.
> ERROR 1: ReadBytes(): Attempt to read past end of data block.
> Failed to read feature 13775.
> Warning 503: Some objects were written outside of the file's
> predefined bounds.
> These objects may have invalid coordinates when the file is reopened.
> Predefined bounds:
> (-104503824.399,-98311919.314)-(105703824.399,111895729.483)
> 
> 
> D:\BG\Database\Map\Guillestrois\plans>
> 
> I will add a bugreport. 
> 
> But is there any version that might not have this problem?
> 
> regards, 
> 
> Manfred
> 
> --- In [email protected], Daniel Morissette <dmorissette@> wrote:
> >
> > Which version of MITAB are you using? I think there were some
issues in 
> > V1.5.x and 1.6.0 that gave errors of this type, so if you are
using an 
> > older version I'd recommend that you start by upgrading to 1.6.1.
> > 
> > If MITAB 1.6.1 still fails, then there are two possibilities:
> > 
> > - It could be that your file is corrupt. To rule out that
possibility, 
> > you could try to open the file in MapInfo, export it to MIF and then 
> > reimport to TAB in MapInfo under a new name, and try the new TAB file 
> > with MITAB and see if the problem persists.
> > 
> > - If the problem persists with the new/clean TAB file, then it
could be 
> > a bug or an unsupported feature type, in this case it would be
best if 
> > you could submit a bug at 
> > http://bugzilla.maptools.org/enter_bug.cgi?product=MITAB and attach a 
> > sample dataset to reproduce the issue.
> > 
> > Daniel
> > 
> > 
> > mp83alpha wrote:
> > > Hi,
> > > 
> > > i've tried to copy a mapinfo (.TAB) file with tab2tab.exe, but i got
> > > this error:
> > > 
> > > D:\> tab2tab.exe Decheterie.TAB Test.TAB
> > > ERROR 1: ReadBytes(): Attempt to read past end of data block.
> > > Failed to read feature 2124.
> > > 
> > > If I do the following modif in Tab2Tab(), I am able to copy the
file,
> > > but the result is "dirty" and looks different in MapInfo. Can
somebody
> > > help me in this case?
> > > 
> > > Please.
> > > 
> > > regards
> > > 
> > >     nFeatureId = -1;
> > >     while ( (nFeatureId =
poSrcFile->GetNextFeatureId(nFeatureId)) !=
> > > -1 &&
> > >             (nMaxFeatures < 1 || numFeatures++ < nMaxFeatures ))
> > >     {
> > >         poFeature = poSrcFile->GetFeatureRef(nFeatureId);
> > >         if (poFeature)
> > >         {
> > >             poDstFile->SetFeature(poFeature);
> > >         }
> > >         else
> > >         {
> > >             printf( "Failed to read feature %d.\n",
> > >                     nFeatureId );
> > >                   continue;
> > >                   dirty = TRUE;
> > >             // return -1;      // GetFeatureRef() failed: Error
> > >         }
> > >     }
> > > 
> > >
> >
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/mitab/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/mitab/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to