19 mP =
reinterpret_cast<unsigned char *
>( wkb.data() );
21 mEnd = mP + wkb.length();
31 void QgsWkbPtr::verifyBound(
int size )
const 33 if ( !mP || mP + size > mEnd )
39 mP =
reinterpret_cast< unsigned char *
>(
const_cast<char *
>( wkb.constData() ) );
40 mEnd = mP + wkb.length();
47 mP =
const_cast< unsigned char *
>( p );
71 if ( !mP || mP + size > mEnd )
85 Q_ASSERT( skipZM >= 0 );
90 points.resize( nPoints );
91 QPointF *ptr = points.data();
93 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.