[postgis-users] ST_MaxDistance

Puneet Kishor punk.kish at gmail.com
Fri Sep 28 21:42:49 PDT 2012



On Sep 28, 2012, at 9:31 PM, George Silva <georger.silva at gmail.com> wrote:

> OMG, I'm sorry,
> 
> I've confused the whole thing. I'm awake for a long long time. Way too long.



It's only PostGIS. At least your weren't driving. ;-)



> 
> Mathieu, sorry for the trouble.
> 
> On Sat, Sep 29, 2012 at 1:28 AM, <basille at ase-research.org> wrote:
>> 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 at 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.
> 
> 
> 
> -- 
> George R. C. Silva
> 
> Desenvolvimento em GIS
> http://geoprocessamento.net
> http://blog.geoprocessamento.net
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120928/7a82bba8/attachment.html>


More information about the postgis-users mailing list