[postgis-devel] [PostGIS] #467: shp2pgsql: command line option to cope with broken strings in dbf files

PostGIS trac at osgeo.org
Sun Apr 4 16:02:14 PDT 2010


#467: shp2pgsql: command line option to cope with broken strings in dbf files
----------------------+-----------------------------------------------------
  Reporter:  agnat    |       Owner:  strk         
      Type:  patch    |      Status:  assigned     
  Priority:  medium   |   Milestone:  PostGIS 1.5.2
 Component:  postgis  |     Version:  1.5.X        
Resolution:           |    Keywords:  shp2pgsql    
----------------------+-----------------------------------------------------
Comment (by strk):

 I've attached a version which applies to trunk and avoids useless
 allocation of a new string.

 But... this patch won't help in the case I describe here:
 http://strk.keybit.net/blog/2010/04/04/unicode-from-osm-to-pgsql/
 At least not with my version of iconv.
 Could you try with yours ?

 In the case described in the post the input contains truncated multibyte
 strings,
 and a simple policy for those (imho) would be to just discard the final
 partial
 substrings.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/467#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list