PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ SHPGetPartVertexCount()

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

Definition at line 2674 of file shpopen.c.

2675 {
2676  if( iPart == psObject->nParts-1 )
2677  return psObject->nVertices - psObject->panPartStart[iPart];
2678  else
2679  return psObject->panPartStart[iPart+1] - psObject->panPartStart[iPart];
2680 }
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: