[postgis-users] ST_Centroid error on very small polygon

Sandro Santilli strk at keybit.net
Fri Jun 22 03:30:07 PDT 2012


On Fri, Jun 22, 2012 at 11:39:52AM +0200, Sandor Csaba wrote:

> VT=# select ST_AsText(ST_Centroid(ST_GeomFromText('POLYGON((56.5286666667
> 25.2101666667,56.529 25.2105,56.5288333333 25.2103333333,56.5286666667
> 25.2101666667))')));
>         st_astext
> --------------------------
>  GEOMETRYCOLLECTION EMPTY
> (1 row)
...
> Any of you seen such thing?

I can reproduce this. The polygon is valid.
Definitely a bug. Could you file a ticket please ?

--strk;

 Sent from our free software
 http://www.gnu.org/philosophy/free-sw.html



More information about the postgis-users mailing list