From: Paul Ramsey Date: Mon, 9 Mar 2009 22:01:04 +0000 (+0000) Subject: Don't segmentize geometry if input doesn't pass hasarc X-Git-Tag: 1.4.0b1~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=979efbd545a14ac6c44cb5058cb427c89f620701;p=postgis Don't segmentize geometry if input doesn't pass hasarc git-svn-id: http://svn.osgeo.org/postgis/trunk@3820 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_sqlmm.c b/postgis/lwgeom_sqlmm.c index 8208a147d..9cc1b060f 100644 --- a/postgis/lwgeom_sqlmm.c +++ b/postgis/lwgeom_sqlmm.c @@ -69,6 +69,10 @@ Datum LWGEOM_curve_segmentize(PG_FUNCTION_ARGS) } #endif igeom = lwgeom_deserialize(SERIALIZED_FORM(geom)); + if( ! has_arc(igeom) ) + { + PG_RETURN_POINTER(geom); + } ogeom = lwgeom_segmentize(igeom, perQuad); if(ogeom == NULL) PG_RETURN_NULL(); ret = pglwgeom_serialize(ogeom);