Wednesday, August 12, 2015

Calculate Length of Line/Obj - Mapinfo

http://testdrive.mapinfo.com/TechSupp/MIProd.nsf/3572165bbc9c316e8525712500769409/a91f1b384e0b5dbe85256a7a006cfc40?OpenDocument&Highlight=0,Objectlen

Summary:
Determining the length of line segments.

Question:
A file of polylines representing Telco fiber is constantly being updated. How can the length of each polyline/line be updated into a browser?

Answer:
Add a column with a numeric data type (i.e. Segment_Length). Once the column is added, choose Table>Update Column update this new column with the following function in the Value text box:

objectlen(obj,"km") 



The new column will be updated with the length of each line segment in the desired units "km", "mi", etc.