<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" 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 id="bloop_sign_1405005425087901184" class="bloop_sign"><div><br></div><span style="font-family:helvetica,arial;font-size:13px"></span>-- <br>Paul Ramsey<br>http://cleverelephant.ca<div>http://postgis.net</div></div> <br><p style="color:#000;">On July 10, 2014 at 4:48:47 AM, Rémi Cura (<a href="mailto:remi.cura@gmail.com">remi.cura@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>
<title></title>
<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>
_______________________________________________
<br>postgis-devel mailing list
<br>postgis-devel@lists.osgeo.org
<br>http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel</div></div></span></blockquote></body></html>