<html>
<head>
</head>
<body>If I understand you right your assumption is true. 
        <div><br />
                </div>
        <div>What makes you wondering?</div>
        <div><br />
                </div>
        <div>In 2d you will always get the distance to a vertexpoint in at least one of the two geometries.</div>
        <div><br />
                </div>
        <div>You can use ST_ShortestLine to see between what points the distance is calculated.</div>
        <div><br />
                </div>
        <div>So:</div>
        <div><br />
                </div>
        <div>SELECT ST_Distance('LINESTRING(1 1, 1 10)'::geometry, 'LINESTRING(2 5, 10 5)'::geometry);</div>
        <div> returns 1</div>
        <div>and </div>
        <div>SELECT ST_AsText(ST_ShortestLine('LINESTRING(1 1, 1 10)'::geometry, 'LINESTRING(2 5, 10 5)'::geometry));</div>
        <div>returns 'LINESTRING(1 5, 2 5)'::geometry</div>
        <div><br />
                </div>
        <div>geography type calculations is of course another story.</div>
        <div><br />
                </div>
        <div><br />
                </div>
        <div>HTH</div>
        <div><br />
                </div>
        <div>Nicklas</div>
        <div><br />
                </div>
        <div><br />
                </div>
        <div><br />
                </div>
        <div><br />
                 2013-10-18 Peter Hopfgartner  wrote:<br />
                <br />
                I took it for granted, that ST_Distance between two two dimensional <br />
                
>geometries followes the definition of<br />
                
><br />
                
>dist(A, B) = inf(d(a,b)), where a is an arbitrary point in set A and b <br />
                
>an arbitrary point in set B and d() is the euclidean distance<br />
                
><br />
                
>For some reason I'm now wondering if my assumption is true.<br />
                
><br />
                
>Thanks for your patience,<br />
                
><br />
                
>Peter<br />
                
><br />
                
>-- <br />
                
>Peter Hopfgartner<br />
                
>R3 GIS<br />
                
><br />
                
>web  : http://www.r3-gis.com<br />
                
><br />
                
>_______________________________________________<br />
                
>postgis-users mailing list<br />
                
>postgis-users@lists.osgeo.org<br />
                
>http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users<br />
                
><br />
                
>
 </div>
</body>
</html>