<html>
<head>
        <title></title>
        
<meta name="GENERATOR" content="MSHTML 8.00.6001.18852"></meta>
</head>

<body>
        
<div>Hallo</div>
        
<div> </div>
        
<div>I don't know if it is the documentation or the behavior that is not correct , but from the way I'm reading it it doesn't correspond fully.</div>
        
<div> </div>
        
<div> </div>
        
<div>select st_astext(st_endpoint('MULTILINESTRING((5 5,10 5),(1 1,5 5))'::geometry))</div>
        
<div>gives</div>
        
<div>"POINT(10 5)"</div>
        
<div> </div>
        
<div>Documentation says that the function will return the last point of the linestring or null if it is no linestring. </div>
        
<div>Is a multilinestring a linestring?</div>
        
<div>If it is, I expect POINT(5 5) from the function, otherwise I expect null. </div>
        
<div>If this is the expeted behavior I think we have to complement the documentation with "For multilinestrings it returns the last point of the first subgeometry"</div>
        
<div>But I think it would be better to return the last point of the last subgeometry and say that the function supports multiliestrings.</div>
        
<div> </div>
        
<div>Thanks</div>
        
<div>Nicklas</div>
        
<div><br />
                </div>
</body>
</html>