20 mP =
reinterpret_cast<unsigned char *
>( wkb.data() );
22 mEnd = mP + wkb.length();
32 void QgsWkbPtr::verifyBound(
int size )
const 34 if ( !mP || mP + size > mEnd )
40 mP =
reinterpret_cast< unsigned char *
>(
const_cast<char *
>( wkb.constData() ) );
41 mEnd = mP + wkb.length();
48 mP =
const_cast< unsigned char *
>( p );
72 if ( !mP || mP + size > mEnd )
86 Q_ASSERT( skipZM >= 0 );
91 points.resize( nPoints );
92 QPointF *ptr = points.data();
94 for (
unsigned int i = 0; i < nPoints; ++i, ++ptr )
QgsWkbPtr(QByteArray &wkb)
Construct WKB pointer from QByteArray.
QgsConstWkbPtr(const QByteArray &wkb)
Construct WKB pointer from QByteArray.
static endian_t endian()
Returns whether this machine uses big or little endian.
Type
The WKB type describes the number of dimensions a geometry has.
const QgsConstWkbPtr & operator>>(double &v) const
Custom exception class for Wkb related exceptions.
void verifyBound(int size) const
Verify bounds.
QgsWkbTypes::Type readHeader() const
readHeader
static int coordDimensions(Type type)
Returns the coordinate dimension of the geometry type as an integer.