Ejemplo n.º 1
0
def multi_subbasin(parent_aoi, child_shapes, layer_overrides={}):
    shapes = [{'id': wkaoi, 'shape': aoi} for (wkaoi, _, aoi) in child_shapes]
    datasource = get_layer_value('__STREAMS__', layer_overrides)
    stream_lines = streams(parent_aoi, datasource)

    return multi.s('mapshed',
                   shapes,
                   stream_lines,
                   layer_overrides=layer_overrides)
Ejemplo n.º 2
0
def multi_mapshed(aoi, wkaoi, layer_overrides={}):
    shape = [{'id': wkaoi or NOCACHE, 'shape': aoi}]
    datasource = get_layer_value('__STREAMS__', layer_overrides)
    stream_lines = streams(aoi, datasource)

    return multi.s('mapshed',
                   shape,
                   stream_lines,
                   layer_overrides=layer_overrides)
Ejemplo n.º 3
0
def multi_subbasin(parent_aoi, child_shapes):
    shapes = [{'id': wkaoi, 'shape': aoi}
              for (wkaoi, _, aoi) in child_shapes]
    stream_lines = streams(parent_aoi)[0]

    return multi.s('mapshed', shapes, stream_lines)
Ejemplo n.º 4
0
def multi_mapshed(aoi, wkaoi):
    shape = [{'id': wkaoi or NOWKAOI, 'shape': aoi}]
    stream_lines = streams(aoi)[0]

    return multi.s('mapshed', shape, stream_lines)