Skip to content
Permalink
Browse files

fix handling of layers without geometry

  • Loading branch information
alexbruy committed Oct 5, 2016
1 parent 2f66e1d commit 7a49612a608a6a7c756a9bb29928a73a953d5154
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/providers/memory/qgsmemoryprovider.cpp
@@ -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" ) )
{

0 comments on commit 7a49612

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