Skip to content

Commit

Permalink
Also handle triangles in QgsGeometryFactory::geomFromWkbType
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 4, 2017
1 parent ab9e2fc commit e151f20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/geometry/qgsgeometryfactory.cpp
Expand Up @@ -27,6 +27,7 @@
#include "qgsmultipoint.h"
#include "qgsmultipolygon.h"
#include "qgsmultisurface.h"
#include "qgstriangle.h"
#include "qgswkbtypes.h"
#include "qgslogger.h"

Expand Down Expand Up @@ -241,6 +242,8 @@ std::unique_ptr<QgsAbstractGeometry> QgsGeometryFactory::geomFromWkbType( QgsWkb
return std::unique_ptr<QgsAbstractGeometry>( new QgsMultiSurface() );
case QgsWkbTypes::GeometryCollection:
return std::unique_ptr<QgsAbstractGeometry>( new QgsGeometryCollection() );
case QgsWkbTypes::Triangle:
return std::unique_ptr<QgsAbstractGeometry>( new QgsTriangle() );
default:
return nullptr;
}
Expand Down

0 comments on commit e151f20

Please sign in to comment.