'TRIANGLE ZM EMPTY'
::text as g ) as foo;
+-- TIN
+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
+ 'TIN 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
+ 'TIN 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
+ 'TIN 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
+ 'TIN ZM EMPTY'
+::text as g ) as foo;
+
TRIANGLE Z EMPTY|01f903000000000000|t|00000003f900000000
TRIANGLE M EMPTY|01e107000000000000|t|00000007e100000000
TRIANGLE ZM EMPTY|01c90b000000000000|t|0000000bc900000000
+TIN EMPTY|011000000000000000|t|000000001000000000
+TIN Z EMPTY|01f803000000000000|t|00000003f800000000
+TIN M EMPTY|01e007000000000000|t|00000007e000000000
+TIN ZM EMPTY|01c80b000000000000|t|0000000bc800000000