Skip to content

Commit

Permalink
fix #43042 incorrect PostGIS raster extent on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik authored and nyalldawson committed Nov 1, 2021
1 parent 98cd09e commit d54f30e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/postgres/raster/qgspostgresrasterprovider.cpp
Expand Up @@ -1094,7 +1094,8 @@ bool QgsPostgresRasterProvider::init()
QgsPolygon p;
// Strip \x
const QByteArray hexAscii { result.PQgetvalue( 0, 5 ).toLatin1().mid( 2 ) };
QgsConstWkbPtr ptr { QByteArray::fromHex( hexAscii ) };
const QByteArray hexBin = QByteArray::fromHex( hexAscii );
QgsConstWkbPtr ptr { hexBin };

if ( hexAscii.isEmpty() || ! p.fromWkb( ptr ) )
{
Expand Down

0 comments on commit d54f30e

Please sign in to comment.