Opened 14 years ago

Closed 14 years ago

#584 closed defect (worksforme)

Check of Measure Test is failed

Reported by: aperi2007 Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: 1.5.X
Keywords: Cc:

Description

Hi,

After compile of postgis I' m having a failed check on Measures tests.

measures. failed (diff expected obtained: /tmp/pgis_reg_31425/test_24_diff)

The contains of test_24_diff is this:

* measures_expected Fri Sep 10 23:50:16 2010 —- /tmp/pgis_reg_31425/test_24_out Fri Sep 10 23:53:49 2010 * * 40,46

distancepoly6|0|32.5269119345812|LINESTRING(2 2,2 2)|LINESTRING(2 2,2 2)|LINESTRING(2 2,25 25)|LINESTRING(25 25,2 2) 3dDistancetest1|6.40312423743285|6.40312423743285|f|f|LINESTRING(1 1 1,3 2 7)|POINT(1 1 1)|LINESTRING(1 1 1,3 2 7) 3dDistancetest2|0|1.73205080756888|t|t|LINESTRING(1 1 1,1 1 1)|POINT(1 1 1)|LINESTRING(1 1 1,0 0 0)

! 3dDistancetest3|4.09994192757944|6.48074069840786|t|f|LINESTRING(1 1 1,0.619047619047619 -0.190476190476191 4.90476190476191)|POINT(1 1 1)|LINESTRING(1 1 1,5 2 6)

3dDistancetest4|2|10.0498756211209|t|f|LINESTRING(1 1 3,1 1 1)|POINT(1 1 3)|LINESTRING(5 7 8,1 1 1) ERROR: Linestring to Linestring distance measures is not yet supported for 3d emptyPolyArea|0

—- 40,46 ——

distancepoly6|0|32.5269119345812|LINESTRING(2 2,2 2)|LINESTRING(2 2,2 2)|LINESTRING(2 2,25 25)|LINESTRING(25 25,2 2) 3dDistancetest1|6.40312423743285|6.40312423743285|f|f|LINESTRING(1 1 1,3 2 7)|POINT(1 1 1)|LINESTRING(1 1 1,3 2 7) 3dDistancetest2|0|1.73205080756888|t|t|LINESTRING(1 1 1,1 1 1)|POINT(1 1 1)|LINESTRING(1 1 1,0 0 0)

! 3dDistancetest3|4.09994192757944|6.48074069840786|t|f|LINESTRING(1 1 1,0.619047619047619 -0.19047619047619 4.90476190476191)|POINT(1 1 1)|LINESTRING(1 1 1,5 2 6)

3dDistancetest4|2|10.0498756211209|t|f|LINESTRING(1 1 3,1 1 1)|POINT(1 1 3)|LINESTRING(5 7 8,1 1 1) ERROR: Linestring to Linestring distance measures is not yet supported for 3d emptyPolyArea|0

I use Debian Lenny 32 bit. Postgres 9.0 rc1 Geos svn r3104 Postgis r5960

Change History (2)

comment:1 by pramsey, 14 years ago

There's a very slight precision difference in the distance, we should probably be rounding it off a little in the SQL statement.

comment:2 by pramsey, 14 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.