Skip to content

Commit

Permalink
set field typeName in gml xsd parser
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Sep 5, 2013
1 parent 0a3313d commit a9a0d9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ),
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsgmlschema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down
1 change: 1 addition & 0 deletions src/providers/wms/qgswmsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9a0d9a

Please sign in to comment.