<div>Hello Pierre,</div>
<div> </div>
<div>I'm up for a plpgsql implementation for now. I've written a few functions for wkt raster, but as you noticed, I stumbled upon some problems for the more complex ones.</div>
<div> </div>
<div>I've implemented also: plus, minus, and other math operations for rasters. They all work fine.</div>
<div> </div>
<div>When I get home I'll email it to the list and you can use them as you seem fit.</div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>George<br><br></div>
<div class="gmail_quote">On Thu, Aug 19, 2010 at 5:10 PM, Pierre Racine <span dir="ltr"><<a href="mailto:Pierre.Racine@sbf.ulaval.ca">Pierre.Racine@sbf.ulaval.ca</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>Are functions written in C REALLY faster than functions written in PL/pgSQL? Why?<br><br>Is there any rule saying what king of function should be better implemented in C and what kind should be better (of OK) in PL/pgSQL?<br>

<br>Do you guys prefer to publish a slower PL/pgSQL function NOW (warning that it might be implemented in C later with the same signature) or wait months that the C equivalent is implemented?<br><br>I understand that most of the PostGIS functionality is in GEOS but we don't have a GEOS equivalent for WKT Raster (we have GDAL but it's very limited in terms of analysis functionality) and I feel that everything would go much faster implementing many things in PL/pgSQL. For example right now I'm implementing a nice ST_MapAlgebra function in PL/pgSQL. I have no idea if it would be really much faster in C. I love PL/pgSQL...<br>

<br>Thanks for your advices,<br><br>Pierre<br><br>_______________________________________________<br>postgis-devel mailing list<br><a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>

<a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br>George R. C. Silva<br>

<br>Desenvolvimento em GIS<br><a href="http://blog.geoprocessamento.net">http://blog.geoprocessamento.net</a><br>