Exemplo n.º 1
0
def test_Location_fromPointGeom():
    l1 = Location(*xy)

    pt = geom.point(*xy, srs=4326)
    pt.TransformTo(EPSG3035)
    l2 = Location.fromPointGeom(pt)
    assert l1 == l2
Exemplo n.º 2
0
def test_Location_fromPointGeom():
    l1 = Location(*xy)

    pt = point(*xy, srs=4326)
    pt.TransformTo(EPSG3035)
    l2 = Location.fromPointGeom(pt)
    if not l1==l2: error("fromPointGeom")

    print( "Location_fromPointGeom passed")
Exemplo n.º 3
0
def test_Location_latlon():
    pt = geom.point(*xy, srs=4326)
    pt.TransformTo(EPSG3035)

    l1 = Location.fromPointGeom(pt)
    assert np.isclose(l1.latlon, (xy[1], xy[0])).all()