Hello,
I am trying to make a very simple MapBasic program to change the
"Global" MapInfo projection, the equivalent of typing: "Set Coordsys
Earth projection (whatever the projection may be)" In the MapBasic
Window.
When I execute the line:
Run Command "Set Coordsys Earth projection "whatever the projection may
be"
It changes the current application Projection but does not change the
"global" Mapinfo projection.
The reason I want to do this is that when objects are labelled with the
function CentroidX or CentroidY they automatically take the "Global"
MapInfo Projection and do not use the table projection, Layout
Projection or map projection. The same happens when you want to update
a column with the same CentroidX or CentroidY Functions.
I included the program below for reference,
Include "MapBasic.def"
Declare Sub Main
Declare Sub NewCoord
Sub Main
Dialog
Title "Set a Global Projection"
Control StaticText
Title "Choose a Projection"
Control Button
Title "Choose Projection"
Calling NewCoord
End Sub
Sub NewCoord
Dim NewSys as String
NewSys=ChooseProjection$("",True)
NewSys="Set " + NewSys
Dialog Remove
Note NewSys
Run Command NewSys
End Sub
Thank you for taking the time to at least read,
Nicolas Muszynski
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12867