Skip to content
Permalink
Browse files
Dash dot pattern
  • Loading branch information
mhugent committed Dec 21, 2012
1 parent 1a79041 commit fa5cb77eb70aa443e22105dc8e81991722c29878
Showing with 18 additions and 1 deletion.
  1. +18 −1 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -206,7 +206,24 @@ QString QgsSimpleLineSymbolLayerV2::ogrFeatureStyle( double widthScaleFactor ) c
symbolStyle.append( ",w:" );
//dxf driver writes ground units as mm? Should probably be changed in ogr
symbolStyle.append( QString::number( mWidth * widthScaleFactor ) );
symbolStyle.append( "g" );
symbolStyle.append( "mm" );

//dash dot vector
if ( mCustomDashVector.size() > 0 )
{
symbolStyle.append( ",p:\"" );
QVector<qreal>::const_iterator pIt = mCustomDashVector.constBegin();
for ( ; pIt != mCustomDashVector.constEnd(); ++pIt )
{
if ( pIt != mCustomDashVector.constBegin() )
{
symbolStyle.append( " " );
}
symbolStyle.append( QString::number( *pIt * widthScaleFactor ) );
symbolStyle.append( "mm" );
}
symbolStyle.append( "\"" );
}
symbolStyle.append( ")" );

return symbolStyle;

0 comments on commit fa5cb77

Please sign in to comment.