You can use the ObjectNodeX and ObjectNodeY. But I do not quite understand what you want. There are (normally) several points composing a polygon. Do you have fields for each node? What if a polygon have 100 or 10000 nodes ?
The MapBasic declaration is pretty mush straight forward: xCoord = ObjectNodeX( object , polygon_num , node_num ) So the code to the MapBasic Window could look like this: Set Coordsys table MYTABLE Update MYTABLE SET X1 = ObjectNodeX(OBJ, 1, 1) 'will update all records with first node in first polygon section Update MYTABLE SET X2 = ObjectNodeX(OBJ, 1, 2) 'will update all records with second node in first polygon section ... ... You may want to update a query of only polygons of your table, instead of the prime table where you might have other object types. HT/Jakob Jakob Lanstorp Senior Consultant Geographical Information & IT COWI A/S Odensevej 95 5260 Odense S. Tel +45 6311 4900 Fax +45 6311 4949 Mob +45 5050 8087 E-mail [EMAIL PROTECTED] http://www.cowi.dk http://www.cowi.com -----Original Message----- From: Alan Silvester [mailto:[EMAIL PROTECTED] Sent: Thursday, September 01, 2005 12:55 PM To: [email protected] Subject: MI-L Updating columns with an objects x and y values Hello everyone, I am trying to update a table of polygons with theire nodes' x and y values. I have created the fields to update, i.e. Easting, Northing 1 etc, however I am having difficulty updating the values. I assume I need to use the ObjectNodeX and ObjectNodeY functions, however I am not having any luck. I also need the values to be British National Grid NGRs Additionally is it possible to do more than one object at a time? Any help would be gratefully received. Alan Alan Silvester, GIS Manager GroundSure Limited Suite 14, Level 4 New England House Brighton BN1 4GH Tel: +44 (0)1273 819500 [EMAIL PROTECTED] This e-mail is private and confidential. Access by or disclosure to anyone other than the intended recipient for any reason other than the business purpose for which the message is intended, is unauthorised. If you are not the intended recipient, you must not act or omit to take any action based on this message. This e-mail and any views or opinions contained in it are subject to any terms and conditions agreed between GroundSure Limited and the recipient. All reasonable precautions have been taken to ensure no viruses are present in this e-mail. As GroundSure Limited cannot accept responsibility for loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use. --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 17705 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 17706
