[QGIS-trac] [Quantum GIS] #1681: QgsVectorFileWriter isn't case sensitive

Quantum GIS qgis at qgis.org
Wed May 6 17:04:41 EDT 2009


#1681: QgsVectorFileWriter isn't case sensitive
------------------------------------------------------------------------------+
   Reporter:  borysiasty                                                      |              Owner:  nobody       
       Type:  bug                                                             |             Status:  new          
   Priority:  critical: causes crash or data corruption                       |          Milestone:  Version 1.0.3
  Component:  Vectors                                                         |            Version:  HEAD         
   Keywords:  QgsVectorFileWriter, save vector, attributes, case sensitivity  |   Platform_version:               
   Platform:  All                                                             |           Must_fix:  Yes          
Status_info:  0                                                               |  
------------------------------------------------------------------------------+
 QgsVectorFileWriter allows to create case sensitive fields like 'foo' and
 'FOO' in one table, but values of both attributes are written to the first
 case-insensitively-found field:

 1. Create a new layer with two attributes like 'foo' and 'Foo' and add
 some features
 2. Save it as a new layer: menu Layer -> Save as shapefile
 3. The new layer's table contains corrupted data

 It also doesn't respect the field width - see also #1664

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1681>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list