Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
WMS identify feature support - get vector features from GML GetFeatur…
…eInfo
- Loading branch information
Showing
38 changed files
with
2,217 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class QgsGml: QObject | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include <qgsgml.h> | ||
%End | ||
|
||
public: | ||
|
||
QgsGml( | ||
const QString& typeName, | ||
const QString& geometryAttribute, | ||
const QgsFields & fields ); | ||
|
||
~QgsGml(); | ||
|
||
/** Read from GML data. */ | ||
int getFeatures( const QByteArray &data, QGis::WkbType* wkbType, QgsRectangle* extent = 0 ); | ||
|
||
QMap<qint64, QgsFeature* > featuresMap() const; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//typedef QMap<int, QgsField> QgsFieldMap; | ||
|
||
class QgsGmlSchema: QObject | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include <qgsgmlschema.h> | ||
%End | ||
|
||
public: | ||
QgsGmlSchema(); | ||
~QgsGmlSchema(); | ||
|
||
/** Get fields info from XSD */ | ||
bool parseXSD( const QByteArray &xml ); | ||
|
||
/** Guess GML schema from data if XSD does not exist. | ||
* Currently only recognizes UMN Mapserver GetFeatureInfo GML response. | ||
* @param data GML data | ||
* @return true in case of success */ | ||
bool guessSchema( const QByteArray &data ); | ||
|
||
QStringList typeNames() const; | ||
|
||
QList<QgsField> fields( const QString & typeName ); | ||
|
||
QStringList geometryAttributes( const QString & typeName ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.