mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
set field typeName in gml xsd parser
This commit is contained in:
parent
0a3313d317
commit
a9a0d9a287
@ -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" ),
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user