[postgis-devel] ST_NumPoints vs ST_NPoints

Paul Ramsey pramsey at cleverelephant.ca
Thu Jul 17 12:42:20 PDT 2008


Why would I ever use ST_NumPoints, which fails if handed anything but
a linestring or circular string? It has no merits, it just requires
more work to use... if I want the number of vertices in a polygon, I
can either just use npoints, or I can carefully deconstruct the thing
into rings before using numpoints.  I think we should bind numpoints
to the npoints backend function and call it a day.

P.



More information about the postgis-devel mailing list