PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ colmap_pg_by_dbf()

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

Definition at line 203 of file shpcommon.c.

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