Skip to content

Commit 23c305b

Browse files
author
Hugo Mercier
committed
[virtual layer] Fix geometry column detection for types with Z
1 parent c7aee54 commit 23c305b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/virtual/qgsvirtuallayerqueryparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace QgsVirtualLayerQueryParser
116116
int pos = geometryTypeRx.indexIn( columnType, 0 );
117117
if ( pos != -1 )
118118
{
119-
QgsWkbTypes::Type type = static_cast<QgsWkbTypes::Type>( geometryTypeRx.cap( 1 ).toInt() );
119+
QgsWkbTypes::Type type = static_cast<QgsWkbTypes::Type>( geometryTypeRx.cap( 1 ).toLong() );
120120
long srid = geometryTypeRx.cap( 2 ).toLong();
121121
d.setGeometry( type );
122122
d.setSrid( srid );

0 commit comments

Comments
 (0)