Opened 15 years ago

Last modified 15 years ago

#137 closed enhancement

st_distance, shortestline (, st_maxdistance) — at Initial Version

Reported by: post...@… Owned by:
Priority: medium Milestone: PostGIS 1.5.0
Component: postgis Version:
Keywords: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.