Colin,

You don't need to use any MapBasic commands to change the current co-ord
system. Try this:
Open a map
Choose Map > Options
Click on [Projection...] button
Change the projection of the map to the projection you want (NOTE: if it
already is the one you want, you will have to change it to another
projection and then change it back)
Use Update column to set the CentroidX(obj)

*** If you have the MapBasic widow open you will see the "set map XY units"
executed - the command you should really use is "Set CoordSys...." but this
way works fine.

If you always want to update using the same projection, you can create (or
edit) a file called STARTUP.WOR in your C:\WINDOWS folder. Then EVERY time
you start MapInfo, the coordinate system will be set to what you want.
e.g. Here's one for setting the system to Australian Map Grid Zone 55

!Workspace
!Version 400
!Charset WindowsLatin1
Set CoordSys Earth Projection 8, 12, "m", 147, 0, 0.9996, 500000, 10000000


Hope this helps,
Chris Perry
Manager Mapping Systems
Parks Victoria
Melbourne Australia
Ph: 613 9816 6800
Fax: 613 9816 7222
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 19 January 1999 11:16
To: [EMAIL PROTECTED]
Subject: MI Arrrrrrg : Set Coordsys Command


     Hi,
        This one really drives me crazy.  I'm trying to update a coloumn 
     with the centroid(x) attribute, as per usual, I have to set the 
     coordsys property.  Problem is, I've forgotten, does someone know the 
     syntax for this command?  
     
        Other misc. notes, Why isn't this well documented?  Please prove me 
     wrong.  Why the heck should one have to use a mapbasic command just to 
     use one of the built in functions?  
     
     Colin Anderson
     Radian International
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to