Skip to content
Permalink
Browse files

[Geometry checker] Make self intersection fix create a multilinestrin…

…g instead of a multicurve since prts are linestrings
  • Loading branch information
manisandro committed Oct 12, 2015
1 parent fdc85ba commit c1028efeb0982398dbd6c6d96d04e5d3dd69cac0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/geometry_checker/checks/qgsgeometryselfintersectioncheck.cpp
@@ -10,7 +10,7 @@
#include "qgslinestringv2.h"
#include "qgsgeometryengine.h"
#include "qgsmultipolygonv2.h"
#include "qgsmulticurvev2.h"
#include "qgsmultilinestringv2.h"
#include "qgsgeometryutils.h"
#include "../utils/qgsfeaturepool.h"

@@ -266,7 +266,7 @@ void QgsGeometrySelfIntersectionCheck::fixError( QgsGeometryCheckError* error, i
}
else
{
QgsMultiCurveV2* geomCollection = new QgsMultiCurveV2();
QgsMultiCurveV2* geomCollection = new QgsMultiLineStringV2();
geomCollection->addGeometry( ringGeom1 );
geomCollection->addGeometry( ringGeom2 );
feature.setGeometry( new QgsGeometry( geomCollection ) );

0 comments on commit c1028ef

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