#9794: GeoDjango Distance Test Failures on Oracle 11g
---------------------------------+------------------------------------------
Reporter: jbronn | Owner: jbronn
Status: new | Milestone:
Component: GIS | Version: 1.0
Resolution: | Keywords: gis oracle 11g distance
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------+------------------------------------------
Changes (by jbronn):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Old description:
> Ran the !GeoDjango test suite on Oracle 11g and received the following
> errors:
> {{{
> ======================================================================
> FAIL: Testing GML output from the database using GeoManager.gml().
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "C:\Program
> Files\GeoDjango\Django-1.0.2-final\django\contrib\gis\tests\geoapp\tests.py",
> line 155, in test03b_gml
> self.assertEqual(True, bool(gml_regex.match(ptown.gml)))
> AssertionError: True != False
>
> ======================================================================
> FAIL: Testing the `distance` GeoQuerySet method on projected coordinate
> systems.
>
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "C:\Program
> Files\GeoDjango\Django-1.0.2-final\django\contrib\gis\tests\distapp\tests.py",
> line 129, in test03a_distance_method
> self.assertAlmostEqual(m_distances[i], c.distance.m, tol)
> AssertionError: 147075.06981300001 != 44828.570935898977 within 2 places
>
> ======================================================================
> FAIL: Testing the `distance_lt`, `distance_gt`, `distance_lte`, and
> `distance_gt
> e` lookup types.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "C:\Program
> Files\GeoDjango\Django-1.0.2-final\django\contrib\gis\tests\distapp\tests.py",
> line 200, in test04_distance_lookups
> self.assertEqual(cities, ['Bellaire', 'Pearland', 'West University
> Place'])
> AssertionError: [] != ['Bellaire', 'Pearland', 'West University Place']
>
> }}}
>
> The first failure is simply different precision values in the GML output,
> and is easily solved with a better regex in the test suite. The next two
> problems from the distance test suite, however, will require more
> investigative work.
New description:
Ran the !GeoDjango test suite on Oracle 11g and received the following
errors:
{{{
======================================================================
FAIL: Testing GML output from the database using GeoManager.gml().
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program
Files\GeoDjango\Django-1.0.2-final\django\contrib\gis\tests\geoapp\tests.py",
line 155, in test03b_gml
self.assertEqual(True, bool(gml_regex.match(ptown.gml)))
AssertionError: True != False
======================================================================
FAIL: Testing the `distance` GeoQuerySet method on projected coordinate
systems.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program
Files\GeoDjango\Django-1.0.2-final\django\contrib\gis\tests\distapp\tests.py",
line 129, in test03a_distance_method
self.assertAlmostEqual(m_distances[i], c.distance.m, tol)
AssertionError: 147075.06981300001 != 44828.570935898977 within 2 places
======================================================================
FAIL: Testing the `distance_lt`, `distance_gt`, `distance_lte`, and
`distance_gte` lookup types.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program
Files\GeoDjango\Django-1.0.2-final\django\contrib\gis\tests\distapp\tests.py",
line 200, in test04_distance_lookups
self.assertEqual(cities, ['Bellaire', 'Pearland', 'West University
Place'])
AssertionError: [] != ['Bellaire', 'Pearland', 'West University Place']
}}}
The first failure is simply different precision values in the GML output,
and is easily solved with a better regex in the test suite. The next two
problems from the distance test suite, however, will require more
investigative work.
--
Ticket URL: <http://code.djangoproject.com/ticket/9794#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---