Skip to content

Commit

Permalink
[virtual layer] Fix geometry column detection for types with Z
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Feb 27, 2017
1 parent c7aee54 commit 23c305b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/virtual/qgsvirtuallayerqueryparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 23c305b

Please sign in to comment.