Changeset 2367

Show
Ignore:
Timestamp:
05/22/06 08:29:19 (6 years ago)
Author:
strk
Message:

Moved 'measures' query into a specific file, added a test for bug #108

Location:
trunk/regress
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/regress/Makefile

    r2332 r2367  
    33include ../Makefile.config 
    44 
    5 TESTS=regress regress_index lwgeom_regress regress_lrs removepoint setpoint simplify snaptogrid affine wkt 
     5TESTS=regress regress_index lwgeom_regress regress_lrs removepoint setpoint simplify snaptogrid affine wkt measures 
    66 
    77ifeq ($(USE_GEOS),1) 
  • trunk/regress/regress_expected

    r2230 r2367  
    111111111|528 
    112112112|3 
    113 113|291 
    114 114|140 
    115 115|140 
    116 116|4.24264068711929 
    117 117|4.24264068711929 
    118 118|5.19615242270663 
    119113121|BOX3D(1.19894826 1.20265412 0,999.932129 999.692932 0)|BOX3D(1.40486765 1.3484304 0,999.857666 999.936401 0) 
    120114122|f 
     
    134128133d|4 
    135129133e| 
    136 134|0 
    137 135|13 
    138 136|13 
    139130137| 
    140131138|BOX3D(0 0 0,0 0 0) 
  • trunk/regress/regress.sql

    r2195 r2367  
    180180select '112',numgeometries('GEOMETRYCOLLECTION(POINT(1 1), LINESTRING( 1 1 , 2 2, 3 3),MULTIPOINT(1 1, 2 2))'::GEOMETRY) as value; 
    181181 
    182 --- geo ops 
    183  
    184 select '113', area2d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7, 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) ) )'::GEOMETRY) as value; 
    185  
    186 select '114', perimeter2d('MULTIPOLYGON( ((0 0, 10 0, 10 10, 0 10, 0 0)),( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7 , 5 7, 5 5) ) ,( (0 0, 10 0, 10 10, 0 10, 0 0),(5 5, 7 5, 7 7, 5 7, 5 5),(1 1,2 1, 2 2, 1 2, 1 1) ) )'::GEOMETRY) as value; 
    187  
    188 select '115', perimeter3d('MULTIPOLYGON( ((0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0)),( (0 0 0, 10 0 0, 10 10 0, 0 10 0, 0 0 0),(5 5 0, 7 5 0, 7 7  0, 5 7 0, 5 5 0) ) ,( (0 0 1, 10 0 1, 10 10 1, 0 10 1, 0 0 1),(5 5 1, 7 5 1, 7 7 1, 5 7 1, 5 5 1),(1 1 1,2 1 1, 2 2 1, 1 2 1, 1 1 1) ) )'::GEOMETRY) as value; 
    189  
    190  
    191 select '116', length2d('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2) )'::GEOMETRY) as value; 
    192 select '117', length3d('MULTILINESTRING((0 0, 1 1),(0 0, 1 1, 2 2) )'::GEOMETRY) as value; 
    193 select '118', length3d('MULTILINESTRING((0 0 0, 1 1 1),(0 0 0, 1 1 1, 2 2 2) )'::GEOMETRY) as value; 
    194  
    195182---selection 
    196183 
     
    228215select '133e', M('POINT(1 2 4)'); 
    229216 
    230 select '134', distance('POINT(1 2)', 'POINT(1 2)'); 
    231 select '135', distance('POINT(5 0)', 'POINT(10 12)'); 
    232  
    233 select '136', distance('POINT(0 0)', translate('POINT(0 0)', 5, 12, 0)); 
    234  
    235217select '137', box3d('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY)'::geometry); 
    236218select '138', box3d('GEOMETRYCOLLECTION(GEOMETRYCOLLECTION EMPTY, POINT(0 0))'::geometry);