Skip to content

Commit

Permalink
Always rasterise point cloud layers when exporting maps
Browse files Browse the repository at this point in the history
There's no situation in which we'd realistically want to export
point cloud points as vector objects in a PDF -- that would result
in a massive, unusable PDF/SVG!
  • Loading branch information
nyalldawson committed Nov 16, 2020
1 parent 0d3ccf7 commit 168c024
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/qgsmaprendererjob.cpp
Expand Up @@ -955,8 +955,12 @@ bool QgsMapRendererJob::needTemporaryImage( QgsMapLayer *ml )
break;
}

case QgsMapLayerType::MeshLayer:
case QgsMapLayerType::PointCloudLayer:
// point cloud layers should always be rasterised -- we don't want to export points as vectors
// to formats like PDF!
return true;

case QgsMapLayerType::MeshLayer:
case QgsMapLayerType::VectorTileLayer:
case QgsMapLayerType::PluginLayer:
case QgsMapLayerType::AnnotationLayer:
Expand Down

0 comments on commit 168c024

Please sign in to comment.