Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(20)  |  Derive(0)  |  Import(2)

        def tile_watermark_placement(coord, double_spacing=False):
    if not double_spacing:
        if coord[1] % 2 == 0:
            return 'c'
        else:
            return 'b'
    
    if coord[1] % 2 != coord[0] % 2:
        return 'c'

    return None
        


src/m/a/MapProxy-1.6.0/mapproxy/test/unit/test_tilefilter.py   MapProxy(Download)
# limitations under the License.
 
from mapproxy.tilefilter import tile_watermark_placement
def test_tile_watermark_placement():
    from nose.tools import eq_
    eq_(tile_watermark_placement((0, 0, 0)), 'c')
    eq_(tile_watermark_placement((1, 0, 0)), 'c')
    eq_(tile_watermark_placement((0, 1, 0)), 'b')
    eq_(tile_watermark_placement((1, 1, 0)), 'b')

src/m/a/mapproxy-HEAD/mapproxy/test/unit/test_tilefilter.py   mapproxy(Download)
# limitations under the License.
 
from mapproxy.tilefilter import tile_watermark_placement
def test_tile_watermark_placement():
    from nose.tools import eq_
    eq_(tile_watermark_placement((0, 0, 0)), 'c')
    eq_(tile_watermark_placement((1, 0, 0)), 'c')
    eq_(tile_watermark_placement((0, 1, 0)), 'b')
    eq_(tile_watermark_placement((1, 1, 0)), 'b')