We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent b35a456 commit 1fe82b2Copy full SHA for 1fe82b2
src/core/qgsgeometry.cpp
@@ -4569,9 +4569,9 @@ QString QgsGeometry::exportToWkt()
4569
exportGeosToWkb();
4570
}
4571
4572
- if ( !mGeometry )
+ if ( !mGeometry || wkbSize() < 5 )
4573
{
4574
- QgsDebugMsg( "WKB geometry not available!" );
+ QgsDebugMsg( "WKB geometry not available or too short!" );
4575
return QString::null;
4576
4577
0 commit comments