class_docstr: Test of the SpatialPandasInterface.
class_docstr_tok: ["Test","of","the","SpatialPandasInterface","."]
code: def test_geometry_array_constructor(self):
      polygons = MultiPolygonArray(
          [
              # First Element
              [
                  [
                      [
                          0,
                          0,
                          1,
                          0,
                          2,
                          2,
                          -1,
                          4,
                          0,
                          0,
                      ],  # Filled quadrilateral (CCW order)
                      [
                          0.5,
                          1,
                          1,
                          2,
                          1.5,
                          1.5,
                          0.5,
                          1,
                      ],  # Triangular hole (CW order)
                      [0, 2, 0, 2.5, 0.5, 2.5, 0.5, 2, 0, 2],
                  ],  # Rectangular hole (CW order)
                  [[-0.5, 3, 1.5, 3, 1.5, 4, -0.5, 3]],
              ],  # Filled triangle
              # Second Element
              [
                  [
                      [
                          1.25,
                          0,
                          1.25,
                          2,
                          4,
                          2,
                          4,
                          0,
                          1.25,
                          0,
                      ],  # Filled rectangle (CCW order)
                      [
                          1.5,
                          0.25,
                          3.75,
                          0.25,
                          3.75,
                          1.75,
                          1.5,
                          1.75,
                          1.5,
                          0.25,
                      ],
                  ],
              ],
          ]
      )  # Rectangular hole (CW order)
  
      path = Polygons(polygons)
      self.assertIsInstance(path.data.geometry.dtype, MultiPolygonDtype)
  
imports: from unittest import SkipTest
  import numpy
  from holoviews.core.data import DaskSpatialPandasInterface, Dataset, SpatialPandasInterface
  from holoviews.core.data.interface import DataError
  from holoviews.element import Path, Points, Polygons
  from holoviews.element.comparison import ComparisonTestCase
  from .test_multiinterface import GeomTests
label_desc: Use image node_id 9 for calling the SpatialPandasTest obj's underlying member method code with example usage: obj.test_geometry_array_constructor() without return types