[postgis-devel] [PostGIS] #63: ST_Max_Distance is not yet implemented?

PostGIS trac at osgeo.org
Fri Nov 6 17:38:30 PST 2009


#63: ST_Max_Distance is not yet implemented?
-----------------------+----------------------------------------------------
  Reporter:  robe      |       Owner:  robe         
      Type:  defect    |      Status:  assigned     
  Priority:  medium    |   Milestone:  postgis 1.4.1
 Component:  postgis   |     Version:  1.4.X        
Resolution:  accepted  |    Keywords:               
-----------------------+----------------------------------------------------
Old description:

> '''What steps will reproduce the problem?'''
> SELECT ST_Max_Distance(ST_GeomFromText('LINESTRING(1 0, 3 0)'),
> ST_GeomFromText('LINESTRING(3 0, 5 0)'))
>

> What is the expected output? huh I think 4
>
> What do you see instead?
>
> ERROR:  This function is unimplemented yet
>
> ********** Error **********
>
> ERROR: This function is unimplemented yet
> SQL state: XX000
>

> '''What version of the product are you using? On what operating
> system?'''
> Windows - 'POSTGIS='1.3.3' GEOS='3.0.0-CAPI-1.4.1' PROJ='Rel. 4.6.0, 21
> Dec
> 2007' USE_STATS'
> I think I tried on OpenSUSE 11 1.3.4 SVN and got the same unsatisfying
> answer.  I'll have to double-check that.
>

> '''Please provide any additional information below.'''
> I think the trunk lwpostgis.sql.in.c has this comment
>
> Maximum distance between linestrings. 2d only. Very bogus.
> -- Availability: 1.2.2
>
> And I thought it did something way back yander, but could have been my
> imagination or it was removed because as the comment says its bogus?

New description:

 '''What steps will reproduce the problem?'''
 SELECT ST_Max_Distance(ST_GeomFromText('LINESTRING(1 0, 3 0)'),
 ST_GeomFromText('LINESTRING(3 0, 5 0)'))


 What is the expected output? huh I think 4

 What do you see instead?

 ERROR:  This function is unimplemented yet

 ********** Error **********

 ERROR: This function is unimplemented yet
 SQL state: XX000


 '''What version of the product are you using? On what operating system?'''
 Windows - 'POSTGIS='1.3.3' GEOS='3.0.0-CAPI-1.4.1' PROJ='Rel. 4.6.0, 21
 Dec
 2007' USE_STATS'
 I think I tried on OpenSUSE 11 1.3.4 SVN and got the same unsatisfying
 answer.  I'll have to double-check that.


 '''Please provide any additional information below.'''
 I think the trunk lwpostgis.sql.in.c has this comment

 Maximum distance between linestrings. 2d only. Very bogus.
 -- Availability: 1.2.2

 And I thought it did something way back yander, but could have been my
 imagination or it was removed because as the comment says its bogus?

Comment (by pramsey):

 If the implementation of this is bound up with the other distance fixes,
 please move this to milestone 1.5 and this issue will just have to remain
 in 1.4 as is. I'd also like to rename to ST_MaxDistance() in 1.5.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/63#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list