====================================================================== ERROR: test_closepolygons (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing closing Polygon objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 245, in test_closepolygons self.assertEqual(OGRGeometry('POINT(2.5 2.5)'), poly.centroid) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 657, in centroid capi.get_centroid(self.ptr, p.ptr) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 118, in check_errcode check_err(result, cpl=cpl) File "/media/sf_django/django/contrib/gis/gdal/error.py", line 73, in check_err raise e(msg) django.contrib.gis.gdal.error.GDALException: OGR failure. ====================================================================== ERROR: test_difference (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing difference(). ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 362, in test_difference d2 = a.difference(b) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 493, in difference return self._geomgen(capi.geom_diff, other) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 471, in _geomgen return OGRGeometry(gen_func(self.ptr, other.ptr), self.srs) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 84, in check_geom raise GDALException('Invalid geometry pointer returned from "%s".' % func.__name__) django.contrib.gis.gdal.error.GDALException: Invalid geometry pointer returned from "OGR_G_Difference". ====================================================================== ERROR: test_intersection (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing intersects() and intersection(). ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 375, in test_intersection i2 = a.intersection(b) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 500, in intersection return self._geomgen(capi.geom_intersection, other) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 471, in _geomgen return OGRGeometry(gen_func(self.ptr, other.ptr), self.srs) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 84, in check_geom raise GDALException('Invalid geometry pointer returned from "%s".' % func.__name__) django.contrib.gis.gdal.error.GDALException: Invalid geometry pointer returned from "OGR_G_Intersection". ====================================================================== ERROR: test_polygons (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing Polygon objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 218, in test_polygons x, y = poly.centroid.tuple File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 657, in centroid capi.get_centroid(self.ptr, p.ptr) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 118, in check_errcode check_err(result, cpl=cpl) File "/media/sf_django/django/contrib/gis/gdal/error.py", line 73, in check_err raise e(msg) django.contrib.gis.gdal.error.GDALException: OGR failure. ====================================================================== ERROR: test_srs (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing OGR Geometries with Spatial Reference objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 286, in test_srs diff = a.difference(b) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 493, in difference return self._geomgen(capi.geom_diff, other) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 471, in _geomgen return OGRGeometry(gen_func(self.ptr, other.ptr), self.srs) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 84, in check_geom raise GDALException('Invalid geometry pointer returned from "%s".' % func.__name__) django.contrib.gis.gdal.error.GDALException: Invalid geometry pointer returned from "OGR_G_Difference". ====================================================================== ERROR: test_symdifference (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing sym_difference(). ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 387, in test_symdifference d2 = a.sym_difference(b) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 507, in sym_difference return self._geomgen(capi.geom_sym_diff, other) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 471, in _geomgen return OGRGeometry(gen_func(self.ptr, other.ptr), self.srs) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 84, in check_geom raise GDALException('Invalid geometry pointer returned from "%s".' % func.__name__) django.contrib.gis.gdal.error.GDALException: Invalid geometry pointer returned from "OGR_G_SymmetricDifference". ====================================================================== ERROR: test_union (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing union(). ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 399, in test_union u2 = a.union(b) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 514, in union return self._geomgen(capi.geom_union, other) File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 471, in _geomgen return OGRGeometry(gen_func(self.ptr, other.ptr), self.srs) File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 84, in check_geom raise GDALException('Invalid geometry pointer returned from "%s".' % func.__name__) django.contrib.gis.gdal.error.GDALException: Invalid geometry pointer returned from "OGR_G_Union". ====================================================================== FAIL: test_azimuth (gis_tests.geoapp.test_functions.GISFunctionsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/django/test/testcases.py", line 1080, in skip_wrapper return test_func(*args, **kwargs) File "/media/sf_django/tests/gis_tests/geoapp/test_functions.py", line 152, in test_azimuth self.assertAlmostEqual(City.objects.annotate(azimuth=azimuth_expr).first().azimuth, math.pi / 4) AssertionError: 0.7886800845256322 != 0.7853981633974483 within 7 places ====================================================================== FAIL: test_date_field (gis_tests.inspectapp.tests.OGRInspectTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/inspectapp/tests.py", line 107, in test_date_field self.assertEqual(model_def, '\n'.join(expected)) AssertionError: '# Th[270 chars]ed = models.DateField()\n geom = models.PointField()' != '# Th[270 chars]ed = models.DateField()\n geom = models.PointField(srid=-1)' # This is an auto-generated Django model module created by ogrinspect. from django.contrib.gis.db import models class City(models.Model): name = models.CharField(max_length=80) population = models.BigIntegerField() density = models.FloatField() created = models.DateField() - geom = models.PointField()+ geom = models.PointField(srid=-1)? +++++++ ====================================================================== FAIL: test_poly (gis_tests.inspectapp.tests.OGRInspectTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/inspectapp/tests.py", line 80, in test_poly self.assertEqual(model_def, '\n'.join(expected)) AssertionError: '# Th[231 chars]rField(max_length=80)\n geom = models.PolygonField()' != '# Th[231 chars]rField(max_length=80)\n geom = models.PolygonField(srid=-1)' # This is an auto-generated Django model module created by ogrinspect. from django.contrib.gis.db import models class MyModel(models.Model): float = models.FloatField() int = models.BigIntegerField() str = models.CharField(max_length=80) - geom = models.PolygonField()+ geom = models.PolygonField(srid=-1)? +++++++ ====================================================================== FAIL: test_poly_multi (gis_tests.inspectapp.tests.OGRInspectTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/inspectapp/tests.py", line 85, in test_poly_multi self.assertIn('geom = models.MultiPolygonField(srid=-1)', model_def) AssertionError: 'geom = models.MultiPolygonField(srid=-1)' not found in '# This is an auto-generated Django model module created by ogrinspect.\nfrom django.contrib.gis.db import models\n\nclass MyModel(models.Model):\n float = models.FloatField()\n int = models.BigIntegerField()\n str = models.CharField(max_length=80)\n geom = models.MultiPolygonField()' ====================================================================== FAIL: test_time_field (gis_tests.inspectapp.tests.OGRInspectTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/inspectapp/tests.py", line 133, in test_time_field self.assertIn(' f_decimal = models.DecimalField(max_digits=0, decimal_places=0)', model_def) AssertionError: ' f_decimal = models.DecimalField(max_digits=0, decimal_places=0)' not found in '# This is an auto-generated Django model module created by ogrinspect.\nfrom django.contrib.gis.db import models\n\nclass Measurement(models.Model):\n f_decimal = models.CharField(max_length=0)\n f_float = models.CharField(max_length=0)\n f_int = models.IntegerField()\n f_char = models.CharField(max_length=0)\n f_date = models.DateField()\n f_datetime = models.DateTimeField()\n f_time = models.TimeField()\n geom = models.PolygonField()' ====================================================================== FAIL: test05_geometries (gis_tests.gdal_tests.test_ds.DataSourceTest) Testing Geometries from Data Source Features. ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_ds.py", line 216, in test05_geometries g.srs.wkt.replace('SPHEROID["WGS_84"', 'SPHEROID["WGS_1984"') AssertionError: 'GEOG[100 chars],UNIT["Degree",0.017453292519943295]]' != 'GEOG[100 chars],UNIT["Degree",0.017453292519943295],AUTHORITY["EPSG","4326"]]' - GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] + GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295],AUTHORITY["EPSG","4326"]] ? +++++++++++++++++++++++++ ====================================================================== FAIL: test_contains (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 493, in test_contains self.assertIs(OGRGeometry('POINT(0 0)').contains(OGRGeometry('POINT(0 0)')), True) AssertionError: False is not True ====================================================================== FAIL: test_crosses (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 497, in test_crosses self.assertIs(OGRGeometry('LINESTRING(0 0, 1 1)').crosses(OGRGeometry('LINESTRING(0 1, 1 0)')), True) AssertionError: False is not True ====================================================================== FAIL: test_disjoint (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 502, in test_disjoint self.assertIs(OGRGeometry('LINESTRING(0 0, 0 1)').disjoint(OGRGeometry('LINESTRING(1 0, 1 1)')), True) AssertionError: False is not True ====================================================================== FAIL: test_equals (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 505, in test_equals self.assertIs(OGRGeometry('POINT(0 0)').contains(OGRGeometry('POINT(0 0)')), True) AssertionError: False is not True ====================================================================== FAIL: test_overlaps (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 516, in test_overlaps ), True AssertionError: False is not True ====================================================================== FAIL: test_touches (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 522, in test_touches OGRGeometry('POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))').touches(OGRGeometry('LINESTRING(0 2, 2 0)')), True AssertionError: False is not True ====================================================================== FAIL: test_within (gis_tests.gdal_tests.test_geom.OGRGeomTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 528, in test_within OGRGeometry('POINT(0.5 0.5)').within(OGRGeometry('POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))')), True AssertionError: False is not True