[QGIS-trac] [Quantum GIS] #3036: save as to shapefile for postgis layers with tool long column names doens't work

Quantum GIS qgis at qgis.org
Thu Sep 23 08:19:06 EDT 2010


#3036: save as to shapefile for postgis layers with tool long column names doens't
work
------------------------------------------------+---------------------------
   Reporter:  cmoe                              |              Owner:  nobody       
       Type:  bug                               |             Status:  new          
   Priority:  major: does not work as expected  |          Milestone:  Version 1.6.0
  Component:  Data Provider                     |            Version:  Trunk        
   Keywords:                                    |   Platform_version:               
   Platform:  RedHat                            |           Must_fix:  Yes          
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 Save as to shapefile for postgis layers with tool long column names
 doens't work.

  1. Load a postgis layer with a column that has more then 10 charactes in
 its name (e.g. archive_date)
  2. save as esri shapefile
  3. The following error appears: [[BR]]

 {{{
 Export to vector file failed.
 Error: created field archive_date not found (OGR error:
 Normalized/laundered field name: 'archive_date' to 'archive_da')
 }}}

  4. The created shapefile is empty

 The expected truncation from archive_date to archive_da in the resulting
 shapefile works (the shp, shx,dbf is created). The dbf shows the truncated
 archive_da but no features are exported.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3036>
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