Skip to content
Permalink
Browse files

Also handle triangles in QgsGeometryFactory::geomFromWkbType

  • Loading branch information
manisandro committed Oct 4, 2017
1 parent ab9e2fc commit e151f20ee1f7b4276208ed4044e521adc1030900
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/geometry/qgsgeometryfactory.cpp
@@ -27,6 +27,7 @@
#include "qgsmultipoint.h"
#include "qgsmultipolygon.h"
#include "qgsmultisurface.h"
#include "qgstriangle.h"
#include "qgswkbtypes.h"
#include "qgslogger.h"

@@ -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;
}

0 comments on commit e151f20

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