PostGIS  2.5.7dev-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.

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 }
char ** pgfieldnames
Definition: shpcommon.h:55
int size
Definition: shpcommon.h:61
char ** dbffieldnames
Definition: shpcommon.h:58

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

Referenced by ShpDumperOpenTable().

Here is the caller graph for this function: