31 #include <QDomElement>
32 #include <QStringList>
41 class CORE_EXPORT
QgsGml :
public QObject
46 const QString& typeName,
47 const QString& geometryAttribute,
67 QMap<QgsFeatureId, QgsFeature* >
featuresMap()
const {
return mFeatures; }
70 QMap<QgsFeatureId, QString >
idsMap()
const {
return mIdMap; }
81 void handleProgressEvent( qint64 progress, qint64 totalSteps );
84 void dataReadProgress(
int progress );
85 void totalStepsUpdate(
int totalSteps );
87 void dataProgressAndSteps(
int progress,
int totalSteps );
106 void startElement(
const XML_Char* el,
const XML_Char** attr );
107 void endElement(
const XML_Char* el );
108 void characters(
const XML_Char* chars,
int len );
109 static void start(
void* data,
const XML_Char* el,
const XML_Char** attr )
111 static_cast<QgsGml*
>( data )->startElement( el, attr );
113 static void end(
void* data,
const XML_Char* el )
115 static_cast<QgsGml*
>( data )->endElement( el );
117 static void chars(
void* data,
const XML_Char* chars,
int len )
119 static_cast<QgsGml*
>( data )->characters( chars, len );
129 int readEpsgFromAttribute(
int& epsgNr,
const XML_Char** attr )
const;
135 QString readAttribute(
const QString& attributeName,
const XML_Char** attr )
const;
138 int createBBoxFromCoordinateString(
QgsRectangle &bb,
const QString& coordString )
const;
144 int pointsFromCoordinateString( QList<QgsPoint>& points,
const QString& coordString )
const;
152 int pointsFromPosListString( QList<QgsPoint>& points,
const QString& coordString,
int dimension )
const;
154 int pointsFromString( QList<QgsPoint>& points,
const QString& coordString )
const;
155 int getPointWKB(
unsigned char** wkb,
int*
size,
const QgsPoint& )
const;
156 int getLineWKB(
unsigned char** wkb,
int*
size,
const QList<QgsPoint>& lineCoordinates )
const;
157 int getRingWKB(
unsigned char** wkb,
int*
size,
const QList<QgsPoint>& ringCoordinates )
const;
163 int createMultiLineFromFragments();
164 int createMultiPointFromFragments();
165 int createPolygonFromFragments();
166 int createMultiPolygonFromFragments();
168 int totalWKBFragmentSize()
const;
171 QWidget* findMainWindow()
const;
177 void calculateExtentFromFeatures();