def _load_multilinestring(tokens, string):
    """
    Has similar inputs and return value to to :func:`_load_point`, except is
    for handling MULTILINESTRING geometry.

    :returns:
        A GeoJSON `dict` MultiLineString representation of the WKT ``string``.
    """
    open_paren = next(tokens)
    if not open_paren == '(':
        raise ValueError(INVALID_WKT_FMT % string)

    linestrs = []
    while True:
        try:
            linestr = _load_linestring(tokens, string)
            linestrs.append(linestr['coordinates'])
            t = next(tokens)
            if t == ')':
                # we're done; no more linestrings.
                break
        except StopIteration:
            # If we reach this, the WKT is not valid.
            raise ValueError(INVALID_WKT_FMT % string)

    return dict(type='MultiLineString', coordinates=linestrs)
def _load_multilinestring ( tokens , string ) : open_paren = next ( tokens ) if not open_paren == '(' : raise ValueError ( INVALID_WKT_FMT % string ) linestrs = [ ] while True : try : linestr = _load_linestring ( tokens , string ) linestrs . append ( linestr [ 'coordinates' ] ) t = next ( tokens ) if t == ')' : break except StopIteration : raise ValueError ( INVALID_WKT_FMT % string ) return dict ( type = 'MultiLineString' , coordinates = linestrs )
Has similar inputs and return value to to :func:`_load_point`, except is
    for handling MULTILINESTRING geometry.

    :returns:
        A GeoJSON `dict` MultiLineString representation of the WKT ``string``.