<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [postgis-devel] SVN trunk parser modifications stage 2</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>> Right, if the default behavior is not to validate, then it will load<BR>
> just fine.  But I have been assuming that the default behavior will be<BR>
> to validate, since all of Mark's comments point in this direction:<BR>
<BR>
On 2008-10-20, Mark Cave-Ayland wrote:<BR>
 >     0 - No checking; all checks are disabled<BR>
 >     1 - OGC level checking; check for minimum numbers of points and<BR>
 >         closure of polygons<BR>
 >     2 - GEOS level validation; check input geometries are valid as<BR>
 >         per the GEOS IsValid() function<BR>
 ><BR>
 > The first time the parser/unparser is invoked then we check to see if<BR>
 > this setting is present; if it is then the current parser check level is<BR>
 > set this value. Otherwise a default value of 1 is chosen.<BR>
<BR>
Hmm I interpreted that to mean 1 is the current non-breaking behavior which is mild checking for non-closed rings etc.. <BR>
For example if I were to stuff this in<BR>
<BR>
SELECT ST_GeomFromEWKT('POLYGON((1 2 3, 4 5 6, 2 3 4))')<BR>
<BR>
Even in current installs it would not load.  So the 0 is actually a new feature - where we let true aliens such as the above into the mixture.<BR>
<BR>
I was thinking of overloading instead of GeomFrom..WithStrict, because I figured first pass around<BR>
we will not be able to control at the GUC level because of Mark's observations, but by overloading we will not be changing interfaces.<BR>
<BR>
So an install with no postgis GUC ability would default the ST_GeomFromEWKT, ST_GeomFromEWKB to (hmm I guess 1) or use the overloaded functions to force stricter or less strict behavior and one with GUC ability later on would be<BR>
able to read default from GUC instead of assuming 1.<BR>
<BR>
Hope that helps,<BR>
Regina<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>