I am wondering if there is a possibility of programming new functions for PostGIS using Java, so that you can refer them same way as classic PostGIS functions are. Something like this:
CREATE OR REPLACE FUNCTION public.st_line_interpolate_point(geometry, double precision)
RETURNS geometry AS
'$libdir/postgis-2.0', 'LWGEOM_line_interpolate_point'
LANGUAGE c IMMUTABLE STRICT
COST 1;
I know that most of PostGIS functions are written in C however I am not very familiar with that language.