Ejemplo n.º 1
0
def test_epsg_treats_as_latlong_not(crs_obj):
    """EPSG does not treat this CRS as lat, lon (see also PR #1943)."""
    assert not epsg_treats_as_latlong(crs_obj)
Ejemplo n.º 2
0
def test_epsg_treats_as_latlong(crs_obj):
    """EPSG treats this CRS as lat, lon (see also PR #1943)."""
    assert epsg_treats_as_latlong(crs_obj)
Ejemplo n.º 3
0
def test_latlong_northingeasting_gdal3():
    """Check CRS created from epsg with GDAL 3."""
    assert epsg_treats_as_latlong(CRS.from_epsg(4326))
    assert epsg_treats_as_northingeasting(CRS.from_epsg(2193))
Ejemplo n.º 4
0
def test_latlong_northingeasting_gdal2(crs_obj):
    """Check CRS created from epsg with GDAL 2 always return False."""
    assert not epsg_treats_as_latlong(crs_obj)
    assert not epsg_treats_as_northingeasting(crs_obj)
Ejemplo n.º 5
0
def test_is_latlong(crs_obj, result):
    """Test if CRS should be treated as latlon."""
    assert epsg_treats_as_latlong(crs_obj) == result
Ejemplo n.º 6
0
def crs_axis_inverted(crs: CRS) -> bool:
    """Check if CRS has inverted AXIS (lat,lon) instead of (lon,lat)."""
    return epsg_treats_as_latlong(crs) or epsg_treats_as_northingeasting(crs)