<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="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
One can get a little null-happy sometimes. You sure? Maybe just a less dumbass error?</div> <div><div><br></div><span style="font-family:helvetica,arial;font-size:13px"></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>