PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ colmap_dbf_by_pg()

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

Definition at line 103 of file shpcommon.c.

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

Referenced by ShpDumperOpenTable().

104 {
105  int i;
106  for (i=0; i<map->size; ++i)
107  {
108  if (!strcasecmp(map->pgfieldnames[i], pgname))
109  {
110  return map->dbffieldnames[i];
111  }
112  }
113  return NULL;
114 }
int size
Definition: shpcommon.h:140
char ** pgfieldnames
Definition: shpcommon.h:134
char ** dbffieldnames
Definition: shpcommon.h:137
Here is the caller graph for this function: