Hi Kazuhiko,
If CentroidX/Y do not work have you tried ObjectGeography - see below.
****************************************************************************
*****
'*** INCLUDES ***
Include "mapbasic.def"
Declare Sub Main
Sub Main
Dim snLoop As SmallInt
Dim x, y as Float
For snLoop = 1 to TableInfo(TEST, TAB_INFO_NROWS)
Fetch Rec snLoop from TEST
x = ObjectGeography(TEST.obj, OBJ_GEO_POINTX)
y = ObjectGeography(TEST.obj, OBJ_GEO_POINTY)
Print x + " " + y
Next
End Sub
****************************************************************************
*****
Hope this helps,
Mark Crompton
-----Original Message-----
From: Kazuhiko Yamashita [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 18, 1999 1:03 AM
To: Mapinfo ML
Subject: MI How to extract cursor location from point objects
Hi People outhere,
Does anyone know how to pick up cursor locations from point objects?
I digitized tidal chart on paper as point objects and tried to pick up
their cursor locations with CentroidX and CentroidY, Table > Update
Column.
Location X is not CentroidX. Location Y is not CentoroidY either.
So I made a non smart temporary sulution to adjust Centroid to Location
as below.
Location X ....111189*CentroidX (R^2=1)
Location Y ....111192*CentroidY (R^2=1)
CentroidX LocationX CentoroidY LocationY
0.000397 44.16 0.002598 288.88
0.000449 49.87 0.002542 282.60
0.000540 59.99 0.002447 272.14
0.000631 70.11 0.002362 262.67
0.000720 80.04 0.002262 251.51
0.000810 90.07 0.002142 238.15
0.000896 99.60 0.002050 227.98
0.000988 109.81 0.001973 219.42
0.001075 119.51 0.001924 213.95
0.001165 129.58 0.001909 212.28
0.001255 139.55 0.001909 212.21
0.001345 149.60 0.001932 214.84
0.001435 159.53 0.002002 222.56
0.001523 169.33 0.002107 234.28
0.001614 179.43 0.002215 246.30
0.001703 189.35 0.002308 256.63
0.001796 199.65 0.002406 267.55
0.001883 209.36 0.002503 278.27
0.001972 219.28 0.002581 286.99
0.002067 229.82 0.002637 293.22
0.002155 239.67 0.002660 295.75
0.002248 250.00 0.002652 294.88
I suppose someone knows a smarter and direct solution. Please tell me
how to do it.
One of our major islands, Kyushu was seriously damaged by high sea level
of a typhoon on Sept. 24.
It was at high tide of spring tide and more than twenty aged people in a
small town were killed. No warning system was working for them. Now
local people are measuring tide with an old fashoned analog tide meter
Thanks in advance.
Hiko
Kazuhiko Yamashita
Divsion of Marine Engineering
Kokusai Kogyo co. ltd
3-6-3 Hakataeki-higashi, Hakata-ku, Fukuoka 812-0013 Japan
Phone: +81-92-431-7277 FAX: +81-92-431-7275
----------------------------------------------------------------------
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]