In which coordinate system do you want to get the centerline positions? Can you share the code that you use for that?