@@ -10,6 +10,7 @@ test('Reading MultiPatchRecord with Z', async () => {
1010
1111 expect ( reader . recordCount ) . toEqual ( 1 ) ;
1212 let geom = expectGeometry ( reader , 0 , CoordType . XYZM , MultiPatchRecord ) ;
13+ expect ( geom . type ) . toEqual ( 'MultiPolygon' ) ;
1314 expect ( geom . coords . length ) . toEqual ( 12 ) ;
1415 let polygon = geom . coords [ 0 ] ;
1516 expectRing ( polygon [ 0 ] , [
@@ -116,6 +117,7 @@ test('Reading MultiPatchRecord with Outer/Inner Rings', async () => {
116117 expect ( reader . recordCount ) . toEqual ( 1 ) ;
117118
118119 let geom = expectGeometry ( reader , 0 , CoordType . XYZM , MultiPatchRecord ) ;
120+ expect ( geom . type ) . toEqual ( 'Polygon' ) ;
119121 expect ( geom . coords . length ) . toBe ( 1 ) ;
120122 let polygon = geom . coords [ 0 ] ;
121123 expect ( polygon . length ) . toBe ( 3 ) ;
@@ -150,6 +152,7 @@ test('Reading MultiPatchRecord with First Ring and Rings', async () => {
150152 expect ( reader . recordCount ) . toEqual ( 1 ) ;
151153
152154 let geom = expectGeometry ( reader , 0 , CoordType . XYZM , MultiPatchRecord ) ;
155+ expect ( geom . type ) . toEqual ( 'Polygon' ) ;
153156 expect ( geom . coords . length ) . toBe ( 1 ) ;
154157 let polygon = geom . coords [ 0 ] ;
155158 expect ( polygon . length ) . toBe ( 3 ) ;
@@ -184,6 +187,7 @@ test('Reading MultiPatchRecord with First Ring and Rings', async () => {
184187 expect ( reader . recordCount ) . toEqual ( 1 ) ;
185188
186189 let geom = expectGeometry ( reader , 0 , CoordType . XYZM , MultiPatchRecord ) ;
190+ expect ( geom . type ) . toEqual ( 'MultiPolygon' ) ;
187191 expect ( geom . coords . length ) . toBe ( 3 ) ;
188192 let polygon = geom . coords [ 0 ] ;
189193 expect ( polygon . length ) . toBe ( 1 ) ;
0 commit comments