PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ if() [2/9]

if ( nVertices  ,
 
)

Definition at line 1114 of file shpopen.c.

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

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  }
bHasZ
Definition: shpopen.c:1074
psObject nVertices
Definition: shpopen.c:1139
#define TRUE
Definition: shpopen.c:278