mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-10-31 00:06:02 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			92 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/qgsgmlschema.h                                              *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 | |
| 
 | |
| 
 | |
| 
 | |
| class QgsGmlFeatureClass
 | |
| {
 | |
| %Docstring(signature="appended")
 | |
| Description of feature class in GML
 | |
| %End
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsgmlschema.h"
 | |
| %End
 | |
|   public:
 | |
| 
 | |
|     QgsGmlFeatureClass();
 | |
| %Docstring
 | |
| Constructor for QgsGmlFeatureClass.
 | |
| %End
 | |
|     QgsGmlFeatureClass( const QString &name, const QString &path );
 | |
| 
 | |
|     QList<QgsField> &fields();
 | |
| 
 | |
|     int fieldIndex( const QString &name );
 | |
| 
 | |
|     QString path() const;
 | |
| 
 | |
|     QStringList &geometryAttributes();
 | |
| 
 | |
| };
 | |
| 
 | |
| class QgsGmlSchema : QObject
 | |
| {
 | |
| 
 | |
| %TypeHeaderCode
 | |
| #include "qgsgmlschema.h"
 | |
| %End
 | |
|   public:
 | |
|     QgsGmlSchema();
 | |
| 
 | |
|     bool parseXSD( const QByteArray &xml );
 | |
| %Docstring
 | |
| Gets fields info from XSD
 | |
| %End
 | |
| 
 | |
|     bool guessSchema( const QByteArray &data );
 | |
| %Docstring
 | |
| Guess GML schema from data if XSD does not exist.
 | |
| Currently only recognizes UMN Mapserver GetFeatureInfo GML response.
 | |
| Supports only UTF-8, UTF-16, ISO-8859-1, US-ASCII XML encodings.
 | |
| 
 | |
| :param data: GML data
 | |
| 
 | |
| :return: ``True`` in case of success
 | |
| %End
 | |
| 
 | |
|     QStringList typeNames() const;
 | |
| %Docstring
 | |
| Gets list of dot separated paths to feature classes parsed from GML or XSD
 | |
| %End
 | |
| 
 | |
|     QList<QgsField> fields( const QString &typeName );
 | |
| %Docstring
 | |
| Gets fields for type/class name parsed from GML or XSD
 | |
| %End
 | |
| 
 | |
|     QStringList geometryAttributes( const QString &typeName );
 | |
| %Docstring
 | |
| Gets list of geometry attributes for type/class name
 | |
| %End
 | |
| 
 | |
|     QgsError error() const;
 | |
| %Docstring
 | |
| Gets error if :py:func:`~QgsGmlSchema.parseXSD` or :py:func:`~QgsGmlSchema.guessSchema` failed
 | |
| %End
 | |
| 
 | |
| };
 | |
| 
 | |
| /************************************************************************
 | |
|  * This file has been generated automatically from                      *
 | |
|  *                                                                      *
 | |
|  * src/core/qgsgmlschema.h                                              *
 | |
|  *                                                                      *
 | |
|  * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | |
|  ************************************************************************/
 |