Hi Bo,

Surprising result ! It might be good to know have you made the changes thru
MapBasic, though ?

Did you use

Set Table MYTABLE FastEdit On Undo Off

If not this might be a factor that should be calculated for. Setting the
before altering a table
prevent MapInfo from creating the transaction files (TDA, TMA and TID) and
this of course also
will take some time.

I guess the MITAB alteres the MAP file directly without creating a copy.

Peter
------------------------------------------------------------------------------------------------
Peter Horsb�ll M�ller, GIS Udviklingskonsulent / GIS-Developer
Kampsax A/S - GIS Software & Solutions
Rugaardsvej 55, 5000 Odense, DK
tel: +45 6313 5013,  dir:+45 6313 5008,  fax: +45 6313 5090
mailto:[EMAIL PROTECTED]
www.kampsax-gis.dk and www.kampsax.dk
Authorized MapInfo Partner & Distributor in Denmark and Norway.
------------------------------------------------------------------------------------------------
Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
----- Videresendt af Peter M�ller/Kampsax - 06-02-02 16:04 -----
                                                                                       
                                            
                    [EMAIL PROTECTED]                                                         
                                            
                    Sendt af:                            Til:    
[EMAIL PROTECTED]                                 
                    [EMAIL PROTECTED]        cc:                           
                                            
                    onsmag.com                           Vedr.:  MI-L It is now 
possible to use MITAB from Visual Basic            
                                                                                       
                                            
                                                                                       
                                            
                    06-02-02 12:56                                                     
                                            
                    Besvar venligst til BVT                                            
                                            
                                                                                       
                                            
                                                                                       
                                            




First of all, I apologize for cross-posting this post in both the mitab and
Mapinfo-l list. But IIRC, some mapinfo-l listmmembers asked about the
posibility to read and write binary tab-files from Visual Basic (and not
using MapInfo). For ,those of you, who doesn't know what Mitab is: Its a
open source c/c++ based api to read and write MapInfo Tab files.

To the list members -

I've made some changes to the mitab c-api, so its become compatible with
Visual Basic and Access-basic (and MapBasic for what is it worth). The
changes involves some redefinition of the functions that returns pointers
to
strings in the c-api (5 or 6 functions). I'll get in contact with the
maintainers and try to make an arrangement, so the changes might become a
part of the official edition of mitab. If some listmembers are interested
in
testing the this edition of c-api with Visual Basic they can contact me
directly, and I'll mail them the code and dll.

I've made the following:

- new editions of mitab_capi.h, mitab_capi.ccp and mitab_capi.dll
- include file for Visual Basic/ Access Basic with definitions for the
c-api
functions and constants
- include file for MapBasic with definitions for the c-api functions and
constants
- Delphi pascal unit with definitions for the c-api functions and constants
- 4 test programs in Delphi, Access-Basic and MapBasic

I've only made very limited testing, so there are undoubtly some errors
lurking in the program code

Some (very unscientific) timing information:

I've made some testprograms to generate 100000 random vectors in Delphi,
Access-basic and MapBasic using Mitab. I've made another MapBasic program
that has the same function as the first 3, but using the "native" functions
in MapInfo (with speed optimizations: "set fastedit on" and "set undo off"
)

results:

Delphi: 10 seconds
Access-basic: 11 seconds
MapBasic with mitab:  57 seconds
MapBasic with "native" functions : 71 seconds.

All four of the generated TAB-files was opened in MapInfo using almost the
same no of seconds before showing the data i a mapper window.

It's not surprising, that MapBasic is app. 6 times slower than Delphi or
Access-Basic, but I think it's downright funnny, that the mitab c-api based
Mapbasic program is 20 % faster than the MapBasic program using native
MapInfo functions.

regards
Bo Thomsen




_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.





_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to