]> granicus.if.org Git - postgis/commitdiff
Forward port fix to #1595, although there's no way to expose in 2.0
authorSandro Santilli <strk@keybit.net>
Wed, 22 Feb 2012 12:48:58 +0000 (12:48 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 22 Feb 2012 12:48:58 +0000 (12:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9252 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_functions_analytic.c

index 3d4a2857a3fbb8d3882a26ff452b6266cd28a6b8..eee1d740d881965dc1f4e2b87853cf2d2f187fa4 100644 (file)
@@ -794,12 +794,12 @@ Datum LWGEOM_line_substring(PG_FUNCTION_ARGS)
                        {
                                if ( opa->npoints == 1 ) /* Point returned */
                                {
-                                       geoms[g] = (LWGEOM *)lwpoint_construct(iline->srid, NULL, opa);
+                                       geoms[g] = (LWGEOM *)lwpoint_construct(SRID_UNKNOWN, NULL, opa);
                                        homogeneous = LW_FALSE;
                                }
                                else
                                {
-                                       geoms[g] = (LWGEOM *)lwline_construct(iline->srid, NULL, opa);
+                                       geoms[g] = (LWGEOM *)lwline_construct(SRID_UNKNOWN, NULL, opa);
                                }
                                g++;
                        }
@@ -815,7 +815,7 @@ Datum LWGEOM_line_substring(PG_FUNCTION_ARGS)
        }
        else
        {
-               elog(ERROR,"line_interpolate_point: 1st arg isnt a line");
+               elog(ERROR,"line_substring: 1st arg isnt a line");
                PG_RETURN_NULL();
        }