I wrote some mapbasic code that will find the corners of section corners. I first used numnodes, objectnodex, and objectnodey to get the coords for all the nodes. Then I used the proportionaloverlap function to determine if the node was at a corner (a node @ the corner has an overlap of .25). I then used the centroid functions to determine which corner it is. For example, the if the lat is greater the centroid but the long is smaller then its the NW corner.
If you are interested in seeing the code I wrote, I can post it; but I'm afraid that it is documented. -----Original Message----- From: Norman, Malcolm [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 1:21 AM To: [EMAIL PROTECTED] Subject: MI-L extracting grid coordinates Hi, can some one tell me how I can extract the four corner x/y coords for regions created using MapInfo's Grid maker. I have been trying to do this through the update column routine in MapInfo, but am beginning the think that I might need to write a bit of MapBasic code instead We need the coord so that raster images can be registered in another web based application. Thanks in advance Regards Malcolm Norman GIS Development Information Services Group Engineering & Design Service Portsmouth City Council Portsmouth UK Tel: (44) 023 9284 1603 Fax (44) 023 9287 6414 Email: [EMAIL PROTECTED] ********************************************************** This e-mail is for the intended recipient only. If an addressing, transmission or other error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or reply to this email. This e-mail may be monitored, read, recorded and retained by Portsmouth City Council. E-mail monitoring/blocking software may be used. ********************************************************** --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9820 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9826
