Skip to content

Commit

Permalink
Also show WKB type in vector layer metadata
Browse files Browse the repository at this point in the history
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 44db212
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 44db212

Please sign in to comment.