Does anyone know how to calculate the exact length of a vector in MapInfo?
Thanks.
Does anyone know how to calculate the exact length of a vector in MapInfo?
Thanks.
I believe you can use
Dim vector_length As Float
vector_length = ObjectLen(Obj, "m")
I would prefere to use CartesianObjectLen instead of ObjectLen
CartesianObjectLen vs ObjectLen
dim o as object
select * from TABLE where Unique Column = Unique Code into sel
o=sel.obj
print(CartesianObjectLen(o, "m"))