Not weird for me: the max distance is between (1,1) and (-1,-1), which is sqrt(2^2 + 2^2) = 2.828427
At least, that's what Pythagoras told me once :)

Mathieu.


Le 28/09/2012 23:58, George Silva a écrit :
Hey guys, weird results here...

Check this:

SELECT ST_MaxDistance(
ST_MakeLine(ST_MakePoint(0,0),ST_MakePoint(1,1)),
ST_MakeLine(ST_MakePoint(0,0),ST_MakePoint(-1,-1)));
-- 2.82842712474619 (this corresponds to 2x sqrt(2)?)

For me the max distance between these polylines is 2.

Or am I expecting something diferent for this function?

Thanks

--
George R. C. Silva

Desenvolvimento em GIS
http://geoprocessamento.net
http://blog.geoprocessamento.net



_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

--

~$ whoami
Mathieu Basille, Post-Doc

~$ locate
Laboratoire d'Écologie Comportementale et de Conservation de la Faune
+ Centre d'Étude de la Forêt
Département de Biologie
Université Laval, Québec

~$ info
http://ase-research.org/basille

~$ fortune
``If you can't win by reason, go for volume.''
Calvin, by Bill Watterson.
_______________________________________________
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users

Reply via email to