PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ SHPGetPartVertexCount()

static int SHPGetPartVertexCount ( const SHPObject psObject,
int  iPart 
)
static

Definition at line 2676 of file shpopen.c.

2677 {
2678  if( iPart == psObject->nParts-1 )
2679  return psObject->nVertices - psObject->panPartStart[iPart];
2680  else
2681  return psObject->panPartStart[iPart+1] - psObject->panPartStart[iPart];
2682 }
int nVertices
Definition: shapefil.h:389
int * panPartStart
Definition: shapefil.h:386

References tagSHPObject::nParts, tagSHPObject::nVertices, and tagSHPObject::panPartStart.

Referenced by SHPRewindIsInnerRing(), and SHPRewindObject().

Here is the caller graph for this function: