I ran (some?) Geodjango tests with:
Django 1.4
GDAL 1.9.1
GEOS 3.2.2
PostGIS 1.5.3
Proj 4.7.0
Libspatialite 2.4.0-RC4
I used settings like described here:
https://docs.djangoproject.com/en/dev/ref/contrib/gis/testing/#geodjango-tests
$ python manage.py test --settings=postgis
Can you please look through the results? Do I need to run further tests
than that?
Volker
Creating test database for alias 'default'...
.....
BEGIN - expecting GEOS_ERROR; safe to ignore.
GEOS_ERROR: ParseException: Expected number but encountered ','
GEOS_ERROR: ParseException: Unknown WKB type 255
GEOS_ERROR: ParseException: Unexpected EOF parsing WKB
END - expecting GEOS_ERROR; safe to ignore.
.....F........
BEGIN - expecting GEOS_NOTICE; safe to ignore.
GEOS_NOTICE: Duplicate Rings at or near point 60 300
END - expecting GEOS_NOTICE; safe to ignore.
.....................
BEGIN - expecting Warnings; safe to ignore.
/usr/lib/python2.7/site-packages/django/contrib/gis/geos/tests/test_geos.py:907: UserWarning: Calling transform() with no SRID set does no transformation!
g.transform(2774)
/usr/lib/python2.7/site-packages/django/contrib/gis/geos/tests/test_geos.py:907: FutureWarning: Calling transform() with no SRID will raise GEOSException in v1.5
g.transform(2774)
END - expecting Warnings; safe to ignore.
.....
BEGIN - expecting GEOS_NOTICE; safe to ignore.
GEOS_NOTICE: Too few points in geometry component at or near point 0 0
END - expecting GEOS_NOTICE; safe to ignore.
.............................................................
BEGIN - expecting out of range feature id error; safe to ignore.
ERROR 1: Attempt to read shape with feature id (50000) out of available
range.
ERROR 1: Attempt to read shape with feature id (50000) out of available
range.
END - expecting out of range feature id error; safe to ignore.
....F..................F......
BEGIN - expecting IllegalArgumentException; safe to ignore.
ERROR 1: IllegalArgumentException: Points of LinearRing do not form a
closed linestring
END - expecting IllegalArgumentException; safe to ignore.
...........................................................................................................................F..........
======================================================================
FAIL: test01i_json
(django.contrib.gis.geos.tests.test_geos.GEOSTest)
Testing GeoJSON input/output (via
GDAL).
----------------------------------------------------------------------
Traceback (most recent call
last):
File
"/usr/lib/python2.7/site-packages/django/contrib/gis/geos/tests/test_geos.py", line 200, in test01i_json
self.assertEqual(g.json,
geom.json)
AssertionError: '{ "type": "Point", "coordinates": [ 100.000000,
0.000000 ] }' != '{ "type": "Point", "coordinates": [ 100.0, 0.0
] }'
======================================================================
FAIL: test05_geometries
(django.contrib.gis.gdal.tests.test_ds.DataSourceTest)
Testing Geometries from Data Source
Features.
----------------------------------------------------------------------
Traceback (most recent call
last):
File
"/usr/lib/python2.7/site-packages/django/contrib/gis/gdal/tests/test_ds.py", line 184, in test05_geometries
self.assertEqual(source.srs_wkt,
g.srs.wkt)
AssertionError:
'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_84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]'
======================================================================
FAIL: test01e_json
(django.contrib.gis.gdal.tests.test_geom.OGRGeomTest)
Testing GeoJSON
input/output.
----------------------------------------------------------------------
Traceback (most recent call
last):
File
"/usr/lib/python2.7/site-packages/django/contrib/gis/gdal/tests/test_geom.py", line 115, in test01e_json
self.assertEqual(g.json,
geom.json)
AssertionError: '{ "type": "Point", "coordinates": [ 100.000000,
0.000000 ] }' != '{ "type": "Point", "coordinates": [ 100.0, 0.0 ] }'
======================================================================
FAIL: test_time_field
(django.contrib.gis.tests.inspectapp.tests.OGRInspectTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.7/site-packages/django/contrib/gis/tests/inspectapp/tests.py", line 87, in test_time_field
self.assertEqual(model_def, '\n'.join(expected))
AssertionError: '# 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.DecimalField(max_digits=0, decimal_places=0)\n f_float =
models.FloatField()\n f_int = models.IntegerField()\n f_char =
models.CharField(max_length=10)\n f_date = models.DateField()\n
f_datetime = models.DateTimeField()\n f_time = models.TimeField()\n
geom = models.PolygonField()\n objects = models.GeoManager()' != '#
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.DecimalField(max_digits=0, decimal_places=0)\n f_int =
models.IntegerField()\n f_datetime = models.DateTimeField()\n
f_time = models.TimeField()\n f_float = models.FloatField()\n
f_char = models.CharField(max_length=10)\n f_date =
models.DateField()\n geom = models.PolygonField()\n objects =
models.GeoManager()'
----------------------------------------------------------------------
Ran 270 tests in 11.068s
FAILED (failures=4)
Destroying test database for alias 'default'...