Beispiel #1
0
def test_transfrom_and_projection():
    point = arctern.ST_GeomFromText("POINT (-73.978003 40.754594)")[0]
    top_left = "POINT (-73.984092 40.756342)"
    bottom_right = "POINT (-73.977588 40.753893)"
    src_ts = "EPSG:4326"
    dst_rs = "EPSG:3857"

    arr_wkb = pandas.Series([point])
    arctern.transform_and_projection(arr_wkb, src_ts, dst_rs, bottom_right, top_left, 200, 300)
Beispiel #2
0
def test_transfrom_and_projection():
    wkt = ["POINT (-73.978003 40.754594)"]
    top_left = "POINT (-73.984092 40.756342)"
    bottom_right = "POINT (-73.977588 40.753893)"
    src_ts = "EPSG:4326"
    dst_rs = "EPSG:3857"

    arr_wkb = pandas.Series(arctern.wkt2wkb(wkt))
    arctern.transform_and_projection(arr_wkb, src_ts, dst_rs, bottom_right, top_left, 200, 300)
Beispiel #3
0
def TransformAndProjection(geos, src_rs, dst_rs, bottom_right, top_left,
                           height, width):
    return arctern.transform_and_projection(geos, src_rs[0], dst_rs[0],
                                            bottom_right[0], top_left[0],
                                            height[0], width[0])