<div dir="ltr">Most annoying agitation! Because it's backed with sound reasoning and clear improvement to current state.<div><br></div><div>So, I'm open to make these changes. It's now or never right.</div><div><br></div><div>However, one limiting factor is that I'm fairly certain aggregate functions do not support the DEFAULT keyword for parameters (affecting ST_AsMVT).</div><div><br></div><div>/Björn<br><div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-07 22:39 GMT+02:00 Paul Ramsey <span dir="ltr"><<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Actually, no, I’d like to see signature changes… in particular, <div><br></div><div>bytea ST_AsMVT(text layer_<wbr>name, anyelement row,  int4 extent default 4096, text geom_name default NULL);</div><div>geometry ST_AsMVTGeom(<wbr>geometry geom, box2d bounds, int4 extent default 4096, int4 buffer default 0, bool clip_geom default true);<br>bytea ST_AsGeobuf(anyelement <wbr>row, text geom_name default NULL);</div><div><br>Then the presence of (geom_name == NULL) implies “automagically use the first geometry you find”</div><div>And the null checks on extent, buffer, clip_geom can be dropped since PgSQL will automatically in-fill the defaults</div><div><br></div><div>You don’t have to do the above, I’m just agitating for it.</div><div>Agitate, agitate.</div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div><div>P.<br><br></div></font></span><div><div class="gmail-h5"><div><br></div><div><br><div><blockquote type="cite"><div>On Sep 7, 2017, at 1:34 PM, Björn Harrtell <<a href="mailto:bjorn.harrtell@gmail.com" target="_blank">bjorn.harrtell@gmail.com</a>> wrote:</div><br class="gmail-m_-2507188723144682639Apple-interchange-newline"><div><div dir="ltr">So we are agreed that there will be no signature change? Instead I will work towards an implementation and documentation change for geom_name to the following:<div><br></div><div>"geom_name is the name of the geometry column in the row data. If NULL it will default to use the first geometry column in the row data."</div><div><div><div><br></div><div>/Björn<br><div class="gmail_extra"><br><div class="gmail_quote">2017-09-07 21:08 GMT+02:00 Paul Ramsey <span dir="ltr"><<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>Yes, take the first one unless the geom_name is provided. So geom_name would default to NULL and NULL would mean “the first one you find"</div><span class="gmail-m_-2507188723144682639gmail-HOEnZb"><font color="#888888"><div>P</div></font></span><div><div class="gmail-m_-2507188723144682639gmail-h5"><div><br></div><br><div><blockquote type="cite"><div>On Sep 7, 2017, at 12:06 PM, Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>> wrote:</div><br class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-interchange-newline"><div><div class="gmail-m_-2507188723144682639gmail-m_-131321399945203073WordSection1" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Just to add to this to make sure I'm following:<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">For this question:<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">> Also, a bit late in the day, but why the text parameter "geom_name" in these various signatures, instead of automagically finding it in the row?<u></u><u></u></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">> ?<u></u><u></u></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)">> P<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)">Is it ever possible that an MVT row could have more than one geometry column.  I assume so.  If so I think it might be good to keep the geom_name field though perhaps make it a default option and in that case it picks the first one it finds.  Similar to how we do pgsql2shp where you can explicitly set the geometry column or have pgsql2shp do it's thing and just pick the first one it finds.<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)">Thanks,<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)">Regina<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div><div style="border-style:solid none none;border-top-color:rgb(225,225,225);border-top-width:1pt;padding:3pt 0in 0in"><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span>Regina Obe [<a href="mailto:lr@pcorp.us" style="color:purple;text-decoration:underline" target="_blank">mailto:lr@pcorp.us</a>]<span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span><br><b>Sent:</b><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span>Thursday, September 07, 2017 2:57 PM<br><b>To:</b><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span>'PostGIS Development Discussion' <<a href="mailto:postgis-devel@lists.osgeo.org" style="color:purple;text-decoration:underline" target="_blank">postgis-devel@lists.osgeo.org</a><wbr>>; 'Björn Harrtell' <<a href="mailto:bjorn@wololo.org" style="color:purple;text-decoration:underline" target="_blank">bjorn@wololo.org</a>><br><b>Cc:</b><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span>'Paul Ramsey' <<a href="mailto:pramsey@cleverelephant.ca" style="color:purple;text-decoration:underline" target="_blank">pramsey@cleverelephant.ca</a>><br><b>Subject:</b><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span>RE: [postgis-devel] geom_name<u></u><u></u></span></div></div></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div><div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(31,73,125)">><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span></span>We should ask about API changing, I'm sure Regina would say we're done, which effectively means done-for-all-time, since changing public function signatures is basically impossible one they are done.<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><br><span style="color:rgb(31,73,125)">><span class="gmail-m_-2507188723144682639gmail-m_-131321399945203073Apple-converted-space"> </span></span>P<u></u><u></u></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I'm fine with you changing the API now before final 2.4.0 release.  I promised no new functions, not no new API changes to new 2.4 functions.<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I think it would be good to drop the old signature in the postgis_drop_before.sql  since some people have already started using the MVT functions.<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If it impacts existing code, we should also put in BREAKING CHANGE for postgis -2.4.0  the change so people are warned and know how to change their code if they were using an earlier postgis 2.4.0dev<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks,<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regina<u></u><u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><div style="margin:0in 0in 0.0001pt 0.5in;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">On Thu, Sep 7, 2017 at 10:45 AM, Björn Harrtell <<a href="mailto:bjorn.harrtell@gmail.com" style="color:purple;text-decoration:underline" target="_blank">bjorn.harrtell@gmail.com</a>> wrote:<u></u><u></u></div><blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt" type="cite"><div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">Hi Paul,<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">No good reason except that I couldn't find out a deterministic way to find it and put it out of my mind after that. :(<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">With some guidance I'll be happy to revise the API if it's not too late at this point.<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)"><u></u> <u></u></span></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)">/Björn<u></u><u></u></span></div></div><div><div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><u></u> <u></u></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">2017-09-07 19:41 GMT+02:00 Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" style="color:purple;text-decoration:underline" target="_blank">pramsey@cleverelephant.ca</a>>:<u></u><u></u></div><blockquote style="border-style:none none none solid;border-left-color:rgb(204,204,204);border-left-width:1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt" type="cite"><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">Also, a bit late in the day, but why the text parameter "geom_name" in these various signatures, instead of automagically finding it in the row?<u></u><u></u></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif">?<u></u><u></u></div></div><div><div style="margin:0in 0in 0.0001pt 1in;font-size:12pt;font-family:"Times New Roman",serif"><span style="color:rgb(136,136,136)">P</span></div></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></div></div></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div></div></div>