Skip to content
Permalink
Browse files
fix #43042 incorrect PostGIS raster extent on macOS
  • Loading branch information
PeterPetrik authored and nyalldawson committed Nov 1, 2021
1 parent 98cd09e commit d54f30eaa84db1a9ea8986d831d007e5d2c61fc8
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/postgres/raster/qgspostgresrasterprovider.cpp
@@ -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 ) )
{

0 comments on commit d54f30e

Please sign in to comment.