PostGIS  2.1.10dev-r@@SVN_REVISION@@
if ( nVertices  ,
 
)

Definition at line 1115 of file shpopen.c.

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

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