PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ if() [5/9]

if ( nVertices  ,
 
)

Definition at line 1114 of file shpopen.c.

1115  {
1116  psObject->padfX = (double *) calloc(sizeof(double),nVertices);
1117  psObject->padfY = (double *) calloc(sizeof(double),nVertices);
1118  psObject->padfZ = (double *) calloc(sizeof(double),nVertices);
1119  psObject->padfM = (double *) calloc(sizeof(double),nVertices);
1120 
1121  for( i = 0; i < nVertices; i++ )
1122  {
1123  if( padfX != NULL )
1124  psObject->padfX[i] = padfX[i];
1125  if( padfY != NULL )
1126  psObject->padfY[i] = padfY[i];
1127  if( padfZ != NULL && bHasZ )
1128  psObject->padfZ[i] = padfZ[i];
1129  if( padfM != NULL && bHasM )
1130  psObject->padfM[i] = padfM[i];
1131  }
1132  if( padfM != NULL && bHasM )
1133  psObject->bMeasureIsUsed = TRUE;
1134  }
psObject nVertices
Definition: shpopen.c:1139
bHasZ
Definition: shpopen.c:1074
#define TRUE
Definition: shpopen.c:278

References bHasZ, SHPObject::bMeasureIsUsed, nVertices, SHPObject::padfM, SHPObject::padfX, SHPObject::padfY, SHPObject::padfZ, and TRUE.