> [mailto:[EMAIL PROTECTED]]On Behalf Of Claus Dam
> Sent: March 15, 1999 4:32 AM
> Subject: MI: Converting text objects to point objects
>...
> Updating a column with the label text is simple (ObjectInfo (obj,
> 3)), but placing the point object in the corrrect location is not.
> If I use centroids on the text objects, I get the centroid of the
> object's bounding rectangle, and as a lot of the text objects are
> rotated, the centroid is shifted not only horisontally but also
> vertically.
>
> Is there a way to extract the upper left coordinates of the text
> object, as this is where it is "anchored", i.e. where the mouse
> was originally clicked to place it.

objectgeography(obj,1) gives the x mini coord of the MBR ... 2 for y mini, 3
for x maxi, 4 for y maxi. In your case it would be 1 and 4

The MBR of a text object is defined before its rotation, if any.

Jacques Paris
============================================================
e-mail        [EMAIL PROTECTED]

gis activity (MapInfo mainly)
      http://www.total.net/~rparis/gisproducts.htm
============================================================

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