Merge method 'write_points' with 'write_points_with_precision'

See diff