Beispiel #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
Beispiel #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")
Beispiel #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()