mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Also show WKB type in vector layer metadata
Otherwise it's a PITA to work out if a layer has z or is multi type
This commit is contained in:
parent
d00020f99a
commit
44db212aa1
@ -3804,11 +3804,10 @@ QString QgsVectorLayer::metadata()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString typeString( QGis::vectorGeometryType( geometryType() ) );
|
QString typeString( QGis::vectorGeometryType( geometryType() ) );
|
||||||
|
QString wkbTypeString = QgsWKBTypes::displayString( QGis::fromOldWkbType( mWkbType ) );
|
||||||
|
|
||||||
myMetadata += "<p class=\"glossy\">" + tr( "Geometry type of the features in this layer" ) + "</p>\n";
|
myMetadata += "<p class=\"glossy\">" + tr( "Geometry type of the features in this layer" ) + "</p>\n";
|
||||||
myMetadata += "<p>";
|
myMetadata += QString( "<p>%1 (WKB type: \"%2\")</p>\n" ).arg( typeString, wkbTypeString );
|
||||||
myMetadata += typeString;
|
|
||||||
myMetadata += "</p>\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsAttributeList pkAttrList = pkAttributeList();
|
QgsAttributeList pkAttrList = pkAttributeList();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user