Skip to content

Commit

Permalink
fix handling of layers without geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 5, 2016
1 parent 2f66e1d commit 7a49612
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/providers/memory/qgsmemoryprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ QgsMemoryProvider::QgsMemoryProvider( const QString& uri )
geometry = url.path();
}

mWkbType = QgsWkbTypes::parseType( geometry );
if ( geometry.toLower() == "none" )
{
mWkbType = QgsWkbTypes::NoGeometry;
}
else
{
mWkbType = QgsWkbTypes::parseType( geometry );
}

if ( url.hasQueryItem( "crs" ) )
{
Expand Down

0 comments on commit 7a49612

Please sign in to comment.