#23757: Spatialite backend doesn't support 3d introspection
------------------------------------+------------------------
               Reporter:  claudep   |          Owner:  nobody
                   Type:  Bug       |         Status:  new
              Component:  GIS       |        Version:  master
               Severity:  Normal    |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  0
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  0         |  Easy pickings:  0
                  UI/UX:  0         |
------------------------------------+------------------------
 Currently, Django crashes with an error like the following while
 introspecting Spatialite 3D field:
 {{{
 Traceback (most recent call last):
   File "...python2.7/tests/inspectdb/tests.py", line 182, in
 test_special_column_name_introspection
     call_command('inspectdb', stdout=out)
   File "...python2.7/django/core/management/__init__.py", line 115, in
 call_command
     return klass.execute(*args, **defaults)
   File "...python2.7/django/core/management/base.py", line 338, in execute
     output = self.handle(*args, **options)
   File "...python2.7/django/core/management/base.py", line 533, in handle
     return self.handle_noargs(**options)
   File "...python2.7/django/core/management/commands/inspectdb.py", line
 27, in handle_noargs
     for line in self.handle_inspection(options):
   File "...python2.7/django/core/management/commands/inspectdb.py", line
 100, in handle_inspection
     field_type, field_params, field_notes =
 self.get_field_type(connection, table_name, row)
   File "...python2.7/django/contrib/gis/management/commands/inspectdb.py",
 line 14, in get_field_type
     field_type, geo_params =
 connection.introspection.get_geometry_type(table_name, geo_col)
   File
 "...python2.7/django/contrib/gis/db/backends/spatialite/introspection.py",
 line 42, in get_geometry_type
     field_type = OGRGeomType(row[2]).django
   File "...python2.7/django/contrib/gis/gdal/geomtype.py", line 46, in
 __init__
     raise OGRException('Invalid OGR Integer Type: %d' % type_input)
 OGRException: Invalid OGR Integer Type: 1001
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23757>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.f7def319338d7ab6e91e1df5264a5f50%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to