[PostGIS] #5868: Add Function to Detect Valid Polygons with Point Touching Rings

PostGIS trac at osgeo.org
Fri Mar 21 11:03:20 PDT 2025


#5868: Add Function to Detect Valid Polygons with Point Touching Rings
---------------------------+---------------------------
  Reporter:  gravitystorm  |      Owner:  pramsey
      Type:  defect        |     Status:  new
  Priority:  medium        |  Milestone:  PostGIS 3.5.3
 Component:  postgis       |    Version:  3.4.x
Resolution:                |   Keywords:
---------------------------+---------------------------
Comment (by mdavis):

 Thanks for the clarification.

 One option is to make a SQL function to check whether the shell ring of a
 valid polygon and the inner hole rings intersect.

 In fact, there is code in GEOS to transform polygons with touching holes
 into equivalent self-touching rings (AKA inverted/exverted rings).  This
 currently isn't exposed, but it could be - either as a PostGIS function,
 or simply as a preprocessing step inside the affected CG functions.
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5868#comment:6>
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