Hi Sam, Marc

You are right Sam, you have to set the projection before you update a table
width the Centroide, but there is an easy  way to do this. Just type

SET COORDSYS TABLE MyTabName

in the MapBasic Window.
You can also use a window to set the projection

SET COORDSYS WINDOW FRONTWINDOW()

Peter Laulund
National Survey and Cadastre, Denmark





Sam Kome <[EMAIL PROTECTED]> - 15-01-99 03:27:48

Til:    Marc Pelletier <[EMAIL PROTECTED]>
cc:     MapInfo List <[EMAIL PROTECTED]> (bcc: Peter Laulund/MI/KMS)
Vedr�rende:    Re: MI when is a centroid not a centroid?



Marc,

The Update Table statement may not be using the right projection
information.
The easiest thing I know to tell you to try is:
1) select a record from the table you're going to update
2) From the Table menu, choose Export. Export the selection to MIF (no need
to
export the entire table)
3) open the resulting MIF file in notepad (for instance) and copy the
COORDSYS
line.
4) back to MapInfo, open the MapBasic window and type in: Set
5) paste
6) You should have "Set Coordsys.."  Put the cursor on that line and hit
enter.

7) Try that Update again.

Clear as mud?

Marc Pelletier wrote:

> Hello all,
>
> I have 2 tables, one containing names of towns and the other containing
the
> locations of towns. The names are slightly offset, (don't ask me, I
didn't
> create it), which means that it only looks decent at a certain scale. I
> would like to move the town names to the town location table, and then
use
> autolabelling to label them.
>
> I thought that I would create two new fields in each table and put the
> eastings and northings in them, and then do something or other with
buffers
> which would match up the correct town names with the town locations. When
I
> did an Update Columns using CentroidX(obj) and CentroidY(obj) the
northings
> came out more or less what I would expect, but the CentroidX values are
> totally wacky. The actual maps have the correct positions for the towns,
> and if I click on a symbol the Point Object dialog comes up with a
> meaningful UTM value, but the centroidX values are on the order of
> -10,000,000.  I get the same behaviour for both tables, which are in UTM
> Nad27 zone 13.
>
> Can anyone tell me what's going on?
>
> Also, any ideas on the buffer thing mentioned above?
>
> Thanks
>
> Marc Pelletier
> Data Donkey
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

--
Sam Kome
5341 Three Waters Lane
Graham, NC 27253


----------------------------------------------------------------------
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