PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ colmap_pg_by_dbf()

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

Definition at line 197 of file shpcommon.c.

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

Referenced by ShpLoaderOpenShape().

198 {
199  int i;
200  for (i=0; i<map->size; ++i)
201  {
202  if (!strcasecmp(map->dbffieldnames[i], dbfname))
203  {
204  return map->pgfieldnames[i];
205  }
206  }
207  return NULL;
208 }
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: