QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSABSTRACTGEOPDFEXPORTER_H
17 #define QGSABSTRACTGEOPDFEXPORTER_H
19 #include "qgis_core.h"
21 #include <QTemporaryDir>
34 class QgsGeoPdfRenderedFeatureHandler;
65 static bool geoPDFCreationAvailable();
73 static QString geoPDFAvailabilityExplanation();
98 , renderedBounds( renderedBounds )
133 QPainter::CompositionMode compositionMode = QPainter::CompositionMode_SourceOver;
136 double opacity = 1.0;
153 : pagePoint( pagePoint )
154 , geoPoint( geoPoint )
236 bool useIso32000ExtensionFormatGeoreferencing =
true;
245 bool useOgcBestPracticeFormatGeoreferencing =
false;
250 bool includeFeatures =
true;
303 bool finalize(
const QList< QgsAbstractGeoPdfExporter::ComponentLayerDetail > &components,
const QString &destinationFile,
const ExportDetails &details );
313 QString generateTemporaryFilepath(
const QString &filename )
const;
321 static bool compositionModeSupported( QPainter::CompositionMode mode );
353 QMap< QString, QMap< QString, QgsFeatureList > > mCollatedFeatures;
360 QList< VectorComponentDetail > mVectorComponents;
362 QString mErrorMessage;
363 QTemporaryDir mTemporaryDir;
366 bool saveTemporaryLayers();
368 QString createCompositionXml(
const QList< QgsAbstractGeoPdfExporter::ComponentLayerDetail > &components,
const ExportDetails &details );
373 static QString compositionModeToString( QPainter::CompositionMode mode );
375 friend class TestQgsLayoutGeoPdfExport;
376 friend class TestQgsGeoPdfExport;
379 #endif //QGSABSTRACTGEOPDFEXPORTER_H
QStringList layerOrder
Optional list of layer IDs, in the order desired to appear in the generated GeoPDF file.
Contains details of a control point used during georeferencing GeoPDF outputs.
QString displayAttribute
Field name for display.
QString mapLayerId
Associated map layer ID, or an empty string if this component layer is not associated with a map laye...
QgsGeometry renderedBounds
Bounds, in PDF units, of rendered feature.
RenderedFeature(const QgsFeature &feature, const QgsGeometry &renderedBounds)
Constructor for RenderedFeature.
QgsPolygon pageBoundsPolygon
Bounds of the georeferenced section on the page, in millimeters, as a free-form polygon.
QgsFeature feature
Rendered feature.
QMap< QString, QString > layerIdToPdfLayerTreeNameMap
Optional map of map layer ID to custom layer tree name to show in the created PDF file.
QString title
Metadata title tag.
A rectangle specified with double values.
QgsAbstractMetadataBase::KeywordMap keywords
Metadata keyword map.
QString errorMessage() const
Returns the last error message encountered during the export.
QList< QgsAbstractGeoPdfExporter::GeoReferencedSection > georeferencedSections
List of georeferenced sections.
QgsPointXY geoPoint
Georeferenced coordinate of the control point, in CRS units.
QMap< QString, bool > initialLayerVisibility
Optional map of map layer ID to initial visibility state.
QString mapLayerId
Associated map layer ID.
Contains information relating to a single PDF layer in the GeoPDF export.
Contains information about a feature rendered inside the PDF.
QString sourcePdfPath
File path to the (already created) PDF to use as the source for this component layer.
QString producer
Metadata producer tag.
QString sourceVectorPath
File path to the (already created) vector dataset to use as the source for this component layer.
This class represents a coordinate reference system (CRS).
A class to represent a 2D point.
QgsPointXY pagePoint
Coordinate on the page of the control point, in millimeters.
QString group
Optional layer group name.
QString creator
Metadata creator tag.
Contains details of a particular input component to be used during PDF composition.
A geometry is the spatial representation of a feature.
QgsRectangle pageBoundsMm
Bounds of the georeferenced section on the page, in millimeters.
QList< QgsAbstractGeoPdfExporter::ControlPoint > controlPoints
List of control points corresponding to this georeferenced section.
QString author
Metadata author tag.
QString sourceVectorLayer
Layer name in vector dataset to use as the source.
QString group
Optional group name, for arranging layers in top-level groups.
QgsCoordinateReferenceSystem crs
Coordinate reference system for georeferenced section.
QString subject
Metadata subject tag.
QDateTime creationDateTime
Metadata creation datetime.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
QString name
User-friendly name for the generated PDF layer.
QString name
User-friendly name for the generated PDF layer.
ControlPoint(const QgsPointXY &pagePoint, const QgsPointXY &geoPoint)
Constructor for ControlPoint, at the specified pagePoint (in millimeters) and geoPoint (in CRS units)...
Abstract base class for GeoPDF exporters.
QSizeF pageSizeMm
Page size, in millimeters.
QMap< QString, QString > customLayerTreeGroups
Optional map of map layer ID to custom logical layer tree group in created PDF file.