PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ colmap_pg_by_dbf()

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

Definition at line 199 of file shpcommon.c.

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

Referenced by ShpLoaderOpenShape().

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