Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix geometry casting in python bindings (missing MultiLineString and
GeometryCollection casts)
  • Loading branch information
nyalldawson committed Oct 17, 2015
1 parent 24b18bc commit fab5a32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/core/geometry/qgsabstractgeometryv2.sip
Expand Up @@ -49,14 +49,16 @@ class QgsAbstractGeometryV2
sipClass = sipClass_QgsCurvePolygonV2;
else if (dynamic_cast<QgsMultiPointV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsMultiPointV2;
else if (dynamic_cast<QgsLineStringV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsLineStringV2;
else if (dynamic_cast<QgsMultiLineStringV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsMultiLineStringV2;
else if (dynamic_cast<QgsMultiPolygonV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsMultiPolygonV2;
else if (dynamic_cast<QgsMultiSurfaceV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsMultiSurfaceV2;
else if (dynamic_cast<QgsMultiCurveV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsMultiCurveV2;
else if (dynamic_cast<QgsGeometryCollectionV2*>(sipCpp) != NULL )
sipClass = sipClass_QgsGeometryCollectionV2;
else
sipClass = 0;
%End
Expand Down

0 comments on commit fab5a32

Please sign in to comment.