Opened 15 years ago
Closed 13 years ago
#12307 closed Bug (worksforme)
GeoDjango test suite fails for SpatialRefSys model objects
Reported by: | Tyler Erickson | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | dev |
Severity: | Normal | Keywords: | SpatialRefSys TOWGS84 |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When running the GeoDjango test suite, two tests fail because srs.wkt includes the term TOWGS84[0,0,0,0,0,0,0],
Environment:
django: '1.2 pre-alpha SVN-11787'
postgis: 1.4.0
proj: 4.6.0
GEOS: 3.1.1
GDAL: 1.6.2
OS: Ubuntu 9.04
====================================================================== FAIL: Testing retrieval of SpatialRefSys model objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/django/django-svn-trunk/django/contrib/gis/tests/test_spatialrefsys.py", line 59, in test01_retrieve self.assertEqual(srtext, srs.wkt) AssertionError: 'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]' != u'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]' ====================================================================== FAIL: Testing getting OSR objects from SpatialRefSys model objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/django/django-svn-trunk/django/contrib/gis/tests/test_spatialrefsys.py", line 86, in test02_osr self.assertEqual(srtext, srs.wkt) AssertionError: 'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]' != 'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]'
$ sudo -u postgres psql postgis-template -c "select postgis_full_version();"
POSTGIS="1.4.0" GEOS="3.1.1-CAPI-1.6.0" PROJ="Rel. 4.6.0, 21 Dec 2007" USE_STATS (procs from 1.4.0SVN need upgrade)
Change History (3)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:3 by , 13 years ago
Easy pickings: | unset |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
UI/UX: | unset |
Note:
See TracTickets
for help on using tickets.