Skip to content
Permalink
Browse files

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
  • Loading branch information
nyalldawson committed Jun 14, 2016
1 parent d00020f commit 44db212aa11218fd39cda04f283c2d4d54cea444
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/core/qgsvectorlayer.cpp
@@ -3804,11 +3804,10 @@ QString QgsVectorLayer::metadata()
else
{
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>";
myMetadata += typeString;
myMetadata += "</p>\n";
myMetadata += QString( "<p>%1 (WKB type: \"%2\")</p>\n" ).arg( typeString, wkbTypeString );
}

QgsAttributeList pkAttrList = pkAttributeList();

0 comments on commit 44db212

Please sign in to comment.
You can’t perform that action at this time.