16#ifndef QGSMAPTOOLIDENTIFY_H
17#define QGSMAPTOOLIDENTIFY_H
67 Q_ENUM( IdentifyMode )
146 QList<QgsMapToolIdentify::IdentifyResult> identify(
147 int x,
int y,
const QList<QgsMapLayer *> &layerList = QList<QgsMapLayer *>(), IdentifyMode mode = DefaultQgsSetting,
const QgsIdentifyContext &identifyContext =
QgsIdentifyContext()
161 QList<QgsMapToolIdentify::IdentifyResult> identify(
int x,
int y, IdentifyMode mode, LayerType layerType = AllLayers,
const QgsIdentifyContext &identifyContext =
QgsIdentifyContext() );
166 QList<QgsMapToolIdentify::IdentifyResult> identify(
182 static void fromPointCloudIdentificationToIdentifyResults(
QgsPointCloudLayer *layer,
const QVector<QVariantMap> &identified, QList<QgsMapToolIdentify::IdentifyResult> &results )
SIP_SKIP;
190 void fromElevationProfileLayerIdentificationToIdentifyResults(
QgsMapLayer *layer,
const QVector<QVariantMap> &identified, QList<QgsMapToolIdentify::IdentifyResult> &results )
SIP_SKIP;
230 QList<QgsMapToolIdentify::IdentifyResult>
identify(
238 QList<QgsMapToolIdentify::IdentifyResult> *results,
242 double mapUnitsPerPixel,
257 QList<QgsMapToolIdentify::IdentifyResult> *results,
261 double mapUnitsPerPixel,
336 double mapUnitsPerPixel,
345 double mapUnitsPerPixel,
354 const QMap<QString, QString> &commonDerivedAttributes,
355 const std::function<QMap<QString, QString>( const
QgsFeature & )> &derivedAttributes,
359 bool identifyVectorTileLayer(
362 bool identifyPointCloudLayer(
370 virtual
Qgis::DistanceUnit displayDistanceUnits() const;
376 virtual
Qgis::AreaUnit displayAreaUnits() const;
382 QString formatDistance(
double distance ) const;
388 QString formatArea(
double area ) const;
394 QString formatDistance(
double distance,
Qgis::DistanceUnit unit ) const;
400 QString formatArea(
double area,
Qgis::AreaUnit unit ) const;
407 void closestVertexAttributes(
413 bool showTransformedZ,
414 QMap<QString, QString> &derivedAttributes
420 void closestPointAttributes(
426 bool showTransformedZ,
427 QMap<QString, QString> &derivedAttributes
431 void formatCoordinate( const
QgsPointXY &canvasPoint, QString &x, QString &y ) const;
436 double mLastMapUnitsPerPixel = -1.0;
440 int mCoordinatePrecision = 6;
Provides global constants and enumerations for use throughout the application.
Abstract base class for all geometries.
Represents a coordinate reference system (CRS).
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Abstract base class for all 2D vector feature renderers.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Container of fields for a vector layer.
A geometry is the spatial representation of a feature.
Highlights features on the map.
Identify contexts are used to encapsulate the settings to be used to perform an identify action.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A mouse event which is the result of a user interaction with a QgsMapCanvas.
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Point cloud layer specific subclass of QgsMapLayerElevationProperties.
Represents a map layer supporting display of point clouds.
Point geometry type, with support for z-dimension and m-values.
Represents a raster layer.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
A template class for enum and flag settings entry.
Represents a vector layer which manages a vector based dataset.
Implements a map layer that is dedicated to rendering of vector tiles.
#define SIP_ENUM_BASETYPE(type)
QList< QgsFeature > QgsFeatureList
Utility class for identifying a unique vertex within a geometry.