<HTML dir=ltr><HEAD><TITLE>Re: [Fwd: Re: [postgis-devel] Issue 35 in postgis: Comments on Postgis Functions]</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText41548 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Well I was back-porting per Paul's request so relevant changes would appear in the upcoming 1.3.4, but now that we are making so many changes, I guess its best to just cut the chord.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>I don't think the documentation as it stands has any new functions listed that will not be available in the 1.3.4 though.&nbsp; So on the one hand it does seem a shame to cut off a not yet released version in our efforts.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Regina</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Kevin Neufeld [mailto:kneufeld@refractions.net]<BR><B>Sent:</B> Tue 7/8/2008 1:29 AM<BR><B>To:</B> Obe, Regina<BR><B>Cc:</B> Dane Springmeyer<BR><B>Subject:</B> Re: [Fwd: Re: [postgis-devel] Issue 35 in postgis: Comments on Postgis Functions]<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>That's a good question.&nbsp; Are patches usually back-ported to earlier<BR>versions?&nbsp; Version 1.4 will likely have new methods in addition to new<BR>docs.&nbsp; Are we going to have to back-port all the new functionality as<BR>well?&nbsp; I'm tempted to leave 1.3 as a static version, but I think it's a<BR>question you should push to devel.&nbsp; Maybe Mark or Paul will have other<BR>thoughts.<BR><BR>Cheers,<BR>Kevin<BR><BR>Obe, Regina wrote:<BR>&gt; Sure that works for me.&nbsp; Only question I have I hadn't moved the<BR>&gt; changes I made in trunk to branch 1.3 even though they are relevant<BR>&gt; for branch 1.3.&nbsp; Do we not care and are splitting off from branch 1.3<BR>&gt; at this point.<BR>&gt;&nbsp;<BR>&gt; Thanks,<BR>&gt; Regina<BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; *From:* Kevin Neufeld [<A href="mailto:kneufeld@refractions.net">mailto:kneufeld@refractions.net</A>]<BR>&gt; *Sent:* Mon 7/7/2008 10:59 PM<BR>&gt; *To:* Obe, Regina; Dane Springmeyer<BR>&gt; *Subject:* [Fwd: Re: [postgis-devel] Issue 35 in postgis: Comments on<BR>&gt; Postgis Functions]<BR>&gt;<BR>&gt; The next step I would like to do is split the postgis.xml doc into<BR>&gt; separate files so it's more manageable - one for every chapter.&nbsp; If it's<BR>&gt; ok with you two, I'll make the change tonite.. making sure to checkout<BR>&gt; the latest commit so we don't lose any of Regina's useful commits in the<BR>&gt; process. :)<BR>&gt;<BR>&gt; Cheers,<BR>&gt; Kevin<BR>&gt;<BR>&gt; -------- Original Message --------<BR>&gt; Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Re: [postgis-devel] Issue 35 in postgis: Comments on<BR>&gt; Postgis<BR>&gt; Functions<BR>&gt; Date:&nbsp;&nbsp; Mon, 07 Jul 2008 19:56:36 -0700<BR>&gt; From:&nbsp;&nbsp; Kevin Neufeld &lt;kneufeld@refractions.net&gt;<BR>&gt; To:&nbsp;&nbsp;&nbsp;&nbsp; PostGIS Development Discussion<BR>&gt; &lt;postgis-devel@postgis.refractions.net&gt;<BR>&gt; References:<BR>&gt; &lt;0016e64355defbe5a00451258f66@google.com&gt;&lt;53F9CF533E1AA14EA1F8C5C08ABC08D20197A0FD@ZDND.DND.boston.cob&gt;<BR>&gt; &lt;60A74853-AB5F-4B92-A46C-31C822ACDA07@hailmail.net&gt;<BR>&gt; &lt;53F9CF533E1AA14EA1F8C5C08ABC08D20453F736@ZDND.DND.boston.cob&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Regina, Dane,<BR>&gt;<BR>&gt; Yes, I agree that we should keep the issue around a bit so it stays on<BR>&gt; our TODO list.<BR>&gt;<BR>&gt; In my spare time, I've been working on coming up with a template we<BR>&gt; could use for all the functions in the documentation.&nbsp; I still think<BR>&gt; that having every function as a refentry is the way to go instead of the<BR>&gt; current listitem we currently employ.&nbsp; I'm close ... just wrestling with<BR>&gt; DocBook, trying to make it jump though hoops as I try to customize the<BR>&gt; automatic generation of the TOC.<BR>&gt;<BR>&gt; Unlike the multiple term issue you were having, the refentry tag also<BR>&gt; permits having multiple function prototypes under the same refentry.&nbsp; So<BR>&gt; the same refpurpose tag could be applied as function comments for all<BR>&gt; overridden prototypes.&nbsp; The concept seems to work pretty well... it just<BR>&gt; the silly TOC that has me tied up in knots.<BR>&gt;<BR>&gt; Cheers,<BR>&gt; Kevin<BR>&gt;<BR>&gt; Obe, Regina wrote:<BR>&gt; &gt; Dane,<BR>&gt; &gt;<BR>&gt; &gt; Thanks.&nbsp; That would help.&nbsp; I've started to fix these as I go along<BR>&gt; &gt; adding examples.<BR>&gt; &gt;<BR>&gt; &gt; I don't know if we should get rid of issue 35 though.&nbsp; I think the<BR>&gt; &gt; intent is still the same its just the actual implementation may be<BR>&gt; &gt; different and I was looking at your python and your comments as<BR>&gt; &gt; guidelines of what is wrong with the documentation.<BR>&gt; &gt;<BR>&gt; &gt; Is there an issue with having more than one &lt;term&gt; in the<BR>&gt; &gt; varlistentry.&nbsp; The html xsl parse just seems to put in a , when<BR>&gt; &gt; forming the html so I assume its okay to do that.<BR>&gt; &gt;<BR>&gt; &gt; E.g. I changed Add Point entry to:<BR>&gt; &gt;<BR>&gt; &gt;&nbsp; &lt;varlistentry&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;term&gt;ST_AddPoint(linestring geometry, point geometry)&lt;/term&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;term&gt;ST_AddPoint(linestring geometry, point geometry, position<BR>&gt; &gt; integer)&lt;/term&gt;<BR>&gt; &gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;listitem&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;para&gt;Adds a point to a LineString before point<BR>&gt; &gt; &amp;lt;position&amp;gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (0-based index). Third parameter can be omitted or set<BR>&gt; &gt; to -1 for<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; appending.&lt;/para&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;programlisting&gt;<BR>&gt; &gt; --guarantee all linestrings in a table are closed<BR>&gt; &gt; --by adding the start point of each linestring to the end of the line<BR>&gt; &gt; string<BR>&gt; &gt; --only for those that are not closed<BR>&gt; &gt; UPDATE sometable<BR>&gt; &gt;&nbsp; SET the_geom = ST_AddPoint(the_geom, ST_StartPoint(the_geom))<BR>&gt; &gt;&nbsp; FROM sometable<BR>&gt; &gt;&nbsp; WHERE ST_IsClosed(the_geom) = false;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/programlisting&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/listitem&gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/varlistentry&gt;<BR>&gt; &gt;<BR>&gt; &gt; I was next going to attempt to write a postgis_comments.xsl (finally I<BR>&gt; &gt; have a use for this xslt pocket book I have lying around :)) .&nbsp; I<BR>&gt; &gt; haven't done that yet though and not sure I'm the best person<BR>&gt; &gt; to attempt that.<BR>&gt; &gt;<BR>&gt; &gt; Thanks,<BR>&gt; &gt; Regina<BR>&gt; &gt;<BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt; *From:* postgis-devel-bounces@postgis.refractions.net<BR>&gt; &gt; [<A href="mailto:postgis-devel-bounces@postgis.refractions.net">mailto:postgis-devel-bounces@postgis.refractions.net</A>] *On Behalf Of<BR>&gt; &gt; *Dane Springmeyer<BR>&gt; &gt; *Sent:* Monday, July 07, 2008 1:59 PM<BR>&gt; &gt; *To:* PostGIS Development Discussion<BR>&gt; &gt; *Subject:* Re: [postgis-devel] Issue 35 in postgis: Comments on<BR>&gt; &gt; Postgis Functions<BR>&gt; &gt;<BR>&gt; &gt; Regina and Paul,<BR>&gt; &gt;<BR>&gt; &gt; I agree that a python script dependency for this step isn't ideal, and<BR>&gt; &gt; I'm in no way committed to the idea. It was simply an easy way for me<BR>&gt; &gt; to start working on the task, and I was not anticipating its<BR>&gt; &gt; consideration as a dependency.<BR>&gt; &gt;<BR>&gt; &gt; I propose we close this issue 35 as invalid and cook up another one<BR>&gt; &gt; based on Regina's sweet plan. How does that sound?<BR>&gt; &gt;<BR>&gt; &gt; More comments below...<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; On Jul 6, 2008, at 1:57 AM, Obe, Regina wrote:<BR>&gt; &gt;<BR>&gt; &gt;&gt; Paul,<BR>&gt; &gt;&gt; You must have been reading my mind when you selectively picked this<BR>&gt; &gt;&gt; one and the proj one to not comment about.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Regarding this I have been looking at Dane's submission and as Paul<BR>&gt; &gt;&gt; mentioned, off list, its not good to add any more dependencies than<BR>&gt; &gt;&gt; we need to.&nbsp; This would require adding Python and Python's pgsql<BR>&gt; &gt;&gt; library to use his source.<BR>&gt; &gt;<BR>&gt; &gt; Yes, it requires Python and the Psycopg2 driver as well as an existing<BR>&gt; &gt; db to match function names against (due to variable argument syntax).<BR>&gt; &gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; My main gripe with it is that it requires a postgis_template db to be<BR>&gt; &gt;&gt; loaded to build the comments.&nbsp; It seems the main reason for that is<BR>&gt; &gt;&gt; to look up the arg signature in the procname which would seem to be<BR>&gt; &gt;&gt; unnecessary if our argument list in the documents could be mapped to<BR>&gt; &gt;&gt; the postgresql function signature.<BR>&gt; &gt;<BR>&gt; &gt; Exactly. It could easily be modified to match against an xml file (or<BR>&gt; &gt; internal python data type) that stores the exact function names and<BR>&gt; &gt; arguments, but having the docs more closely match the actual function<BR>&gt; &gt; definitions would be ideal.<BR>&gt; &gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; In many cases they do or almost do.&nbsp; But we have cases like<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; ST_MakePolygon(linestring, [linestring[]])<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; which if we changed to<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; ST_MakePolygon(linestring geometry, linestrings geometry[])<BR>&gt; &gt;&gt; ST_MakePolygon(linestring)<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; would work.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; the only issue I can think of are these functions with multi-signatures<BR>&gt; &gt;&gt; ST_AddPoint(linestring, point, [&lt;position&gt;])<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; I personally would prefer see it listed twice as<BR>&gt; &gt;&gt; ST_AddPoint(linestring geometry, point geometry)<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; ST_AddPoint(linestring geometry, point geometry, position integer)<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; since I'm not convinced non-programmers don't find that nomenclature<BR>&gt; &gt;&gt; confusing.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; then I'm thinking we can generate the postgis_comments.sql.in from a<BR>&gt; &gt;&gt; simple<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; postgis_comments.xsl&nbsp; file that parses the postgis.xml thus not<BR>&gt; &gt;&gt; needing another dependency.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Although I could very well be trivializing the simplicity of this.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Does anyone have issues with me changing the doc accordingly.<BR>&gt; &gt;&gt;<BR>&gt; &gt;<BR>&gt; &gt; This sounds excellent. I'd be happy to help with this renaming if it<BR>&gt; &gt; is needed.<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; Cheers,<BR>&gt; &gt;<BR>&gt; &gt; Dane<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&gt; Thanks,<BR>&gt; &gt;&gt; Regina<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt;&gt; *From:* postgis-devel-bounces@postgis.refractions.net<BR>&gt; &gt;&gt; &lt;<A href="mailto:postgis-devel-bounces@postgis.refractions.net">mailto:postgis-devel-bounces@postgis.refractions.net</A>&gt; on behalf of<BR>&gt; &gt;&gt; codesite-noreply@google.com &lt;<A href="mailto:codesite-noreply@google.com">mailto:codesite-noreply@google.com</A>&gt;<BR>&gt; &gt;&gt; *Sent:* Thu 7/3/2008 5:47 PM<BR>&gt; &gt;&gt; *To:* postgis-devel@postgis.refractions.net<BR>&gt; &gt;&gt; &lt;<A href="mailto:postgis-devel@postgis.refractions.net">mailto:postgis-devel@postgis.refractions.net</A>&gt;<BR>&gt; &gt;&gt; *Subject:* [postgis-devel] Issue 35 in postgis: Comments on Postgis<BR>&gt; &gt;&gt; Functions<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Issue 35: Comments on Postgis Functions<BR>&gt; &gt;&gt; <A href="http://code.google.com/p/postgis/issues/detail?id=35">http://code.google.com/p/postgis/issues/detail?id=35</A><BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Comment #2 by pwramsey3:<BR>&gt; &gt;&gt; (No comment was entered for this change.)<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Issue attribute updates:<BR>&gt; &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Labels: -Type-Defect Type-Enhancement<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; --<BR>&gt; &gt;&gt; You received this message because you are listed in the owner<BR>&gt; &gt;&gt; or CC fields of this issue, or because you starred this issue.<BR>&gt; &gt;&gt; You may adjust your issue notification preferences at:<BR>&gt; &gt;&gt; <A href="http://code.google.com/hosting/settings">http://code.google.com/hosting/settings</A><BR>&gt; &gt;&gt; _______________________________________________<BR>&gt; &gt;&gt; postgis-devel mailing list<BR>&gt; &gt;&gt; postgis-devel@postgis.refractions.net<BR>&gt; &gt;&gt; &lt;<A href="mailto:postgis-devel@postgis.refractions.net">mailto:postgis-devel@postgis.refractions.net</A>&gt;<BR>&gt; &gt;&gt; <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; *The substance of this message, including any attachments, may be<BR>&gt; &gt;&gt; confidential, legally privileged and/or exempt from disclosure<BR>&gt; &gt;&gt; pursuant to Massachusetts law. It is intended solely for the<BR>&gt; &gt;&gt; addressee. If you received this in error, please contact the sender<BR>&gt; &gt;&gt; and delete the material from any computer. *<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; *Help make the earth a greener place. If at all possible resist<BR>&gt; &gt;&gt; printing this email and join us in saving paper. *<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; **<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; **<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; _______________________________________________<BR>&gt; &gt;&gt; postgis-devel mailing list<BR>&gt; &gt;&gt; postgis-devel@postgis.refractions.net<BR>&gt; &gt;&gt; &lt;<A href="mailto:postgis-devel@postgis.refractions.net">mailto:postgis-devel@postgis.refractions.net</A>&gt;<BR>&gt; &gt;&gt; <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>&gt; &gt;<BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; *The substance of this message, including any attachments, may be<BR>&gt; &gt; confidential, legally privileged and/or exempt from disclosure<BR>&gt; &gt; pursuant to Massachusetts law. It is intended solely for the<BR>&gt; &gt; addressee. If you received this in error, please contact the sender<BR>&gt; &gt; and delete the material from any computer. *<BR>&gt; &gt;<BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; * Help make the earth a greener place. If at all possible resist<BR>&gt; &gt; printing this email and join us in saving paper. *<BR>&gt; &gt;<BR>&gt; &gt; * *<BR>&gt; &gt;<BR>&gt; &gt; * *<BR>&gt; &gt;<BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; postgis-devel mailing list<BR>&gt; &gt; postgis-devel@postgis.refractions.net<BR>&gt; &gt; <A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR>&gt; &gt;&nbsp;<BR>&gt;<BR>&gt;<BR></FONT></P></DIV></BODY></HTML>