f8cbf652e7fc21e9f032f3a02aba9c0955147564,label_maker/utils.py,,get_tile_wms,#,90

Before Change


    // retrieve the necessary parameters from the query string
    query_dict = parse_qs(imagery.lower())
    image_format = query_dict["format"][0].split("/")[1]
    wms_srs = query_dict["srs"][0]

    // find our tile bounding box
    bound = bounds(*[int(t) for t in tile.split("-")])

After Change


    // retrieve the necessary parameters from the query string
    query_dict = parse_qs(imagery.lower())
    image_format = query_dict.get("format")[0].split("/")[1]
    wms_version = query_dict.get("version")[0]
    if wms_version == "1.3.0":
        wms_srs = query_dict.get("crs")[0]
    else:
        wms_srs = query_dict.get("srs")[0]

    // find our tile bounding box
    bound = bounds(*[int(t) for t in tile.split("-")])
    p1 = Proj({"init": "epsg:4326"})
    p2 = Proj({"init": wms_srs})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: developmentseed/label-maker
Commit Name: f8cbf652e7fc21e9f032f3a02aba9c0955147564
Time: 2019-04-04
Author: drew@developmentseed.org
File Name: label_maker/utils.py
Class Name:
Method Name: get_tile_wms


Project Name: pfnet/optuna
Commit Name: b2a87d8aac1c0cce59ea70d6a57522cbc973ad34
Time: 2021-02-17
Author: toshihiko.yanase@gmail.com
File Name: examples/pytorch_distributed_simple.py
Class Name:
Method Name:


Project Name: IDSIA/sacred
Commit Name: 958e50b6eddf4fe101cdd8aabf755e8843256b37
Time: 2016-12-01
Author: qwlouse@gmail.com
File Name: sacred/experiment.py
Class Name: Experiment
Method Name: __init__