| | 51 | 0 0, |
| | 52 | 0.26794919243112270647255365849413 1, |
| | 53 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097), |
| | 54 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097, |
| | 55 | 2 0, |
| | 56 | 0 0))')); |
| | 57 | |
| | 58 | -- Repeat tests with new function names. |
| | 59 | SELECT 'ndims01', ST_ndims(ST_geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING( |
| | 60 | 0 0 0 0, |
| | 61 | 0.26794919243112270647255365849413 1 3 -2, |
| | 62 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097 1 2), |
| | 63 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097 1 2, |
| | 64 | 2 0 0 0, |
| | 65 | 0 0 0 0))')); |
| | 66 | SELECT 'geometrytype01', geometrytype(ST_geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING( |
| | 67 | 0 0 0 0, |
| | 68 | 0.26794919243112270647255365849413 1 3 -2, |
| | 69 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097 1 2), |
| | 70 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097 1 2, |
| | 71 | 2 0 0 0, |
| | 72 | 0 0 0 0))')); |
| | 73 | SELECT 'ndims02', ST_ndims(ST_geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING( |
| | 74 | 0 0 0, |
| | 75 | 0.26794919243112270647255365849413 1 3, |
| | 76 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097 1), |
| | 77 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097 1, |
| | 78 | 2 0 0, |
| | 79 | 0 0 0))')); |
| | 80 | SELECT 'geometrytype02', geometrytype(ST_geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING( |
| | 81 | 0 0 0, |
| | 82 | 0.26794919243112270647255365849413 1 3, |
| | 83 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097 1), |
| | 84 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097 1, |
| | 85 | 2 0 0, |
| | 86 | 0 0 0))')); |
| | 87 | SELECT 'ndims03', ST_ndims(ST_geomfromewkt('COMPOUNDCURVEM(CIRCULARSTRING( |
| | 88 | 0 0 0, |
| | 89 | 0.26794919243112270647255365849413 1 -2, |
| | 90 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097 2), |
| | 91 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097 2, |
| | 92 | 2 0 0, |
| | 93 | 0 0 0))')); |
| | 94 | SELECT 'geometrytype03', geometrytype(ST_geomfromewkt('COMPOUNDCURVEM(CIRCULARSTRING( |
| | 95 | 0 0 0, |
| | 96 | 0.26794919243112270647255365849413 1 -2, |
| | 97 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097 2), |
| | 98 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097 2, |
| | 99 | 2 0 0, |
| | 100 | 0 0 0))')); |
| | 101 | SELECT 'ndims04', ST_ndims(ST_geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING( |
| | 102 | 0 0, |
| | 103 | 0.26794919243112270647255365849413 1, |
| | 104 | 0.5857864376269049511983112757903 1.4142135623730950488016887242097), |
| | 105 | (0.5857864376269049511983112757903 1.4142135623730950488016887242097, |
| | 106 | 2 0, |
| | 107 | 0 0))')); |
| | 108 | SELECT 'geometrytype04', geometrytype(ST_geomfromewkt('COMPOUNDCURVE(CIRCULARSTRING( |
| | 237 | -- Repeat tests on new function names. |
| | 238 | SELECT 'astext01', ST_astext(the_geom_2d) FROM public.compoundcurve; |
| | 239 | SELECT 'astext02', ST_astext(the_geom_3dm) FROM public.compoundcurve; |
| | 240 | SELECT 'astext03', ST_astext(the_geom_3dz) FROM public.compoundcurve; |
| | 241 | SELECT 'astext04', ST_astext(the_geom_4d) FROM public.compoundcurve; |
| | 242 | |
| | 243 | SELECT 'asewkt01', ST_asewkt(the_geom_2d) FROM public.compoundcurve; |
| | 244 | SELECT 'asewkt02', ST_asewkt(the_geom_3dm) FROM public.compoundcurve; |
| | 245 | SELECT 'asewkt03', ST_asewkt(the_geom_3dz) FROM public.compoundcurve; |
| | 246 | SELECT 'asewkt04', ST_asewkt(the_geom_4d) FROM public.compoundcurve; |
| | 247 | |
| | 248 | SELECT 'asbinary01', encode(ST_asbinary(the_geom_2d), 'hex') FROM public.compoundcurve; |
| | 249 | SELECT 'asbinary02', encode(ST_asbinary(the_geom_3dm), 'hex') FROM public.compoundcurve; |
| | 250 | SELECT 'asbinary03', encode(ST_asbinary(the_geom_3dz), 'hex') FROM public.compoundcurve; |
| | 251 | SELECT 'asbinary04', encode(ST_asbinary(the_geom_4d), 'hex') FROM public.compoundcurve; |
| | 252 | |
| | 253 | SELECT 'asewkb01', encode(ST_asewkb(the_geom_2d), 'hex') FROM public.compoundcurve; |
| | 254 | SELECT 'asewkb02', encode(ST_asewkb(the_geom_3dm), 'hex') FROM public.compoundcurve; |
| | 255 | SELECT 'asewkb03', encode(ST_asewkb(the_geom_3dz), 'hex') FROM public.compoundcurve; |
| | 256 | SELECT 'asewkb04', encode(ST_asewkb(the_geom_4d), 'hex') FROM public.compoundcurve; |
| | 257 | |
| | 258 | -- Removed due to discrepencies between hardware |
| | 259 | --SELECT 'box2d01', ST_box2d(the_geom_2d) FROM public.compoundcurve; |
| | 260 | --SELECT 'box2d02', ST_box2d(the_geom_3dm) FROM public.compoundcurve; |
| | 261 | --SELECT 'box2d03', ST_box2d(the_geom_3dz) FROM public.compoundcurve; |
| | 262 | --SELECT 'box2d04', ST_box2d(the_geom_4d) FROM public.compoundcurve; |
| | 263 | |
| | 264 | --SELECT 'box3d01', ST_box3d(the_geom_2d) FROM public.compoundcurve; |
| | 265 | --SELECT 'box3d02', ST_box3d(the_geom_3dm) FROM public.compoundcurve; |
| | 266 | --SELECT 'box3d03', ST_box3d(the_geom_3dz) FROM public.compoundcurve; |
| | 267 | --SELECT 'box3d04', ST_box3d(the_geom_4d) FROM public.compoundcurve; |
| | 268 | |
| | 269 | SELECT 'isValid01', ST_isValid(the_geom_2d) FROM public.compoundcurve; |
| | 270 | SELECT 'isValid02', ST_isValid(the_geom_3dm) FROM public.compoundcurve; |
| | 271 | SELECT 'isValid03', ST_isValid(the_geom_3dz) FROM public.compoundcurve; |
| | 272 | SELECT 'isValid04', ST_isValid(the_geom_4d) FROM public.compoundcurve; |
| | 273 | |
| | 274 | SELECT 'dimension01', ST_dimension(the_geom_2d) FROM public.compoundcurve; |
| | 275 | SELECT 'dimension02', ST_dimension(the_geom_3dm) FROM public.compoundcurve; |
| | 276 | SELECT 'dimension03', ST_dimension(the_geom_3dz) FROM public.compoundcurve; |
| | 277 | SELECT 'dimension04', ST_dimension(the_geom_4d) FROM public.compoundcurve; |
| | 278 | |
| | 279 | SELECT 'SRID01', ST_SRID(the_geom_2d) FROM public.compoundcurve; |
| | 280 | SELECT 'SRID02', ST_SRID(the_geom_3dm) FROM public.compoundcurve; |
| | 281 | SELECT 'SRID03', ST_SRID(the_geom_3dz) FROM public.compoundcurve; |
| | 282 | SELECT 'SRID04', ST_SRID(the_geom_4d) FROM public.compoundcurve; |
| | 283 | |
| | 284 | SELECT 'accessor01', ST_isEmpty(the_geom_2d), ST_isSimple(the_geom_2d), ST_isClosed(the_geom_2d), ST_isRing(the_geom_2d) FROM public.compoundcurve; |
| | 285 | SELECT 'accessor02', ST_isEmpty(the_geom_3dm), ST_isSimple(the_geom_3dm), ST_isClosed(the_geom_3dm), ST_isRing(the_geom_3dm) FROM public.compoundcurve; |
| | 286 | SELECT 'accessor03', ST_isEmpty(the_geom_3dz), ST_isSimple(the_geom_3dz), ST_isClosed(the_geom_3dz), ST_isRing(the_geom_3dz) FROM public.compoundcurve; |
| | 287 | SELECT 'accessor04', ST_isEmpty(the_geom_4d), ST_isSimple(the_geom_4d), ST_isClosed(the_geom_4d), ST_isRing(the_geom_4d) FROM public.compoundcurve; |
| | 288 | |
| | 289 | SELECT 'envelope01', ST_asText(ST_snapToGrid(ST_envelope(the_geom_2d), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.compoundcurve; |
| | 290 | SELECT 'envelope02', ST_asText(ST_snapToGrid(ST_envelope(the_geom_3dm), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.compoundcurve; |
| | 291 | SELECT 'envelope03', ST_asText(ST_snapToGrid(ST_envelope(the_geom_3dz), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.compoundcurve; |
| | 292 | SELECT 'envelope04', ST_asText(ST_snapToGrid(ST_envelope(the_geom_4d), 'POINT(0 0 0 0)'::geometry, 1e-8, 1e-8, 1e-8, 1e-8)) FROM public.compoundcurve; |
| | 293 | |