[geos-devel] [GEOS] #560: GEOSGetCentroid EMPTY returns COLLECTION EMPTY rather than POINT EMPTY

Martin Davis mtnclimb at telus.net
Fri Jun 22 10:27:37 PDT 2012


Makes sense.  I've changed JTS to have this behaviour as well.  Also for 
interiorPoint.


On 6/22/2012 8:14 AM, GEOS wrote:
> #560: GEOSGetCentroid EMPTY returns COLLECTION EMPTY rather than POINT EMPTY
> ------------------------+---------------------------------------------------
>   Reporter:  strk        |       Owner:  geos-devel@…
>       Type:  defect      |      Status:  new
>   Priority:  major       |   Milestone:  3.4.0
> Component:  Default     |     Version:  3.3.4
>   Severity:  Unassigned  |    Keywords:
> ------------------------+---------------------------------------------------
>   Not very important, but as ST_Buffer is guaranteed to return an areal
>   geometry (POLYGON EMPTY in the empty case) I guess Centroid should also
>   return a typed POINT no matter emptyness (for consistency)
>


More information about the geos-devel mailing list