Skip to content
Permalink
Browse files

Fix geometry casting in python bindings (missing MultiLineString and

GeometryCollection casts)
  • Loading branch information
nyalldawson committed Oct 17, 2015
1 parent 24b18bc commit fab5a32d9adf0ce38a8eafd1383e48142ea045fb
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/core/geometry/qgsabstractgeometryv2.sip
@@ -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

0 comments on commit fab5a32

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