..ss.....E....EE...sssssss...ss....E.s.E.E....EE.....ss......ss.s.ss..........E............E......ss...s..s...E.........s..s.ssE......FsEEE.EEEEE.E..E..........................F....EFFEF..F........E.......EF..E.EEEFEEF...............F.E..........................E....E.................................................EE....................s.ss..sssssssssssssssss..E....E.......EEEEEEEsssssssss.............................E...........................................................
======================================================================
ERROR: test_distance_transform (gis_tests.distapp.tests.DistanceFunctionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/distapp/tests.py", line 437, in test_distance_transform
    buf2 = buf1.transform(4269, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_distance_lookups (gis_tests.distapp.tests.DistanceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/distapp/tests.py", line 113, in test_distance_lookups
    stx_pnt = self.stx_pnt.transform(model._meta.get_field('point').srid, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_distance_lookups_with_expression_rhs (gis_tests.distapp.tests.DistanceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/distapp/tests.py", line 190, in test_distance_lookups_with_expression_rhs
    stx_pnt = self.stx_pnt.transform(SouthTexasCity._meta.get_field('point').srid, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_olwidget_has_changed (gis_tests.geoadmin.tests.GeoAdminTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geoadmin/tests.py", line 68, in test_olwidget_has_changed
    self.assertFalse(has_changed(initial, data_same))
  File "/media/sf_django/django/contrib/gis/forms/fields.py", line 93, in has_changed
    data.transform(initial.srid)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_geometry_value_annotation_different_srid (gis_tests.geoapp.test_expressions.GeoExpressionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/geoapp/test_expressions.py", line 25, in test_geometry_value_annotation_different_srid
    self.assertTrue(point.equals_exact(p.transform(4326, clone=True), 10 ** -5))
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_update_from_other_field (gis_tests.geoapp.test_expressions.GeoExpressionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geoapp/test_expressions.py", line 40, in test_update_from_other_field
    point3=p2.transform(3857, clone=True),
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_area_lookups (gis_tests.geoapp.test_functions.GISFunctionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/geoapp/test_functions.py", line 303, in test_area_lookups
    for c in Country.objects.all()
  File "/media/sf_django/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/media/sf_django/django/db/models/query.py", line 454, in bulk_create
    objs = list(objs)
  File "/media/sf_django/tests/gis_tests/geoapp/test_functions.py", line 303, in <genexpr>
    for c in Country.objects.all()
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_area_with_regular_aggregate (gis_tests.geoapp.test_functions.GISFunctionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/geoapp/test_functions.py", line 286, in test_area_with_regular_aggregate
    CountryWebMercator.objects.create(name=c.name, mpoly=c.mpoly.transform(3857, clone=True))
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_union_mixed_srid (gis_tests.geoapp.test_functions.GISFunctionsTests)
The result SRID depends on the order of parameters.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/geoapp/test_functions.py", line 553, in test_union_mixed_srid
    geom_3857 = geom.transform(3857, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_srid_option (gis_tests.geoapp.test_serializers.GeoJSONSerializerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geoapp/test_serializers.py", line 78, in test_srid_option
    geojson = serializers.serialize('geojson', City.objects.all().order_by('name'), srid=2847)
  File "/media/sf_django/django/core/serializers/__init__.py", line 128, in serialize
    s.serialize(queryset, **options)
  File "/media/sf_django/django/core/serializers/base.py", line 112, in serialize
    self.end_object(obj)
  File "/media/sf_django/django/core/serializers/json.py", line 53, in end_object
    json.dump(self.get_dump_object(obj), self.stream, **self.json_kwargs)
  File "/media/sf_django/django/contrib/gis/serializers/geojson.py", line 51, in get_dump_object
    self._cts[self._geometry.srid] = CoordTransform(self._geometry.srs, srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

======================================================================
ERROR: test_lookup_insert_transform (gis_tests.geoapp.tests.GeoModelTest)
Testing automatic transform for lookups and inserts.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/testcases.py", line 1096, in skip_wrapper
    return test_func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/geoapp/tests.py", line 103, in test_lookup_insert_transform
    other_srid_pnt = wgs_pnt.transform(3857, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test05_geography_layermapping (gis_tests.geogapp.tests.GeographyTest)
Testing LayerMapping support on models with geography fields.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geogapp/tests.py", line 79, in test05_geography_layermapping
    lm = LayerMapping(County, co_shp, co_mapping, source_srs=4269, unique='name')
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_layermapping_default_db (gis_tests.layermap.tests.LayerMapRouterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 337, in test_layermapping_default_db
    lm = LayerMapping(City, city_shp, city_mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_charfield_too_short (gis_tests.layermap.tests.LayerMapTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 292, in test_charfield_too_short
    lm = LayerMapping(City, city_shp, mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_encoded_name (gis_tests.layermap.tests.LayerMapTest)
Test a layer containing utf-8-encoded name
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 308, in test_encoded_name
    lm = LayerMapping(City, city_shp, city_mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_invalid_layer (gis_tests.layermap.tests.LayerMapTest)
Tests LayerMapping on invalid geometries.  See #15378.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 286, in test_invalid_layer
    source_srs=4326)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_layermap_strict (gis_tests.layermap.tests.LayerMapTest)
Testing the `strict` keyword, and import of a LineString shapefile.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 88, in test_layermap_strict
    lm = LayerMapping(Interstate, inter_shp, inter_mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_layermap_unique_multigeometry_fk (gis_tests.layermap.tests.LayerMapTest)
Testing the `unique`, and `transform`, geometry collection conversion, and ForeignKey mappings.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 139, in test_layermap_unique_multigeometry_fk
    lm = LayerMapping(County, co_shp, co_mapping, source_srs=4269)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_model_inheritance (gis_tests.layermap.tests.LayerMapTest)
Tests LayerMapping on inherited models.  See #12093.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 272, in test_model_inheritance
    lm1 = LayerMapping(ICity1, city_shp, icity_mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_simple_layermap (gis_tests.layermap.tests.LayerMapTest)
Test LayerMapping import of a simple point shapefile.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 62, in test_simple_layermap
    lm = LayerMapping(City, city_shp, city_mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test_textfield (gis_tests.layermap.tests.LayerMapTest)
String content fits also in a TextField
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 455, in coord_transform
    return CoordTransform(self.source_srs, target_srs)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/layermap/tests.py", line 300, in test_textfield
    lm = LayerMapping(City, city_shp, mapping)
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 120, in __init__
    self.transform = self.coord_transform()
  File "/media/sf_django/django/contrib/gis/utils/layermapping.py", line 459, in coord_transform
    ) from exc
django.contrib.gis.utils.layermapping.LayerMapError: Could not translate between the data source and model geometry.

======================================================================
ERROR: test06_f_expressions (gis_tests.relatedapp.tests.RelatedGeoModelTest)
Testing F() expressions on GeometryFields.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/relatedapp/tests.py", line 124, in test06_f_expressions
    c2 = c1.transform(2276, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
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 258, in test_closepolygons
    self.assertEqual(OGRGeometry('POINT(2.5 2.5)'), poly.centroid)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 639, 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 59, 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 376, in test_difference
    d2 = a.difference(b)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 485, in difference
    return self._geomgen(capi.geom_diff, other)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 463, 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 389, in test_intersection
    i2 = a.intersection(b)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 492, in intersection
    return self._geomgen(capi.geom_intersection, other)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 463, 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_ogrgeometry_transform_workaround (gis_tests.gdal_tests.test_geom.OGRGeomTest)
Testing coordinate dimensions on geometries after transformation.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 488, in test_ogrgeometry_transform_workaround
    geom.transform(srid)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
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 223, in test_polygons
    x, y = poly.centroid.tuple
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 639, 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 59, 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 300, in test_srs
    diff = a.difference(b)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 485, in difference
    return self._geomgen(capi.geom_diff, other)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 463, 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_srs_transform (gis_tests.gdal_tests.test_geom.OGRGeomTest)
Testing transform().
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 342, in test_srs_transform
    t1.transform(trans.srid)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
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 401, in test_symdifference
    d2 = a.sym_difference(b)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 499, in sym_difference
    return self._geomgen(capi.geom_sym_diff, other)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 463, 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_transform_dim (gis_tests.gdal_tests.test_geom.OGRGeomTest)
Testing coordinate dimension is the same on transformed geometries.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/gdal_tests/test_geom.py", line 364, in test_transform_dim
    ls_orig.transform(ls_trans.srs)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 408, in transform
    capi.geom_transform_to(self.ptr, coord_trans.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
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 413, in test_union
    u2 = a.union(b)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 506, in union
    return self._geomgen(capi.geom_union, other)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 463, 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".

======================================================================
ERROR: test_raster_transform (gis_tests.gdal_tests.test_raster.GDALRasterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/gdal_tests/test_raster.py", line 516, in test_raster_transform
    target = source.transform(3086)
  File "/media/sf_django/django/contrib/gis/gdal/raster/source.py", line 435, in transform
    algorithm, max_error, c_void_p()
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 128, in check_pointer
    raise GDALException('Invalid pointer returned from "%s"' % func.__name__)
django.contrib.gis.gdal.error.GDALException: Invalid pointer returned from "GDALAutoCreateWarpedVRT"

======================================================================
ERROR: test_custom_srid (gis_tests.geos_tests.test_geos.GEOSTest)
Test with a null srid and a srid unknown to GDAL.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geos_tests/test_geos.py", line 798, in test_custom_srid
    gdal.SpatialReference(4326))
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

======================================================================
ERROR: test_empty_point (gis_tests.geos_tests.test_geos.GEOSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geos_tests/test_geos.py", line 1403, in test_empty_point
    self.assertEqual(p.transform(2774, clone=True), Point(srid=2774))
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_transform (gis_tests.geos_tests.test_geos.GEOSTest)
Testing `transform` method.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geos_tests/test_geos.py", line 1102, in test_transform
    t1.transform(trans.srid)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_transform_3d (gis_tests.geos_tests.test_geos.GEOSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/geos_tests/test_geos.py", line 1120, in test_transform_3d
    p3d.transform(2774)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_field_string_value (gis_tests.test_geoforms.GeometryFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 129, in test_field_string_value
    pt1_expected = GEOSGeometry(form.data['pt1']).transform(3857, clone=True)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_srid (gis_tests.test_geoforms.GeometryFieldTest)
Testing GeometryField with a SRID set.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 26, in test_srid
    geom = fld.clean('POINT(5 23)')
  File "/media/sf_django/django/contrib/gis/forms/fields.py", line 75, in clean
    geom.transform(self.srid)
  File "/media/sf_django/django/contrib/gis/geos/geometry.py", line 466, in transform
    g.transform(ct)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_geometrycollectionfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 315, in test_geometrycollectionfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_linestringfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 263, in test_linestringfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_multilinestringfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 276, in test_multilinestringfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_multipointfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 250, in test_multipointfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_multipolygonfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 302, in test_multipolygonfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_pointfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/django/test/utils.py", line 367, in inner
    return func(*args, **kwargs)
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 234, in test_pointfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test_polygonfield (gis_tests.test_geoforms.SpecializedFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 289, in test_polygonfield
    self.assertTextarea(geom, form.as_p())
  File "/media/sf_django/tests/gis_tests/test_geoforms.py", line 223, in assertTextarea
    ogr.transform(3857)
  File "/media/sf_django/django/contrib/gis/gdal/geometries.py", line 411, in transform
    capi.geom_transform_to(self.ptr, sr.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 59, in check_err
    raise e(msg)
django.contrib.gis.gdal.error.GDALException: OGR failure.

======================================================================
ERROR: test12_coordtransform (gis_tests.gdal_tests.test_srs.SpatialRefTest)
Testing initialization of a CoordTransform.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/gdal_tests/test_srs.py", line 246, in test12_coordtransform
    CoordTransform(SpatialReference(srlist[0].wkt), target)
  File "/media/sf_django/django/contrib/gis/gdal/srs.py", line 330, in __init__
    self.ptr = capi.new_ct(source._ptr, target._ptr)
  File "/media/sf_django/django/contrib/gis/gdal/prototypes/errcheck.py", line 100, in check_srs
    raise SRSException('Invalid spatial reference pointer returned from "%s".' % func.__name__)
django.contrib.gis.gdal.error.SRSException: Invalid spatial reference pointer returned from "OCTNewCoordinateTransformation".

======================================================================
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 91, in test_poly_multi
    self.assertIn('geom = models.MultiLineStringField(srid=-1)', model_def)
AssertionError: 'geom = models.MultiLineStringField(srid=-1)' not found in '# This is an auto-generated Django model module created by ogrinspect.\nfrom django.contrib.gis.db import models\n\n\nclass MyModel(models.Model):\n    laenge = models.FloatField()\n    breite = models.FloatField()\n    nummer = models.BigIntegerField()\n    geom = models.MultiLineStringField(srid=31253)'

======================================================================
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 230, in test05_geometries
    self.assertIsNotNone(re.match(wgs_84_wkt_regex, g.srs.wkt))
AssertionError: unexpectedly None

======================================================================
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 507, 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 511, 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 516, 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 519, 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 530, 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 536, 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 542, 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

======================================================================
FAIL: test_raster_info_accessor (gis_tests.gdal_tests.test_raster.GDALRasterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/sf_django/tests/gis_tests/gdal_tests/test_raster.py", line 373, in test_raster_info_accessor
    self.assertEqual(info_dyn, info_ref)
AssertionError: Lists differ: ['Dri[1182 chars].377)', 'Lower Left  (  511700.468,  417703.37[198 chars]=15'] != ['Dri[1182 chars].377) ( 82d51\'46.16"W, 27d55\' 1.53"N)', 'Low[368 chars]=15']

First differing element 35:
'Upper Left  (  511700.468,  435103.377)'
'Upper Left  (  511700.468,  435103.377) ( 82d51\'46.16"W, 27d55\' 1.53"N)'

Diff is 1968 characters long. Set self.maxDiff to None to see it.

----------------------------------------------------------------------
Ran 482 tests in 10.951s

FAILED (failures=10, errors=47, skipped=57)
GEOS b'3.6.2-CAPI-1.10.2 4d2925d6'
GDAL (2, 3, 0)
Testing against Django installed in '/media/sf_django/django'
Creating test database for alias 'default'...
Creating test database for alias 'other'...
System check identified no issues (1 silenced).
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
