You can actual use the Alter Object method to change to centroid: Alter Object Obj Geography OBJ_GEO_CENTROID, PointObj
HTH, Peter Horsbøll Møller GIS Developer, MTM Geographical Information & IT COWI A/S Odensevej 95 DK-5260 Odense S. Denmark Tel +45 6311 4900 Direct +45 6311 4908 Mob +45 5156 1045 Fax +45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk/gis -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Terry McDonnell Sent: Friday, January 27, 2006 6:48 PM To: Phil MacAuley; [EMAIL PROTECTED] Subject: RE: [MI-L] Altering Polygon Centroids 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 _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
