[postgis-tickets] [PostGIS] #3823: ST_MinimumBoundingCircle creates invalid geometries

PostGIS trac at osgeo.org
Wed Aug 30 08:59:56 PDT 2017


#3823: ST_MinimumBoundingCircle creates invalid geometries
-----------------------+--------------------------------------
  Reporter:  cswingle  |      Owner:  pramsey
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 2.3.4
 Component:  postgis   |    Version:  2.3.x
Resolution:            |   Keywords:  ST_MinimumBoundingCircle
-----------------------+--------------------------------------

Comment (by dbaston):

 Very helpful, thanks.  The computed radius of NaN is pretty suspect!

 This behavior isn't related to the dependent libraries, but it could
 conceivably vary from machine to machine based on the compiler used, etc.

 I'm guessing this has something to do with a the small number of
 coordinates and presence of a duplicate coordinate.

 As a workaround, I'm almost certain you'll see correct values if you wrap
 your inputs in {{{ST_UnaryUnion}}}.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3823#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list