def test_not_equal2(self): WGS84 = crs.ProjectedCRS("+proj=longlat +datum=WGS84 +no_defs", name="WGS84 (Geographical)") WGS84_ = crs.ProjectedCRS("+proj=longlat +datum=WGS84 +no_defs", name="WGS84 (Geographical)") self.assertTrue(not WGS84 != WGS84_)
def test_not_equal1(self): WGS84 = crs.ProjectedCRS("+proj=longlat +datum=WGS84 +no_defs", name="WGS84 (Geographical)") NAD83 = crs.ProjectedCRS("+proj=longlat +datum=NAD83 +no_defs", name="NAD83 (Geographical)") self.assertTrue(WGS84 != NAD83) return
def test_ConstructProj4(self): # Canonical constructor crs.ProjectedCRS("+proj=longlat +datum=WGS84 +no_defs", "+ellps=WGS84") # Combine ellipsoid information into projection information crs.ProjectedCRS("+proj=longlat +ellps=WGS84 +no_defs") # Fail if no geodetic information given self.assertRaises(karta.errors.CRSError, lambda: crs.ProjectedCRS("+proj=longlat +no_defs"))