PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ colmap_dbf_by_pg()

const char* colmap_dbf_by_pg ( colmap map,
const char *  pgname 
)

Definition at line 185 of file shpcommon.c.

References colmap_t::dbffieldnames, colmap_t::pgfieldnames, and colmap_t::size.

Referenced by ShpDumperOpenTable().

186 {
187  int i;
188  for (i=0; i<map->size; i++)
189  {
190  if (!strcasecmp(map->pgfieldnames[i], pgname))
191  {
192  return map->dbffieldnames[i];
193  }
194  }
195  return NULL;
196 }
int size
Definition: shpcommon.h:61
char ** pgfieldnames
Definition: shpcommon.h:55
char ** dbffieldnames
Definition: shpcommon.h:58
Here is the caller graph for this function: