From 49a0e802d1e9ba502957c897d3a16f8b6730b981 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 12 Apr 2012 07:21:23 +0000 Subject: [PATCH] Fix comment doc about lwline_split_by_point_to git-svn-id: http://svn.osgeo.org/postgis/trunk@9629 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeom_geos_split.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/liblwgeom/lwgeom_geos_split.c b/liblwgeom/lwgeom_geos_split.c index 2904e7af9..17646d47a 100644 --- a/liblwgeom/lwgeom_geos_split.c +++ b/liblwgeom/lwgeom_geos_split.c @@ -169,11 +169,15 @@ lwline_split_by_point_to(const LWLINE* lwline_in, const LWPOINT* blade_in, * * 1. The point is not on the line or on the boundary * -> Leave collection untouched, return 0 - * 2. The point is on the line + * 2. The point is on the boundary + * -> Push 1 element on the collection: + * o the original line + * -> Return 1 + * 3. The point is in the line * -> Push 2 elements on the collection: * o start_point - cut_point * o cut_point - last_point - * -> Return 1 + * -> Return 2 */ getPoint4d_p(blade_in->point, 0, &pt); -- 2.40.0