PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ if() [3/10]

Definition at line 2012 of file shpopen.c.

2013  {
2014  /*
2015  * TODO - mloskot: Consider detailed diagnostics of shape file,
2016  * for example to detect if file is truncated.
2017  */
2018  char str[128];
2019  snprintf( str, sizeof(str),
2020  "Error in fread() reading object of size %d at offset %u from .shp file",
2021  nEntitySize, psSHP->panRecOffset[hEntity] );
2022  str[sizeof(str)-1] = '\0';
2023 
2024  psSHP->sHooks.Error( str );
2025  return SHPLIB_NULLPTR;
2026  }
#define str(s)
nEntitySize
Definition: shpopen.c:1899
#define SHPLIB_NULLPTR
Definition: shpopen.c:101

References nEntitySize, SHPLIB_NULLPTR, and str.