<div class="gmail_quote">On Sat, Jul 9, 2011 at 4:48 AM, Florian Lohoff <span dir="ltr"><<a href="mailto:f@zz.de">f@zz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Fri, Jul 08, 2011 at 09:34:35AM -0500, Ian Dees wrote:<br>
> On Fri, Jul 8, 2011 at 9:12 AM, Florian Lohoff <<a href="mailto:f@zz.de">f@zz.de</a>> wrote:<br>
><br>
> ><br>
> > Hi,<br>
> > i just found a future bug when postgis 2.0 will be used more - osmosis 0.39<br>
> > uses legacy functions e.h. MakeLine which should be replaces with<br>
> > ST_MakeLine<br>
><br>
> Where are you getting postgis 2.0 from? Is it packaged anywhere?<br>
><br>
> Is ST_MakeLine backwards compatible?<br>
<br>
</div></div>I took the debian postgis 1.5.x package and a svn checkout of postgis<br>
2.0 and copied over the debian directory. Change version strings in<br>
the changelog and removed the patches from the debian/patches dir<br>
and it built smooth.<br>
<br>
All non ST_ functions are deprecated and will only be available when<br>
you import the postgis-legacy.sql so its better to switch now using<br>
the ST_ standard functions. MakeLine and ST_MakeLine are actually the same<br>
function as i read it.<br>
<br>
I found it in the 2.0 TRUNK NEWS file: <a href="http://svn.osgeo.org/postgis/trunk/NEWS" target="_blank">http://svn.osgeo.org/postgis/trunk/NEWS</a><br>
<br>
- #722, #302 Most deprecated functions removed (over 250 functions)<br>
(Regina Obe / Paragon Corporation, Paul Ramsey / OpenGeo)<br>
(most deprecated in 1.2) removed non-ST variants buffer,<br>
length, intersects (and internal functions renamed) etc.<br>
If you have been using these - CHANGE your apps or suffer the consequences.<br>
If you don't see a function documented -- it ain't supported.<br>
Some constraints in older tables were built with deprecated functions.<br>
If you restore you may need to rebuild these<br>
with populate_geometry_columns().<br>
<br>
postgis 2.0 is interesting for me because of ST_ConcaveHull i am using.<br></blockquote><div><br>Hi Flo,<br><br>Thanks for the info. I replaced all occurences of MakeLine with ST_MakeLine. It's checked in and passing all unit tests.<br>
<a href="http://dev.openstreetmap.de:23457/hudson/job/osmosis-SNAPSHOT-ant/229/">http://dev.openstreetmap.de:23457/hudson/job/osmosis-SNAPSHOT-ant/229/</a><br><br>Let me know if you see any issues.<br><br>Brett<br><br></div>
</div>