Skip to content
Permalink
Browse files

[GRASS] fixed 3d editing

  • Loading branch information
blazek committed Oct 20, 2015
1 parent 08527af commit 295d64bc44188f78a8393a952a5a46262972eae3
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/grass/qgsgrassprovider.cpp
@@ -1134,7 +1134,7 @@ void QgsGrassProvider::setPoints( struct line_pnts *points, const QgsAbstractGeo
{
return;
}
if ( geometry->wkbType() == QgsWKBTypes::Point )
if ( geometry->wkbType() == QgsWKBTypes::Point || geometry->wkbType() == QgsWKBTypes::PointZ )
{
const QgsPointV2* point = dynamic_cast<const QgsPointV2*>( geometry );
if ( point )
@@ -1143,7 +1143,7 @@ void QgsGrassProvider::setPoints( struct line_pnts *points, const QgsAbstractGeo
QgsDebugMsg( QString( "x = %1 y = %2" ).arg( point->x() ).arg( point->y() ) );
}
}
else if ( geometry->wkbType() == QgsWKBTypes::LineString )
else if ( geometry->wkbType() == QgsWKBTypes::LineString || geometry->wkbType() == QgsWKBTypes::LineStringZ )
{
const QgsLineStringV2* lineString = dynamic_cast<const QgsLineStringV2*>( geometry );
if ( lineString )
@@ -1155,7 +1155,7 @@ void QgsGrassProvider::setPoints( struct line_pnts *points, const QgsAbstractGeo
}
}
}
else if ( geometry->wkbType() == QgsWKBTypes::Polygon )
else if ( geometry->wkbType() == QgsWKBTypes::Polygon || geometry->wkbType() == QgsWKBTypes::PolygonZ )
{
const QgsPolygonV2* polygon = dynamic_cast<const QgsPolygonV2*>( geometry );
if ( polygon && polygon->exteriorRing() )

0 comments on commit 295d64b

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