<div dir="ltr">Hi List, <br> I'm trying to use the Distance Function in a Declared Fuction but I have this error:<br><br><br>CREATE FUNCTION consul1ta_parametros(float, float) RETURNS void AS '<br>x_pos ALIAS FOR $1;<br>
y_pos ALIAS FOR $2;<br>select distance(<br> the_geom,<br> PointFromText('POINT( '|| x_pos || ' ' || y_pos ||' )', 24877) <br> ) <br> from recorrido where estado = 'V'' LANGUAGE SQL;<br>
<br><br>ERROR: syntax error at or near "POINT" en el carácter 157<br>The question is... Can I use the PostGIS functions here???<br></div>