<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 10.00.9200.17028"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=289104517-10072014><FONT color=#0000ff
size=2 face=Arial>or Empty happy. It should be a POINT EMPTY of course
:)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=289104517-10072014><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=289104517-10072014><FONT color=#0000ff
size=2 face=Arial>Regina</FONT></SPAN></DIV><BR>
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> postgis-devel-bounces@lists.osgeo.org
[mailto:postgis-devel-bounces@lists.osgeo.org] <B>On Behalf Of </B>Rémi
Cura<BR><B>Sent:</B> Thursday, July 10, 2014 11:55 AM<BR><B>To:</B> Paul
Ramsey<BR><B>Cc:</B> PostGIS Development Discussion<BR><B>Subject:</B> Re:
[postgis-devel] ST_LineLocatePoint with empty geom raise
error<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>
<DIV>
<DIV>Honestly I don't care that much<BR></DIV>
<DIV>,already wrote protections aggainst it.<BR></DIV>
<DIV><BR>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,<BR></DIV>not error,
I don't know how to compute this.<BR><BR></DIV>
<DIV>Anyway a good error message would help anyway
;-)<BR></DIV>Cheers,<BR>Rémi-C<BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>2014-07-10 17:17 GMT+02:00 Paul Ramsey <SPAN
dir=ltr><<A href="mailto:pramsey@cleverelephant.ca"
target=_blank>pramsey@cleverelephant.ca</A>></SPAN>:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV style="WORD-WRAP: break-word">
<DIV
style="FONT-SIZE: 13px; FONT-FAMILY: Helvetica,Arial; COLOR: ; MARGIN: 0px">One
can get a little null-happy sometimes. You sure? Maybe just a less dumbass
error?</DIV>
<DIV>
<DIV><BR></DIV><SPAN
style="FONT-SIZE: 13px; FONT-FAMILY: helvetica,arial"></SPAN>-- <BR>Paul
Ramsey<BR><A href="http://cleverelephant.ca"
target=_blank>http://cleverelephant.ca</A>
<DIV><A href="http://postgis.net"
target=_blank>http://postgis.net</A></DIV></DIV>
<DIV>
<DIV class=h5><BR>
<P style="COLOR: #000">On July 10, 2014 at 4:48:47 AM, Rémi Cura (<A
href="mailto:remi.cura@gmail.com" target=_blank>remi.cura@gmail.com</A>)
wrote:</P></DIV></DIV>
<BLOCKQUOTE type="cite"><SPAN>
<DIV>
<DIV></DIV>
<DIV>
<DIV>
<DIV class=h5>
<DIV dir=ltr>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV><BR></DIV>Hey,<BR><BR></DIV>I recently discovered a strange behavior
:<BR>in the function<BR>ST_LineLocatePoint<BR><BR></DIV>if using empty
geom,<BR></DIV>it gives the error :<BR>"ERROR: getPoint2d_p: point
offset out of range"<BR><BR></DIV>the code :<BR>SELECT
ST_LineLocatePoint(<BR>
ST_GeomFromtext('LINESTRING EMPTY')<BR>
,ST_GeomFromtext('point(1 2)')<BR>
)<BR><BR></DIV>In my humble opinion it should return NULL when any input is
empty.<BR>What do you
think?<BR><BR>Cheers,<BR>Rémi-C<BR></DIV></DIV></DIV>_______________________________________________
<BR>postgis-devel mailing list <BR><A
href="mailto:postgis-devel@lists.osgeo.org"
target=_blank>postgis-devel@lists.osgeo.org</A> <BR><A
href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel"
target=_blank>http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</A></DIV></DIV></SPAN></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>