[ogr] Fix simple markers' stroke width of embedded styling

This commit is contained in:
Mathieu Pellerin 2023-04-22 12:24:05 +07:00
parent 30870dfce9
commit 699fa93c6e
4 changed files with 4 additions and 1 deletions

View File

@ -1654,6 +1654,8 @@ std::unique_ptr<QgsSymbol> QgsOgrUtils::symbolFromStyleString( const QString &st
std::unique_ptr< QgsSimpleMarkerSymbolLayer > simpleMarker = std::make_unique< QgsSimpleMarkerSymbolLayer >( shape, symbolSize, -angle );
simpleMarker->setSizeUnit( symbolSizeUnit );
simpleMarker->setStrokeWidth( 1.0 );
simpleMarker->setStrokeWidthUnit( Qgis::RenderUnit::Points );
if ( isFilled && QgsSimpleMarkerSymbolLayer::shapeIsFilled( shape ) )
{

View File

@ -1517,6 +1517,8 @@ QgsMarkerSymbol *QgsMapInfoSymbolConverter::convertMarkerSymbol( int identifier,
simpleMarker->setSizeUnit( sizeUnit );
simpleMarker->setAngle( angle );
simpleMarker->setVerticalAnchorPoint( vertAlign );
simpleMarker->setStrokeWidth( 1.0 );
simpleMarker->setStrokeWidthUnit( Qgis::RenderUnit::Points );
if ( isNull )
{
@ -1527,7 +1529,6 @@ QgsMarkerSymbol *QgsMapInfoSymbolConverter::convertMarkerSymbol( int identifier,
{
simpleMarker->setColor( color );
simpleMarker->setStrokeColor( QColor( 0, 0, 0 ) );
simpleMarker->setStrokeWidth( 0 );
}
else
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 MiB

After

Width:  |  Height:  |  Size: 31 KiB