set field typeName in gml xsd parser

This commit is contained in:
Radim Blazek 2013-07-05 19:02:20 +02:00
parent 0a3313d317
commit a9a0d9a287
3 changed files with 3 additions and 1 deletions

View File

@ -5697,6 +5697,7 @@ QgsVectorLayer * QgisApp::pasteToNewMemoryVector()
foreach ( QgsField f, clipboard()->fields().toList() )
{
QgsDebugMsg( QString( "field %1 (%2)" ).arg( f.name() ).arg( QVariant::typeToName( f.type() ) ) );
if ( !layer->addAttribute( f ) )
{
QMessageBox::warning( this, tr( "Warning" ),

View File

@ -234,7 +234,7 @@ bool QgsGmlSchema::xsdFeatureClass( const QDomElement &element, const QString &
}
}
QgsField field( fieldName, fieldType );
QgsField field( fieldName, fieldType, fieldTypeName );
featureClass.fields().append( field );
}

View File

@ -4231,6 +4231,7 @@ QgsRasterIdentifyResult QgsWmsProvider::identify( const QgsPoint & thePoint, Qgs
}
#endif
#endif
QgsDebugMsg( "GML XSD (first 4000 bytes):\n" + QString::fromUtf8( mIdentifyResultBodies.value( xsdPart ).left( 4000 ) ) );
gmlSchema.parseXSD( mIdentifyResultBodies.value( xsdPart ) );
}
else