'POLYHEDRALSURFACE ZM EMPTY'
::text as g ) as foo;
+-- TRIANGLE
+select g, encode(st_asbinary(g::geometry, 'ndr'), 'hex'),
+ st_orderingequals(g::geometry, ST_GeomFromWKB(ST_AsBinary(g::geometry))),
+ encode(st_asbinary(g::geometry, 'xdr'), 'hex') FROM ( SELECT
+ 'TRIANGLE EMPTY'
+::text as g ) as foo;
+select g, encode(st_asbinary(g::geometry, 'ndr'), 'hex'),
+ st_orderingequals(g::geometry, ST_GeomFromWKB(ST_AsBinary(g::geometry))),
+ encode(st_asbinary(g::geometry, 'xdr'), 'hex') FROM ( SELECT
+ 'TRIANGLE Z EMPTY'
+::text as g ) as foo;
+select g, encode(st_asbinary(g::geometry, 'ndr'), 'hex'),
+ st_orderingequals(g::geometry, ST_GeomFromWKB(ST_AsBinary(g::geometry))),
+ encode(st_asbinary(g::geometry, 'xdr'), 'hex') FROM ( SELECT
+ 'TRIANGLE M EMPTY'
+::text as g ) as foo;
+select g, encode(st_asbinary(g::geometry, 'ndr'), 'hex'),
+ st_orderingequals(g::geometry, ST_GeomFromWKB(ST_AsBinary(g::geometry))),
+ encode(st_asbinary(g::geometry, 'xdr'), 'hex') FROM ( SELECT
+ 'TRIANGLE ZM EMPTY'
+::text as g ) as foo;
+
POLYHEDRALSURFACE Z EMPTY|01f703000000000000|t|00000003f700000000
POLYHEDRALSURFACE M EMPTY|01df07000000000000|t|00000007df00000000
POLYHEDRALSURFACE ZM EMPTY|01c70b000000000000|t|0000000bc700000000
+TRIANGLE EMPTY|011100000000000000|t|000000001100000000
+TRIANGLE Z EMPTY|01f903000000000000|t|00000003f900000000
+TRIANGLE M EMPTY|01e107000000000000|t|00000007e100000000
+TRIANGLE ZM EMPTY|01c90b000000000000|t|0000000bc900000000