PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ colmap_pg_by_dbf()

const char* colmap_pg_by_dbf ( colmap map,
const char *  dbfname 
)

Definition at line 117 of file shpcommon.c.

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

Referenced by ShpLoaderOpenShape().

118 {
119  int i;
120  for (i=0; i<map->size; ++i)
121  {
122  if (!strcasecmp(map->dbffieldnames[i], dbfname))
123  {
124  return map->pgfieldnames[i];
125  }
126  }
127  return NULL;
128 }
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: