Commit d3533ba8 authored by Olivier Courtin's avatar Olivier Courtin

Add Triangle support for ST_NPoints. Thanks again to Regina for this report. Related to #596

git-svn-id: http://svn.osgeo.org/postgis/[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent d99165f3
......@@ -243,6 +243,7 @@ lwgeom_npoints(uchar *serialized)
LWLINE *line=NULL;
LWPOINT *point=NULL;
LWPOLY *poly=NULL;
LWTRIANGLE *triangle=NULL;
LWCIRCSTRING *curve=NULL;
uchar *subgeom=NULL;
......@@ -270,6 +271,13 @@ lwgeom_npoints(uchar *serialized)
continue;
}
triangle = lwgeom_gettriangle_inspected(inspected, i);
if (triangle != NULL)
{
npoints += triangle->points->npoints;
continue;
}
curve = lwgeom_getcircstring_inspected(inspected, i);
if (curve != NULL)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment