Esempio n. 1
0
def test_Extent_castTo():
    # setup
    ex3 = Extent.fromGeom( GEOM )

    ## Projecting
    ex_cast = ex3.castTo(EPSG3035)
    assert np.isclose(ex_cast.fit(1).xyXY, (4329833, 835682, 4770009, 1681039)).all()
Esempio n. 2
0
def test_Extent_fromGeom():
    ex1 = Extent.fromGeom(GEOM)
    assert np.isclose(ex1.xMin, 10.10000)
    assert np.isclose(ex1.xMax, 14.60000)
    assert np.isclose(ex1.yMin, 30.50000)
    assert np.isclose(ex1.yMax, 38.10000)