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() ) );
48 mP =
const_cast< unsigned char *
>( p );
86 Q_ASSERT( skipZM >= 0 );
91 points.resize( nPoints );
92 QPointF *ptr = points.data();
94 for (
unsigned int i = 0; i < nPoints; ++i, ++ptr )
static endian_t endian()
Returns whether this machine uses big or little endian.
QgsWkbTypes::Type mWkbType
const QgsConstWkbPtr & operator>>(double &v) const
QgsConstWkbPtr(const QByteArray &wkb)
Construct WKB pointer from QByteArray.
QgsWkbTypes::Type readHeader() const
readHeader
void read(T &v) const
Read a value.
void verifyBound(int size) const
Verify bounds.
Custom exception class for Wkb related exceptions.
QgsWkbPtr(QByteArray &wkb)
Construct WKB pointer from QByteArray.
Type
The WKB type describes the number of dimensions a geometry has.
static int coordDimensions(Type type) SIP_HOLDGIL
Returns the coordinate dimension of the geometry type as an integer.