0

Does anyone know how to calculate the exact length of a vector in MapInfo?

Thanks.

user1544745
  • 677
  • 2
  • 8
  • 15

2 Answers2

1

I believe you can use

Dim vector_length As Float
vector_length = ObjectLen(Obj, "m")
Hank
  • 2,456
  • 3
  • 35
  • 83
1

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"))
Cem
  • 176
  • 8