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

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 }
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 ShpLoaderOpenShape().

Here is the caller graph for this function: