29 const int count = lineString->
numPoints();
30 const double *xData = lineString->
xData();
31 const double *yData = lineString->
yData();
33 for (
int i = 0; i < count - 1; i++ )
35 const double val = ( xData[i + 1] - xData[i] ) * ( yData[i + 1] + yData[i] );
Line string geometry type, with support for z-dimension and m-values.
const double * yData() const
Returns a const pointer to the y vertex data.
const double * xData() const
Returns a const pointer to the x vertex data.
int numPoints() const override SIP_HOLDGIL
Returns the number of points in the curve.
static bool isExteriorRing(const QgsLineString *lineString)
Returns whether this linear ring forms an exterior ring according to MVT spec (depending on the orien...