]> granicus.if.org Git - postgis/commitdiff
Add POLYHEDRALSURFACE roundtrip WKB test
authorSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 10:31:09 +0000 (10:31 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 16 Jan 2012 10:31:09 +0000 (10:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8832 b70326c6-7e19-0410-871a-916f4a2858ee

regress/wkb.sql
regress/wkb_expected

index ab9cdb0d0568553457b8a90ef54c40dc1e2f7b25..962543af489cd0370e01154e5e7f242ebbe8f680 100644 (file)
@@ -392,3 +392,25 @@ select g, encode(st_asbinary(g::geometry, 'ndr'), 'hex'),
  'MULTISURFACE ZM EMPTY'
 ::text as g ) as foo;
 
+-- POLYHEDRALSURFACE
+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
+ 'POLYHEDRALSURFACE 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
+ 'POLYHEDRALSURFACE 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
+ 'POLYHEDRALSURFACE 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
+ 'POLYHEDRALSURFACE ZM EMPTY'
+::text as g ) as foo;
+
index 3f24fd648529917ce738adb29804e5c51d74337b..e29b6f0c945fe278e6c27a51a7e3bf87603d4283 100644 (file)
@@ -72,3 +72,7 @@ MULTISURFACE EMPTY|010c00000000000000|t|000000000c00000000
 MULTISURFACE Z EMPTY|01f403000000000000|t|00000003f400000000
 MULTISURFACE M EMPTY|01dc07000000000000|t|00000007dc00000000
 MULTISURFACE ZM EMPTY|01c40b000000000000|t|0000000bc400000000
+POLYHEDRALSURFACE EMPTY|010f00000000000000|t|000000000f00000000
+POLYHEDRALSURFACE Z EMPTY|01f703000000000000|t|00000003f700000000
+POLYHEDRALSURFACE M EMPTY|01df07000000000000|t|00000007df00000000
+POLYHEDRALSURFACE ZM EMPTY|01c70b000000000000|t|0000000bc700000000