[postgis-devel] Issue 137 in postgis: st_distance, shortestline (, st_maxdistance)

codesite-noreply at google.com codesite-noreply at google.com
Mon Mar 16 13:24:15 PDT 2009


Status: New
Owner: ----

New issue 137 by post... at jordogskog.no: st_distance, shortestline (,  
st_maxdistance)
http://code.google.com/p/postgis/issues/detail?id=137

This is not a defect report !
But I had no choise but that.

It's a suggestion about
some change in :
st_distance(geometry,geometry)
and a new function shortestline(geometry, geometry)
and a try to get st_max_distance(geometry,geometry) work.

The reason for putting them together here is that they all use the same
functions.

I'm new to this som you have to excuse some amateur mistakes.

I've struggled to make to patches to attach.

The on shortestline is working and adds the function shortestline like:
Create OR REPLACE FUNCTION shortestline(geometry,geometry)
RETURNS geometry AS
'$libdir/postgis-1.4', 'LWGEOM_shortestline2d'
LANGUAGE 'c' IMMUTABLE STRICT;

it also increases the speed of st_distance , at least in the few tests I
have done.

The other patch maxdistance.patch is not working. I really don't
understand why, but I think the idea of approach is good :-).


/Nicklas


Attachments:
	maxdistance.patch  26.7 KB
	shortestline.patch  23.7 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the postgis-devel mailing list