Ho capito una cosa... <b><u>non ho la funzione</u></b>, come immaginavo e quindi ho tentato di capire se è colpa di un mio aggiornamento oppure no...<div><br></div><div>insomma sto cercando di aggiungere la funzione, visto che ho verificato in pgadmin che non è nell'elenco, tramite quello che ho capito di questo post:</div>


<div><a href="http://trac.osgeo.org/postgis/ticket/413" target="_blank">http://trac.osgeo.org/postgis/ticket/413</a></div><div>che spiega di una patch<font face="tahoma, sans-serif"> <span style="background-color:rgb(255, 255, 255)"><i>by rafalmag </i></span></font></div>


<div><font face="tahoma, sans-serif"><span style="background-color:rgb(255, 255, 255)"><i><br></i></span></font></div><div><font face="tahoma, sans-serif"><span style="background-color:rgb(255, 255, 255)">di cui non riesco a capire come usare gli </span></font><span style="font-family:Arial, Verdana, 'Bitstream Vera Sans', Helvetica, sans-serif;background-color:rgb(255, 255, 255)">Attachments</span><span style="font-family:tahoma, sans-serif;background-color:rgb(255, 255, 255)">:</span></div>


<div><font face="tahoma, sans-serif"><span style="background-color:rgb(255, 255, 255)"><br></span></font></div><div><span style="font-size:13px;background-color:rgb(255, 255, 255)"><blockquote class="gmail_quote" style="font-family:Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


<a href="http://trac.osgeo.org/postgis/attachment/ticket/413/postgis-1.5.0-RafalMagda.patch" title="View attachment" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank">postgis-1.5.0-RafalMagda.patch</a> <a href="http://trac.osgeo.org/postgis/raw-attachment/ticket/413/postgis-1.5.0-RafalMagda.patch" title="Download" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:initial;border-bottom-style:none;border-bottom-color:initial" target="_blank"><img src="http://trac.osgeo.org/postgis/chrome/common/download.png" alt="Download" style="border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial"></a> (<span title="5332 bytes">5.2 KB</span>) - added by <em>rafalmag</em> <a href="http://trac.osgeo.org/postgis/timeline?from=2010-02-09T16%3A00%3A50-0800&precision=second" title="2010-02-09T16:00:50-0800 in Timeline" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank">20 months</a> ago.<br>


Usage: tar xvfz postgis-1.5.0.tar.gz && patch -p0 < postgis-1.5.0-<a style="color:rgb(153, 153, 136)">RafalMagda?</a>.patch<br><a href="http://trac.osgeo.org/postgis/attachment/ticket/413/postgis-offsetCurve-RafalMagda.patch" title="View attachment" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank">postgis-offsetCurve-RafalMagda.patch</a> <a href="http://trac.osgeo.org/postgis/raw-attachment/ticket/413/postgis-offsetCurve-RafalMagda.patch" title="Download" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:initial;border-bottom-style:none;border-bottom-color:initial" target="_blank"><img src="http://trac.osgeo.org/postgis/chrome/common/download.png" alt="Download" style="border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial"></a> (<span title="6505 bytes">6.4 KB</span>) - added by <em>rafalmag</em> <a href="http://trac.osgeo.org/postgis/timeline?from=2010-03-09T12%3A12%3A10-0800&precision=second" title="2010-03-09T12:12:10-0800 in Timeline" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank">19 months</a> ago.<br>


usage: svn co <a href="http://svn.osgeo.org/postgis/trunk/" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank"><span style="background-color:initial;padding-left:12px;background-repeat:no-repeat no-repeat"> </span>http://svn.osgeo.org/postgis/trunk/</a> -r 5389 && patch -p0 < postgis-offsetCurve-<a style="color:rgb(153, 153, 136)">RafalMagda?</a>.patch<br>


<a href="http://trac.osgeo.org/postgis/attachment/ticket/413/postgres_geos_OffsetCurve_stacktrace-20110510.txt" title="View attachment" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank">postgres_geos_OffsetCurve_stacktrace-20110510.txt</a> <a href="http://trac.osgeo.org/postgis/raw-attachment/ticket/413/postgres_geos_OffsetCurve_stacktrace-20110510.txt" title="Download" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:initial;border-bottom-style:none;border-bottom-color:initial" target="_blank"><img src="http://trac.osgeo.org/postgis/chrome/common/download.png" alt="Download" style="border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial"></a> (<span title="22003 bytes">21.5 KB</span>) - added by <em>sholl</em> <a href="http://trac.osgeo.org/postgis/timeline?from=2011-05-10T03%3A30%3A42-0700&precision=second" title="2011-05-10T03:30:42-0700 in Timeline" style="text-decoration:none;color:rgb(187, 0, 0);border-bottom-width:1px;border-bottom-style:dotted;border-bottom-color:rgb(187, 187, 187)" target="_blank">5 months</a>ago.<br>


Stacktrace for comment28 of a segfaulting postgres-backend.</blockquote><dd style="font-family:Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif;font-style:italic;margin-left:0px;padding-left:0px">
<br></dd><dd style="margin-left:0px;padding-left:0px"><font face="tahoma, sans-serif">ma come si fa per tabelle, viste, spatial_rel, ecc... sono in cerca di fare l'add function così ho trovato:</font></dd>
</span></div><div><a href="http://trac.osgeo.org/postgis/attachment/ticket/413/postgis-offsetCurve-RafalMagda.patch" target="_blank">http://trac.osgeo.org/postgis/attachment/ticket/413/postgis-offsetCurve-RafalMagda.patch</a></div>

<div>che in fondo alla pagina incomincia ad indicarmi del testo per fare add function</div>
<div><br></div><div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


-- Availability: 2.0.0 - requires GEOS-3.2 or higher <br>CREATE OR REPLACE FUNCTION _ST_OffsetCurve(geometry,float8,cstring,cstring) <br>RETURNS geometry <br>AS '$libdir/postgis-1.5','offsetcurve' <br>LANGUAGE 'C' IMMUTABLE STRICT <br>


COST 100; </blockquote><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


...</blockquote><div> </div></div><div>e a questo punto, restituendomi un errore:</div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


could not find function "offsetcurve" in file "/usr/lib/postgresql/8.4/lib/<a href="http://postgis-1.5.so" target="_blank">postgis-1.5.so</a></blockquote><div> sto scaricando il DVD live di OSGeo, per vedere se li è tutto a posto... e posso continuare col mio grafo, ma in questo momento ho problemi a scaricarlo, e ne ho già avuti anche nei giorni precedenti...</div>


<div><br></div><div>ho fatto diversi tentativi per installare postgis2.0.0, ma non sono riuscito. </div><div><br></div><div>infatti ho provato a fare la stessa query cambiando postgis-1.5 con postgis2.0 e mi da un errore diverso:</div>


<div><br></div><div>ERROR:  could not load library "/usr/lib/postgresql/8.4/lib/<a href="http://postgis-2.0.so" target="_blank">postgis-2.0.so</a>": /usr/lib/postgresql/8.4/lib/<a href="http://postgis-2.0.so" target="_blank">postgis-2.0.so</a>: undefined symbol: GEOSRelatePatternMatch</div>


<div><br></div><div>ps. per <span style="font-family:monospace;white-space:pre-wrap;background-color:rgb(255, 255, 255);font-size:medium">Andrea Peri </span><span style="white-space:pre-wrap;background-color:rgb(255, 255, 255)"><font face="tahoma, sans-serif">ho visto la risposta e oltre ad aver preso l'esempio sulla pagina di documentazione e avendo quindi fatto un paio di prove 15.0 o mettendo ::float, ma evidentemente quello è passo successivo, a questo punto; a proposito ho anche una specie di stratagemma per individuare questi errori, cioè quello di partire da funzioni simili come ST_Buffer e sapendo che in una funzionano, dovrebbero funzionare anche nell'altra e se non è così, l'errore non è quello; infatti all'inizio pensavo che l'errore era dovuto al </font></span><span style="color:rgb(46, 46, 46);font-family:'Courier New', Courier, Monaco, monospace;font-size:11px;line-height:16px;white-space:pre-wrap;background-color:rgb(248, 248, 249)">'quad_segs=4 join=bevel'</span><span style="color:rgb(46, 46, 46);line-height:16px;white-space:pre-wrap;background-color:rgb(248, 248, 249)"><font face="tahoma, sans-serif"> ma poi ho scoperto che essendo simile in ST_Buffer e che li funzionava, allora sono passato oltre...</font></span></div>


<div><span style="color:rgb(46, 46, 46);line-height:16px;white-space:pre-wrap;background-color:rgb(248, 248, 249)"><font face="tahoma, sans-serif"><br></font></span></div>
<div><span style="color:rgb(46, 46, 46);line-height:16px;white-space:pre-wrap;background-color:rgb(248, 248, 249)"><font face="tahoma, sans-serif">ps2. sinceramente se ci fosse una <b>guida</b> con le varie procedure per avere un sistema postgresql/postgis/geos/qgis tipo nightly build o simili, da installare da capo su una macchina virtuale nuova... non mi dispiacerebbe passarci il weekend... :-)</font></span></div>

<div><span style="color:rgb(46, 46, 46);line-height:16px;white-space:pre-wrap;background-color:rgb(248, 248, 249)"><font face="tahoma, sans-serif"><br></font></span></div><div><span style="color:rgb(46, 46, 46);line-height:16px;white-space:pre-wrap;background-color:rgb(248, 248, 249)"><font face="tahoma, sans-serif">ps3. ho trovato questo bel doc: GEOS-advanced (</font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana, Geneva, Helvetica, Arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><span style="font-size: 1em; color: rgb(75, 59, 23); "><a href="http://www.gaia-gis.it/GEOS-advanced.pdf" target="_blank" rel="nofollow" link="external" style="font-size: 1em; color: rgb(75, 59, 23); ">http://www.gaia-gis.it/<span class="bold highlight search-highlight" style="font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(244, 204, 152); background-position: initial initial; background-repeat: initial initial; ">GEOS</span>-<span class="bold highlight search-highlight" style="font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(244, 204, 152); background-position: initial initial; background-repeat: initial initial; ">advanced</span>.pdf</a></span></span><span class="Apple-style-span" style="color: rgb(46, 46, 46); font-family: tahoma, sans-serif; line-height: 16px; white-space: pre-wrap; background-color: rgb(248, 248, 249); ">)</span></div>


<div><br><br><div><div style="font-size:13.3px;font-family:Verdana, Arial, Helvetica, sans-serif"><div style="margin:0 0 8px 0"><table style="width:556px" border="0">
<tbody>
<tr>
<td>
<div><span style="color:#3366ff;font-size:x-small">il <span>boom</span> dei dati geografici è in corso, aspettiamoci quello delle informazioni spaziali</span><br><strong><span style="color:#ff6600;font-size:x-small">#Local Intelligent Marketing#</span></strong></div>



</td>
<td rowspan="2" valign="bottom"><img style="display:block;margin-left:auto;margin-right:auto" src="http://goo.gl/3jJuN" alt=""></td>
</tr>
<tr>
<td align="right"><span style="color:#339966;font-size:x-small"><em>Simply from Android</em></span></td>
</tr>
</tbody>
</table><div style="clear:both"></div></div><img src="http://p1.wisestamp.com/pixel.png?p=chrome&v=2.8.4.0&t=1316872426639&u=4ced514b1d393b17" width="1" height="1"></div></div></div>
<div id="WISESTAMP_SIG_8541"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; "><font class="Apple-style-span"><br></font><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13.3px; clear: both; ">

</div></div><font class="Apple-style-span" size="2" style="font-family: Verdana, Arial, Helvetica, sans-serif; "><img src="http://p1.wisestamp.com/pixel.png?p=chrome&v=2.8.4.0&t=1316874279026&u=4ced514b1d393b17" width="1" height="1"></font></div>

</div><br><div id="WISESTAMP_SIG_6983"><div style="font-size: 13.3px; font-family: Verdana, Arial, Helvetica, sans-serif;"><div style="margin: 0 0 8px 0"><table style="width: 556px;" border="0">
<tbody>
<tr>
<td>
<div><span style="color: #3366ff; font-size: x-small;">il <span class="il">boom</span> dei dati geografici è in corso, aspettiamoci quello delle informazioni spaziali</span><br><strong><span style="color: #ff6600; font-size: x-small;">#Local Intelligent Marketing#</span></strong></div>


</td>
<td rowspan="2" valign="bottom"><img style="display: block; margin-left: auto; margin-right: auto;" src="http://goo.gl/3jJuN" alt=""></td>
</tr>
<tr>
<td align="right"><span style="color: #339966; font-size: x-small;"><em>Simply from Android</em></span></td>
</tr>
</tbody>
</table><div style="clear:both"></div></div><img src="http://p1.wisestamp.com/pixel.png?p=chrome&v=2.8.4.0&t=1316874407275&u=4ced514b1d393b17" width="1" height="1"></div></div>