(ob)
return (lgeos.GEOSGeom_createCollection(6, subs, L), N)
ob must provide Python geo interface coordinates.
ob must provide Python geo interface coordinates.
ob must provide Python geo interface coordinates .
def geos_multipolygon_from_py(ob):
    """ob must provide Python geo interface coordinates."""
    L = len(ob)
    assert L >= 1
    
    N = len(ob[0][0][0])
    assert N == 2 or N == 3

    subs = (c_void_p * L)()
    for l in range(L):
        geom, ndims = polygon.geos_polygon_from_py(ob[l][0], ob[l][1:])
        subs[l] = cast(geom, c_void_p)
            
    return (lgeos.GEOSGeom_createCollection(6, subs, L), N)
def geos_multipolygon_from_py ( ob ) : L = len ( ob ) assert L >= 1 N = len ( ob [ 0 ] [ 0 ] [ 0 ] ) assert N == 2 or N == 3 subs = ( c_void_p * L ) ( ) for l in range ( L ) : geom , ndims = polygon . geos_polygon_from_py ( ob [ l ] [ 0 ] , ob [ l ] [ 1 : ] ) subs [ l ] = cast ( geom , c_void_p ) return ( lgeos . GEOSGeom_createCollection ( 6 , subs , L ) , N )