encode(st_asbinary(g::geometry, 'xdr'), 'hex') FROM ( SELECT
'CIRCULARSTRING ZM EMPTY'
::text as g ) as foo;
+
+-- COMPOUNDCURVE
+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
+ 'COMPOUNDCURVE 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
+ 'COMPOUNDCURVE 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
+ 'COMPOUNDCURVE 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
+ 'COMPOUNDCURVE ZM EMPTY'
+::text as g ) as foo;
+
CIRCULARSTRING Z EMPTY|01f003000000000000|t|00000003f000000000
CIRCULARSTRING M EMPTY|01d807000000000000|t|00000007d800000000
CIRCULARSTRING ZM EMPTY|01c00b000000000000|t|0000000bc000000000
+COMPOUNDCURVE EMPTY|010900000000000000|t|000000000900000000
+COMPOUNDCURVE Z EMPTY|01f103000000000000|t|00000003f100000000
+COMPOUNDCURVE M EMPTY|01d907000000000000|t|00000007d900000000
+COMPOUNDCURVE ZM EMPTY|01c10b000000000000|t|0000000bc100000000