<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Thanks for the reply. I have a bizarre
behavior with version 1.5.8/GEOS 3.3.3. I'll try to extract a
test case in order to discuss it in more detail.<br>
<br>
Thanks for the replies,<br>
<br>
Peter<br>
<br>
On 10/18/2013 03:39 PM, Nicklas Avén wrote:<br>
</div>
<blockquote cite="mid:201310181339.r9IDd1Vm030777@mail2.space2u.com"
type="cite">
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 : <a class="moz-txt-link-freetext" href="http://www.r3-gis.com">http://www.r3-gis.com</a><br>
><br>
>_______________________________________________<br>
>postgis-users mailing list<br>
><a class="moz-txt-link-abbreviated" href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
><a class="moz-txt-link-freetext" href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
><br>
> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
postgis-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Peter Hopfgartner
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web : <a class="moz-txt-link-abbreviated" href="http://www.r3-gis.com">www.r3-gis.com</a>
mail : <a class="moz-txt-link-abbreviated" href="mailto:peter.hopfgartner@r3-gis.com">peter.hopfgartner@r3-gis.com</a>
phone: +39 0473 494949
fax : +39 0473 069902
ATTENZIONE! Le informazioni contenute nella presente e-mail e nei documenti eventualmente allegati sono confidenziali. La loro diffusione, distribuzione e/o riproduzione da parte di terzi, senza autorizzazione del mittente è vietata e può violare il D. Lgs. 196/2003. In caso di ricezione per errore, Vogliate immediatamente informare il mittente del messaggio e distruggere la e-mail.
ACHTUNG! Die in dieser Nachricht oder in den beigelegten Dokumenten beinhalteten Informationen sind streng vertraulich. Ihre Verbreitung und/oder ihre Wiedergabe durch Dritte ist ohne Erlaubnis des Absenders verboten und verstößt gegen das Legislativdekret 196/2003. Sollten Sie diese Mitteilung irrtümlicherweise erhalten haben, bitten wir Sie uns umgehend zu informieren und anschließend die Mitteilung zu vernichten.
WARNING! This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden and could be against the law (D. Lgs. 196/2003)
</pre>
</body>
</html>