Skip to content
Permalink
Browse files

set field typeName in gml xsd parser

  • Loading branch information
blazek committed Jul 5, 2013
1 parent 0a3313d commit a9a0d9a287cc6bf53cd3f616542ef90dfb473512
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/app/qgisapp.cpp
  2. +1 −1 src/core/qgsgmlschema.cpp
  3. +1 −0 src/providers/wms/qgswmsprovider.cpp
@@ -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

0 comments on commit a9a0d9a

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