Changeset 2179

Show
Ignore:
Timestamp:
12/14/05 03:13:13 (6 years ago)
Author:
strk
Message:

Snapped buffer() output to a grid of 1.0E-14 grid to account for slightly
different floating number behaviours on Solaris.
Normalized Infinity to inf to account for different libc outputs.

Location:
trunk/regress
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/regress/regress_ogc_expected

    r2153 r2179  
    1 buffer|POLYGON((1 0,0.707106781202421 -0.707106781170674,4.48965921677393e-11 -1,-0.707106781138927 -0.707106781234168,-1 -8.97931843354786e-11,-0.707106781265914 0.707106781107181,-1.34689776503218e-10 1,0.707106781075434 0.707106781297661,1 0)) 
     1buffer|POLYGON((1 0,0.70710678120242 -0.70710678117067,4.49e-11 -1,-0.70710678113893 -0.70710678123417,-1 -8.979e-11,-0.70710678126591 0.70710678110718,-1.3469e-10 1,0.70710678107543 0.70710678129766,1 0)) 
    22geomunion|MULTIPOINT(0 0,1 1) 
    33unite_garray|MULTIPOINT(2 3,0 0) 
  • trunk/regress/regress_ogc.sql

    r2153 r2179  
    1 SELECT 'buffer', astext(buffer('POINT(0 0)', 1, 2)); 
     1-- Ouput is snapped to grid to account for small floating numbers 
     2-- differences between architectures 
     3SELECT 'buffer', astext(SnapToGrid(buffer('POINT(0 0)', 1, 2), 1.0e-14)); 
     4 
    25SELECT 'geomunion', astext(geomunion('POINT(0 0)', 'POINT(1 1)')); 
    36SELECT 'unite_garray', astext(unite_garray(geom_accum('{POINT(0 0)}', 'POINT(2 3)'))); 
  • trunk/regress/regress.sql

    r2091 r2179  
    8686select '60',asewkt('POINT(1 2 3 4 5 6 7)'::GEOMETRY); 
    8787select '61',asewkt('LINESTRING(1 1)'::GEOMETRY); 
    88 select '62',asewkt('POINT( 1e700 0)'::GEOMETRY); 
    89 select '63',asewkt('POINT( -1e700 0)'::GEOMETRY); 
     88select '62',replace(asewkt('POINT( 1e700 0)'::GEOMETRY), 'Infinity', 'inf'); 
     89select '63',replace(asewkt('POINT( -1e700 0)'::GEOMETRY), 'Infinity', 'inf'); 
    9090select '64',asewkt('MULTIPOINT(1 1, 2 2'::GEOMETRY); 
    9191