Skip to content
Permalink
Browse files

[virtual layer] Fix geometry column detection for types with Z

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Feb 27, 2017
1 parent c7aee54 commit 23c305b2a0c026c55727e05c719bd880057e8041
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/virtual/qgsvirtuallayerqueryparser.cpp
@@ -116,7 +116,7 @@ namespace QgsVirtualLayerQueryParser
int pos = geometryTypeRx.indexIn( columnType, 0 );
if ( pos != -1 )
{
QgsWkbTypes::Type type = static_cast<QgsWkbTypes::Type>( geometryTypeRx.cap( 1 ).toInt() );
QgsWkbTypes::Type type = static_cast<QgsWkbTypes::Type>( geometryTypeRx.cap( 1 ).toLong() );
long srid = geometryTypeRx.cap( 2 ).toLong();
d.setGeometry( type );
d.setSrid( srid );

0 comments on commit 23c305b

Please sign in to comment.
You can’t perform that action at this time.