#12036: GIS layermapping utility fails to import linestrings
---------------------------------+------------------------------------------
          Reporter:  elpaso66    |         Owner:  nobody    
            Status:  closed      |     Milestone:            
         Component:  GIS         |       Version:  1.1       
        Resolution:  fixed       |      Keywords:  gis import
             Stage:  Unreviewed  |     Has_patch:  0         
        Needs_docs:  0           |   Needs_tests:  0         
Needs_better_patch:  0           |  
---------------------------------+------------------------------------------
Changes (by jbronn):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => fixed
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Because `gtype` is really an `OGRGeomType` instance, equality testing with
 strings works (e.g., `OGRGeomType('POINT') == 'Point'`).  Regardless, for
 other reasons it was changed to a string comparison in r11742 when 3D
 support was added; I also clarified that exception to differentiate
 between the model field type and what was found on the layer, similar to
 what you put in the summary here.

 While I agree there was a problem with the error message, the
 `LayerMapping` utility has always been able to import `LineString`
 geometries, it's done in the test suite in multiple places.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12036#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 django-upda...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=.


Reply via email to