[postgis-devel] Minimum number of points in a POLYGON ring?

David Fuhry dfuhry at acm.org
Mon Sep 22 12:42:40 PDT 2008


Martin Davis wrote:
 >> Having slept on it, my thinking is now along the lines of what I
 >> suggested in my response to David's email - enforce the checks by
 >> default, but provide a stored procedure to allow the checks to be
 >> disabled for the duration of the session. Then people who want to use
 >> PostGIS to process invalid geometries can explicitly invoke this
 >> behaviour and so be aware of the consequences of doing so.
 >>
 > Might this complicate debugging and error reporting?   There would now
 > be two different modes of operation, so some bugs and errors would
 > require specifiying which mode is being used, and require the coder to
 > ensure they tested under that mode.  Not to mention two different
 > pathways through the code...

As I understand it, Mark is proposing that the stored procedure would 
only affect the behavior of the parser, nothing else.

Which I think is the correct approach.

-Dave



More information about the postgis-devel mailing list