[postgis-devel] ST_LineLocatePoint with empty geom raise error

Sandro Santilli strk at keybit.net
Thu Jul 10 09:32:30 PDT 2014

On Thu, Jul 10, 2014 at 05:54:34PM +0200, RĂ©mi Cura wrote:
> Honestly I don't care that much
> ,already wrote protections aggainst it.
> It's just that the answer to the question what is the curvabs of a point on
> this non exisiting line should be it doesn't exist,
> not error, I don't know how to compute this.

The question is: where is any point located inside "nowhere" ?
I'm tempted to answere "everywhere".

As the response is a float, it could be Infinite (but negative or positive?).
Gets philosophical.

I agree an understandable error message would be enough :)


More information about the postgis-devel mailing list