'COMPOUNDCURVE ZM EMPTY'
::text as g ) as foo;
+-- CURVEPOLYGON
+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
+ 'CURVEPOLYGON 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
+ 'CURVEPOLYGON 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
+ 'CURVEPOLYGON 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
+ 'CURVEPOLYGON ZM EMPTY'
+::text as g ) as foo;
+
COMPOUNDCURVE Z EMPTY|01f103000000000000|t|00000003f100000000
COMPOUNDCURVE M EMPTY|01d907000000000000|t|00000007d900000000
COMPOUNDCURVE ZM EMPTY|01c10b000000000000|t|0000000bc100000000
+CURVEPOLYGON EMPTY|010a00000000000000|t|000000000a00000000
+CURVEPOLYGON Z EMPTY|01f203000000000000|t|00000003f200000000
+CURVEPOLYGON M EMPTY|01da07000000000000|t|00000007da00000000
+CURVEPOLYGON ZM EMPTY|01c20b000000000000|t|0000000bc200000000