Im trying to run the query below in postgresql/postgis:
SELECT ST_AsText(pgr_pointsAsPolygon('SELECT id::int4, ST_X(geo)::float8 AS x, ST_Y(geo)::float8 as y FROM junction WHERE id IN ( 1050062040,.. ) UNION ALL SELECT 0::int4, 80.9475631713867::float8 as x, 26.8484115600586::float8 AS y ')) ;
But getting following error:
ERROR: function pgr_pointsaspolygon(unknown) does not exist
LINE 1: SELECT ST_AsText(pgr_pointsAsPolygon('SELECT id::int4, ST_X(...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
Have installed postgis and have pgrouting extension also. Any help ?
\df pgr_pointsAsPolygon