Dear Jure
When you run your update column MapInfo is running your MapBasic
statement with its default map projection of lat long.
Even though you map window is set to the projection that you want ( I am
assuming this because you coordinate read out is what you want) mapbasic
always starts out with default lat long.
Iy you were writing MapBasic programs this potential problem is still
there. If you ask MapBasic to create a map with say British National
Grid all the internal commands are still in Lat Long.
You can overcome this by typing in a set coordsys clause into the
MapBasic Window. ( If you are writing a MapBasic program then you put
the set coordsys clause into you program).
The coordsys clause that you use obviously needs to be the one you have
when you did your digitising.
One way of exectuting this code is:-
>From Options menu select show mapbasic window
Now create a temporary table and in the New Table Structure Dialog set
the projection you want. When you have completed this in your mapbasic
window you will see the maps projection setting which you could cut and
paste to a set coordsys. If you alter the map centre position to a
sensible one then Mapbasic will set the coordsys itself and you will not
need to even do this!
Now when you run update column your X and Y will get set to the values
you were expecting.
Hope this helps
Bob
By Design
Wales -UK
In message <[EMAIL PROTECTED]>, Jure Ravnik
<[EMAIL PROTECTED]> writes
>Hi all,
>
>What I want to do is pretty simple. I created a table
>of points (well locations for measuring groundwater depth).
>The table is in Non-earth(meters) projection and has
>three fields. A character one to describe well name and x,y.
>
>I drew the well location by hand (clicked them with a mouse referring
>to the bitmap underneath.
>
>Now, I'd like to have a list of well locations.
>Referring to the page 322 of MI 5.0 manual I chose
>update column :
>
>Table to Update : my_table
>Column to update : x
>Get Value from Table : my_table
>Value : CentroidX(obj)
>
>My zeros in the table change to a strange set of numbers:
>A well at : X : 553267.215m and Y: 156774.822m ( I got those by clicking on the
>point object)
>corresponds to x : 4.975654 and y:1.409911
>
>I'd like to have the correct locations in the table.
>
>TIA
>
>Jure Ravnik
>
>Ecological Engineering Institute
>Ljubljanska 9
>2000 Maribor
>Slovenia
>Tel:+ 386 62 300 48 11
>Fax:+ 386 62 300 48 35
>mailto:[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]
--
Bob Young
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]