[postgis-users] calculate the distance between two points

Nicolas Ribot nicky666 at gmail.com
Thu Sep 20 02:49:28 PDT 2007


select distance(geometryfromtext(' POINT(458416.429731144
4598578.63636196)', -1), geometryfromtext(' POINT(458416.429731144
4598578.63636196)', -1));

by the way, the 2 points are the same  -> distance = 0

Nicolas

On 9/17/07, temiz <temiz at deprem.gov.tr> wrote:
>  I have two utm points
>
>  POINT(458416.429731144 4598578.63636196) | POINT(458416.429731144
> 4598578.63636196)
>
>
> how can I calculate the distance between them ?
>
> regards
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



More information about the postgis-users mailing list