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

PostGIS trac at osgeo.org
Sat Mar 26 09:59:14 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:               |  
-------------------------+--------------------------------------------------
Changes (by loic):

  * owner:  pramsey => loic


Comment:

 I think the remapping occurs at
 {{{postgis-1.5.1/loader/pgsql2shp.c:1605}}}
 {{{
                /*
                  * make sure the fields all have unique names,
                  */
                 tmpint=1;
                 for (j=0; j<dbf_nfields; j++)
                 {
                         if (!strncasecmp(field_name, dbf_flds[j], 10))
                         {
                                 sprintf(field_name,"%.7s_%.2d",
                                         ptr,
                                         tmpint++);
                                 j=-1;
                                 continue;
                         }
                 }

 }}}

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