Skip to content
Permalink
Browse files
[Server] WFS update indetation and spelling
  • Loading branch information
rldhont committed Apr 8, 2017
1 parent d018f03 commit cd506aacbe9aac3091cab0382636ca2600d077ce
Showing with 11 additions and 11 deletions.
  1. +5 −5 src/server/services/wfs/qgswfsdescribefeaturetype.h
  2. +2 −2 src/server/services/wfs/qgswfsgetcapabilities.h
  3. +4 −4 src/server/services/wfs/qgswfstransaction.cpp
@@ -28,18 +28,18 @@

namespace QgsWfs
{
void setSchemaLayer( QDomElement& parentElement, QDomDocument& doc, const QgsVectorLayer* layer );
void setSchemaLayer( QDomElement &parentElement, QDomDocument &doc, const QgsVectorLayer *layer );

/**
* Create get capabilities document
*/
QDomDocument createDescribeFeatureTypeDocument( QgsServerInterface* serverIface, const QgsProject* project, const QString& version,
const QgsServerRequest& request );
QDomDocument createDescribeFeatureTypeDocument( QgsServerInterface *serverIface, const QgsProject *project, const QString &version,
const QgsServerRequest &request );

/** Output WFS GetCapabilities response
*/
void writeDescribeFeatureType( QgsServerInterface* serverIface, const QgsProject* project, const QString& version,
const QgsServerRequest& request, QgsServerResponse& response );
void writeDescribeFeatureType( QgsServerInterface *serverIface, const QgsProject *project, const QString &version,
const QgsServerRequest &request, QgsServerResponse &response );

} // samespace QgsWfs

@@ -29,12 +29,12 @@ namespace QgsWfs
/**
* Create FeatureTypeList element for get capabilities document
*/
QDomElement getFeatureTypeListElement( QDomDocument& doc, QgsServerInterface* serverIface, const QgsProject* project );
QDomElement getFeatureTypeListElement( QDomDocument &doc, QgsServerInterface *serverIface, const QgsProject *project );

/**
* Create Service element for get capabilities document
*/
QDomElement getServiceElement( QDomDocument& doc, const QgsProject* project );
QDomElement getServiceElement( QDomDocument &doc, const QgsProject *project );

/**
* Create get capabilities document
@@ -461,7 +461,7 @@ namespace QgsWfs
if ( !vlayer->commitChanges() )
{
action.error = true;
action.errorMsg = QStringLiteral( "Error commiting updates: %1" ).arg( vlayer->commitErrors().join( QStringLiteral( "; " ) ) );
action.errorMsg = QStringLiteral( "Error committing updates: %1" ).arg( vlayer->commitErrors().join( QStringLiteral( "; " ) ) );
vlayer->rollBack();
continue;
}
@@ -558,7 +558,7 @@ namespace QgsWfs
if ( !vlayer->commitChanges() )
{
action.error = true;
action.errorMsg = QStringLiteral( "Error commiting deletes: %1" ).arg( vlayer->commitErrors().join( QStringLiteral( "; " ) ) );
action.errorMsg = QStringLiteral( "Error committing deletes: %1" ).arg( vlayer->commitErrors().join( QStringLiteral( "; " ) ) );
vlayer->rollBack();
continue;
}
@@ -658,7 +658,7 @@ namespace QgsWfs
if ( !vlayer->commitChanges() )
{
action.error = true;
action.errorMsg = QStringLiteral( "Error commiting inserts: %1" ).arg( vlayer->commitErrors().join( QStringLiteral( "; " ) ) );
action.errorMsg = QStringLiteral( "Error committing inserts: %1" ).arg( vlayer->commitErrors().join( QStringLiteral( "; " ) ) );
vlayer->rollBack();
continue;
}
@@ -739,7 +739,7 @@ namespace QgsWfs
}
currentAttributeChild = currentAttributeChild.nextSibling();
}
// update fetaure list
// update feature list
featList << feat;
}
return featList;

0 comments on commit cd506aa

Please sign in to comment.