Skip to content
Permalink
Browse files

[offset] warn user when layer has Z/M geometries

  • Loading branch information
3nids committed Feb 19, 2018
1 parent 5b499f2 commit fdada84bb708c0d2225592bdb03d13dbe3ff58e0
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/app/qgsmaptooloffsetcurve.cpp
@@ -90,6 +90,18 @@ void QgsMapToolOffsetCurve::canvasReleaseEvent( QgsMapMouseEvent *e )
}
mModifiedFeature = fet.id();
createUserInputWidget();

bool hasZ = QgsWkbTypes::hasZ( mLayer->wkbType() );
bool hasM = QgsWkbTypes::hasZ( mLayer->wkbType() );
if ( hasZ || hasM )
{
emit messageEmitted( QString( "layer %1 has %2%3%4 geometry. %2%3%4 values be set to 0 when using offset tool." )
.arg( mLayer->name() )
.arg( hasZ ? "Z" : "" )
.arg( hasZ && hasM ? "/" : "" )
.arg( hasM ? "M" : "" )
, Qgis::Warning );
}
}
}

0 comments on commit fdada84

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