pub fn to_polyline<P: ShapePoint>( geometry: &Geometry, dimension: Dimension, index: usize, ) -> Result<GenericPolyline<P>>