]> granicus.if.org Git - postgis/commitdiff
Fix comment doc about lwline_split_by_point_to
authorSandro Santilli <strk@keybit.net>
Thu, 12 Apr 2012 07:21:23 +0000 (07:21 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 12 Apr 2012 07:21:23 +0000 (07:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9629 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos_split.c

index 2904e7af9ef773e52adf6b635b96d78e3e9b079f..17646d47abdacae9577b4df1a72fdd05ed822f1b 100644 (file)
@@ -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);