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/