I'm guessing that what you want to do is to open a MapInfo TAB file and get the 
coord sys string ?

If so, you can use the Mitab library to do something like this:


#include
 
..."mitab_capi.h"

const char * filename = "C:\\mytab.tab"; // The path to your TAB file
mitab_handle hTAB = mitab_c_open(filename);
if (hTAB!=0)
{
    const char *sCoordSys = mitab_c_get_mif_coordsys(hTAB);

    // Do something with the coord sys string...

    mitab_c_close(hTAB);
}


This will return a coord sys string like this:
   Earth Projection 8, 12, "m", 147, 0, 0.9996, 500000, 10000000

You need to look in the MapInfo documentation to know how to decode these. In 
this case its projection 8 (Transverse Mercator) , datum 12 (AGD66), units in 
metres, origin of longitude = 147, origin of latitude = 0, scale factor = 
0.9996, false easting = 500000 m, false northing = 10000000 m.

I hope this info helps.

Cheers,
Anthony.

 



________________________________
From: Jim Becker <[email protected]>
To: [email protected]
Sent: Sun, 25 July, 2010 1:32:27 PM
Subject: [mitab] MI-files projection

  
Hello! I need to know a MAPINFO-collection( *.tab+*.map+ *.ind+*.id) projection 
directly from this files whithout MAPINFO. It`s really? How I can do it? Thank 
you! 





      

Reply via email to