PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ if() [5/9]

if ( psSHP->sHooks.FSeek(psSHP->fpSHP, psSHP->panRecOffset[hEntity], 0) !  = 0)

Definition at line 1610 of file shpopen.c.

References SAHooks::Error, SHPInfo::panRecOffset, and SHPInfo::sHooks.

1611  {
1612  /*
1613  * TODO - mloskot: Consider detailed diagnostics of shape file,
1614  * for example to detect if file is truncated.
1615  */
1616  char str[128];
1617  sprintf( str,
1618  "Error in fseek() reading object from .shp file at offset %u",
1619  psSHP->panRecOffset[hEntity]);
1620 
1621  psSHP->sHooks.Error( str );
1622  return NULL;
1623  }