From: Sandro Santilli Date: Wed, 22 Feb 2012 12:48:58 +0000 (+0000) Subject: Forward port fix to #1595, although there's no way to expose in 2.0 X-Git-Tag: 2.0.0alpha6~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1227a4165d1d8e70a4b43494da9b8a4d55fa62;p=postgis Forward port fix to #1595, although there's no way to expose in 2.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@9252 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_functions_analytic.c b/postgis/lwgeom_functions_analytic.c index 3d4a2857a..eee1d740d 100644 --- a/postgis/lwgeom_functions_analytic.c +++ b/postgis/lwgeom_functions_analytic.c @@ -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(); }