'CURVEPOLYGON ZM EMPTY'
::text as g ) as foo;
+-- MULTICURVE
+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
+ 'MULTICURVE 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
+ 'MULTICURVE 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
+ 'MULTICURVE 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
+ 'MULTICURVE ZM EMPTY'
+::text as g ) as foo;
+
+-- MULTISURFACE
+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
+ 'MULTISURFACE 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
+ 'MULTISURFACE 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
+ 'MULTISURFACE 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
+ 'MULTISURFACE ZM EMPTY'
+::text as g ) as foo;
+
CURVEPOLYGON Z EMPTY|01f203000000000000|t|00000003f200000000
CURVEPOLYGON M EMPTY|01da07000000000000|t|00000007da00000000
CURVEPOLYGON ZM EMPTY|01c20b000000000000|t|0000000bc200000000
+MULTICURVE EMPTY|010b00000000000000|t|000000000b00000000
+MULTICURVE Z EMPTY|01f303000000000000|t|00000003f300000000
+MULTICURVE M EMPTY|01db07000000000000|t|00000007db00000000
+MULTICURVE ZM EMPTY|01c30b000000000000|t|0000000bc300000000
+MULTISURFACE EMPTY|010c00000000000000|t|000000000c00000000
+MULTISURFACE Z EMPTY|01f403000000000000|t|00000003f400000000
+MULTISURFACE M EMPTY|01dc07000000000000|t|00000007dc00000000
+MULTISURFACE ZM EMPTY|01c40b000000000000|t|0000000bc400000000