Elizabeth, You should use the distance function. But in order to this with your coordinates you need to specify the coordsys used first. In the MapBasic window in MapInfo enter the following and hit ENTER at the end of each of the two lines: Set CoordSys Table MYTABLE Select ID, Distance(X1, Y1, X2, Y2, "m") "DISTANCE" From MYTABLE Replace MYTABLE with the name of your table (should be mappable) Replace ID with a column name in your table holding some sort of identifying information Peter Horsb�ll M�ller GIS Developer 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 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] http://www.cowi.dk/gis -----Original Message----- From: Elizabeth Caponi [mailto:[EMAIL PROTECTED] Sent: Friday, April 29, 2005 6:02 PM To: [email protected] Subject: MI-L Line Length , or distance between points
I have one table with four columns of data representing start and end points of lines: x1, y1, x2, y2. How do I determine the distances between the points (or line length)? I searched the archives and couldn't find an answer (unless I'm just not looking in the right place). Can anyone help? (I don't have MapBasic) Thanks. Elizabeth Caponi
