Hi,

Try without the bounds clause:

mitab_c_create(
  "C:\DERM\QIF2MapInfo\QIF2MapInfo_CS\Resources\TestData\Output\TAB\aurukun_i_BasePly.TAB"
, "tab"
, "CoordSys Earth Projection 1, 33"
, -9, -30, 156, 137);

You can not see the coordsys in the TAB file. It is hidden inside the MAP file in a different binary format.

The transform in MIF is way to tell the import function in MapInfo to manipulate the coodinates during import. I guess the TAB2TAB application supports it, if you translate from MIF to TAB.

Regards
Uffe Kousgaard


keith_corlett wrote:
I know this is a very old thread, but the content is relevant to my question, so please forgive this small necromancy.

I create a dataset passing the CoordSys string (with Bounds), and the bounds:

mitab_c_create(
  "C:\DERM\QIF2MapInfo\QIF2MapInfo_CS\Resources\TestData\Output\TAB\aurukun_i_BasePly.TAB"
, "tab"
, "CoordSys Earth Projection 1, 33 Bounds (137.0,-9.0) (156.0,-30.0)"
, -9, -30, 156, 137);

That is GDA94, which is GRS80 for Queensland, Australia... or at least that what's I hope it says. Sigh.

but the resulting TAB is devoid of CoordSys statement, and the precision of my lat/lon's (must be +/- 0.6mm at worste) has gone to hell in a hand-basket... so I guess mitab is using MapInfo's default "whole planet" coordinate system.

!table
!version 450
!charset Neutral

Definition Table
  Type NATIVE Charset "Neutral"
  Fields 34
...

I'm actually developing in C#, using an "improved" version of MiApi.cs's P/Invoke extern delarations.

Please, can anybody spot my mistake? Or maybe one of my assumptions is wrong... like the CoordSys is reported in the TAB-file, isn't it?

Also: Is there an mitab equivalent of the MIF "Transform" statement? We use it in our existing MIF's and (though I don't really understand what it does, even after several readings of that section of the MIF-spec (I'm a hacker, not a carto or surveyor)), I am loath to lose any existing functionality.

Thank you in advance for any guidance. I do appreciate it.

Cheers. Keith.

--- In [email protected], bvt@... wrote:
  
It's not "must" it's "may". When you create a new tab file with the
mitab_c_create function, You already defined the tab-file'ss projection info
with the 3. parameter in the function call.

i.e (in Visual Basic) 
  
mh = mitab_c_create("c:\boom.Tab", "tab", "CoordSys Earth Projection 8,28,
""m"", 9, 0, 0.9996, 500000, 0", 0, 0, 0, 0)

The string value "CoordSys Earth Projection 8,28, ""m"", 9, 0, 0.9996,
500000, 0" defines the new tab-file's projection (In this case it's UTM32 /
ED50). The definition af this parameter is the same as for projection
definitions in mif/mid files for MapInfo

regards
Bo Thomsen

-----Oprindelig meddelelse-----
Fra: cscrum <cscrum@...> [mailto:cscrum@...]
Sendt: 16. december 2002 18:40
Til: [email protected]
Emne: [mitab] MITAB.dll


I'm thinking about using the MITAB.dll and have read the
documentation, but am confused on one point. The mitab_c_set_projinfo
says that I must call the mitab_c_get_projinfo first. If I've jsut
created a new dataset, I believe get_projinfo will return a Null. Is
this OK? I would expect that something would have to be written to the
projinfo or am I wrong. If something does need to be written, how do I
know what to put in here?

Cameron



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/

    



------------------------------------

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:
    [email protected] 
    [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/



  


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to