One thing that is strange is how you can have entered the regions correctly
without specifying the Coordsys that
you want MapBasic/the MapBasic applicaton to use.

Allways use:
Set CoordSys ...

Before reading/writing/handling coordinates.

I not sure whether this does any difference. Maybe they have fixed a leak
that made it work in 6.5.
Maybe the new Session projection has a strange influence on this ??

HTH,
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.
------------------------------------------------------------------------------------------------
Se mere om Dansk MapInfo Brugerkonference p� 
http://www.kampsax-gis.dk/Default.asp?ID=296

Klik ind p� http://www.kortal.dk og se det hele lidt fra oven!
Check http://www.kortal.dk and have a look at Denmark from above!
----- Videresendt af Peter M�ller/Kampsax - 26-08-2002 08:04 -----
                                                                                       
                                
                    "Addison, Howard"                                                  
                                
                    <HAddison@anglogo        Til:    "Mapinfo List (E-mail)" 
<[EMAIL PROTECTED]>       
                    ld.com.au>               cc:                                       
                                
                                             Vedr.:  MI-L MBX Problems from 6.5 to 7   
                                
                    26-08-2002 02:57                                                   
                                
                                                                                       
                                
                                                                                       
                                



Hi Listers

I have a problem. I have several mbx's that create points/lines/regions
from
reading info from text files and then creating the required objects. They
work fine in Mapinfo 6.5 but don't create the objects correctly in MapInfo
7.

I recompiled the mbx's in Mapbasic 7 (with no errors) still the same
results.

So I wrote a short bit of code to try and sort out the problem.

Basically Create a table

Make it mappable. Australia Map Grid - Zone 51 AGD84

Create a region

Add it to the table.


Works fine in 6.5 but in 7 the region ends up at 500,000mE and
19,998,000.59mN. regardless what coords I put in.


Anyone got any ideas.


Many thanks

Howy




Declare Sub Main

Sub Main

           Dim CommandString as String
           Dim Polygon as Object

           Create Table Extraction (Extraction_File Char(20), Section
Char(20),
Win_Away Float, Win_Toward Float)
           File "C:\regions.tab"

           CommandString = "Create Map for extraction CoordSys Earth
Projection
8, 13, 7, 123, 0, 0.9996, 500000, 10000000"
           Run Command CommandString

           Set Distance Units "m"

                     Create Region  Into Variable Polygon  1
                     4 ( 500347, 6000000 )( 500200, 7000000 )( 600000,
7000000)(
600000, 6000000 )

                     Insert Into  Extraction (Object)  Values (polygon)

End Sub


HOWARD ADDISON
CAD/GIS CO-ORDINATOR
AngloGold Australia Limited
Level 13, St Martins Tower
44 St Georges Terrace

Telephone (08) 94254649
Fax (08) 94254663
<mailto:[EMAIL PROTECTED]>



_______________________________________________________________

This e-mail message contains confidential information which is
intended for the use of the person to whom it is addressed.
If you received it in error, please notify the sender and
delete the material from any computer.  Any disclosure,
re-transmission, dissemination or any other use of this
information is strictly prohibited.
_______________________________________________________________


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2658





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 2661

Reply via email to