[postgis-devel] [PostGIS] #885: pgsql2shp fields conversion from predefined list

PostGIS trac at osgeo.org
Sat Mar 26 15:17:26 PDT 2011


#885: pgsql2shp fields conversion from predefined list
-------------------------+--------------------------------------------------
 Reporter:  rodo         |       Owner:  loic         
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 1.5.3
Component:  postgis      |     Version:  1.5.X        
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by loic):

 The same section of code is also found in
 {{{http://svn.osgeo.org/postgis/trunk/loader/pgsql2shp-core.c}}}
 {{{
                /*
                  * make sure the fields all have unique names,
                  */
                 tmpint = 1;
                 for (j = 0; j < state->fieldcount; j++)
                 {
                         if (!strncasecmp(dbffieldname,
 state->dbffieldnames[j], 10))
                         {
                                 sprintf(dbffieldname, "%.7s_%.2d", ptr,
 tmpint++);
                                 continue;
                         }
                 }
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/885#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