Phil

Aren't you mixing up your ObjectGeography() function params with Alter
Object ... Geography?
Looking at my code I see that I used the same construct but (can't
remember why) it's commented out and replaced with, in your case:

Alter Object objcomm Geography OBJ_GEO_POINTX, anchor_x
Alter Object objcomm Geography OBJ_GEO_POINTY, anchor_y

I assume I couln't get any joy either! :-)

If you look at Help for Alter Object you'll see that OBJ_GEO_CENTROID is
not one of the Geography clause params.

Terry

-----Original Message-----
From: Phil MacAuley [mailto:[EMAIL PROTECTED] 
Sent: 27 January 2006 17:31
To: Terry McDonnell
Subject: RE: [MI-L] Altering Polygon Centroids

Thanks for your reply Terry.  I have tried the following, but can't
figure why it is not doing anything???

fetch first from comm
while not eot(comm)

        objcomm = comm.obj
        Alter Object objcomm Geography OBJ_GEO_CENTROID,
createpoint(comm.anchor_x,comm.anchor_y)

        fetch next from comm
wend 

Phil

-----Original Message-----
From: Terry McDonnell [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 9:56 AM
To: Phil MacAuley
Subject: RE: [MI-L] Altering Polygon Centroids

Phil

"Alter Object Geography" any good for you?

E.g.
    Alter Object loObj Geography OBJ_GEO_POINTX, lnNewX 

Where loObj is an object var of the Object And lnNewX is Integer to hold
an integer x co-ord.

HTH

Terry McDonnell

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phil
MacAuley
Sent: 27 January 2006 16:45
To: Terry McDonnell
Subject: [MI-L] Altering Polygon Centroids

Hello,
 
Does anyone know if there a way to alter polygon centroids, other than
manually.  I have a table of polygons that contains X and Y fields.  I
would like my labels to show at the X, Y coordinates, not at the polygon
centroids.
 
Thanks,
Phil
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l







_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to