#9295: Better error handling and/or error reporting when Proj.4 datum shifting
files are not found
----------------------------------+-----------------------------------------
          Reporter:  springmeyer  |         Owner:  nobody                      
                                            
            Status:  new          |     Milestone:  post-1.0                    
                                            
         Component:  GIS          |       Version:  1.0                         
                                            
        Resolution:               |      Keywords:  proj4, datum shifing, 
geodjango-basic-apps, postgis, 900913, projections
             Stage:  Unreviewed   |     Has_patch:  0                           
                                            
        Needs_docs:  0            |   Needs_tests:  0                           
                                            
Needs_better_patch:  0            |  
----------------------------------+-----------------------------------------
Changes (by springmeyer):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 For the sake of google indexing, here's the whole error which I could
 prompt by moving the folder '/usr/local/share/proj' to a new spot on the
 filesystem such that postgis can no longer find it.

 This error happens on page reload of a previously saved record in the
 admin. Again, this is '''not''' a GeoDjango problem but I do think
 GeoDjango could provide better error handling and reporting.

 {{{
 Environment:

 Request Method: GET
 Request URL: http://localhost:8000/admin/world/worldborders/2/
 Django Version: 1.1 pre-alpha SVN-9109
 Python Version: 2.5.1
 Installed Applications:
 ['django.contrib.admin',
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.sites',
  'django.contrib.databrowse',
  'django.contrib.gis',
  'world']
 Installed Middleware:
 ('django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.middleware.doc.XViewMiddleware')


 Traceback:
 File "/Users/spring/src/django-svn-trunk/django/core/handlers/base.py" in
 get_response
   86.                 response = callback(request, *callback_args,
 **callback_kwargs)
 File "/Users/spring/src/django-svn-trunk/django/contrib/admin/sites.py" in
 root
   157.                 return self.model_page(request, *url.split('/', 2))
 File "/Users/spring/src/django-svn-trunk/django/views/decorators/cache.py"
 in _wrapped_view_func
   44.         response = view_func(request, *args, **kwargs)
 File "/Users/spring/src/django-svn-trunk/django/contrib/admin/sites.py" in
 model_page
   176.         return admin_obj(request, rest_of_url)
 File "/Users/spring/src/django-svn-trunk/django/contrib/admin/options.py"
 in __call__
   197.             return self.change_view(request, unquote(url))
 File "/Users/spring/src/django-svn-trunk/django/db/transaction.py" in
 _commit_on_success
   238.                 res = func(*args, **kw)
 File "/Users/spring/src/django-svn-trunk/django/contrib/admin/options.py"
 in change_view
   589.             form = ModelForm(instance=obj)
 File "/Users/spring/src/django-svn-trunk/django/forms/models.py" in
 __init__
   201.             object_data = model_to_dict(instance, opts.fields,
 opts.exclude)
 File "/Users/spring/src/django-svn-trunk/django/forms/models.py" in
 model_to_dict
   123.             data[f.name] = f.value_from_object(instance)
 File "/Users/spring/src/django-svn-
 trunk/django/db/models/fields/__init__.py" in value_from_object
   332.         return getattr(obj, self.attname)
 File "/Users/spring/src/django-svn-
 trunk/django/contrib/gis/db/models/proxy.py" in __get__
   36.             geom = self._klass(geom_value)
 File "/Users/spring/src/django-svn-trunk/django/contrib/gis/geos/base.py"
 in __init__
   66.                 g = from_hex(geo_input, len(geo_input))
 File "/Users/spring/src/django-svn-
 trunk/django/contrib/gis/geos/prototypes/errcheck.py" in check_geom
   32.         raise GEOSException('Error encountered checking Geometry
 returned from GEOS C function "%s".' % func.__name__)

 Exception Type: GEOSException at /admin/world/worldborders/2/
 Exception Value: Error encountered checking Geometry returned from GEOS C
 function "GEOSGeomFromHEX_buf".
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9295#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
-~----------~----~----~----~------~----~------~--~---

Reply via email to