converter.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:sentinel-s3 作者: developmentseed 项目源码 文件源码
def test_wrap_coordinates(coords, origin, wgs84):
    """ Test whether coordinates wrap around the antimeridian in wgs84 """
    lon_under_minus_170 = False
    lon_over_plus_170 = False
    if isinstance(coords[0], list):
        for c in coords[0]:
            c = list(transform(origin, wgs84, *c))
            if c[0] < -170:
                lon_under_minus_170 = True
            elif c[0] > 170:
                lon_over_plus_170 = True
    else:
        return False

    return lon_under_minus_170 and lon_over_plus_170
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号