Skip to content

Commit

Permalink
Add more doc for WMS service
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jul 13, 2018
1 parent 4853c62 commit 275fa84
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsparameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ namespace QgsWms

/**
* Loads new parameters.
* \param map of parameters
* \param parameters Map of parameters
*/
void load( const QgsServerRequest::Parameters &parameters );

Expand Down
24 changes: 18 additions & 6 deletions src/server/services/wms/qgswmsrenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ namespace QgsWms
QImage *createImage( int width = -1, int height = -1, bool useBbox = true ) const;

/**
* Configures mapSettings to the parameters
* HEIGHT, WIDTH, BBOX, CRS.
* \param paintDevice the device that is used for painting (for dpi)
* Configures map settings according to WMS parameters.
* \param paintDevice The device that is used for painting (for dpi)
* \param mapSettings Map settings to use for rendering
* may throw an exception
*/
void configureMapSettings( const QPaintDevice *paintDevice, QgsMapSettings &mapSettings ) const;
Expand All @@ -207,9 +207,20 @@ namespace QgsWms
const QImage *outputImage, const QString &version ) const;

/**
* Appends feature info xml for the layer to the layer element of the feature info dom document
\param featureBBox the bounding box of the selected features in output CRS
\returns true in case of success*/
* Appends feature info xml for the layer to the layer element of the
* feature info dom document.
* \param layer The vector layer
* \param infoPoint The point coordinates
* \param nFeatures The number of features
* \param infoDocument Feature info document
* \param layerElement Layer XML element
* \param mapSettings Map settings with extent, CRS, ...
* \param renderContext Context to use for feature rendering
* \param version WMS version
* \param featureBBox The bounding box of the selected features in output CRS
* \param filterGeom Geometry for filtering selected features
* \returns true in case of success
*/
bool featureInfoFromVectorLayer( QgsVectorLayer *layer,
const QgsPointXY *infoPoint,
int nFeatures,
Expand All @@ -220,6 +231,7 @@ namespace QgsWms
const QString &version,
QgsRectangle *featureBBox = nullptr,
QgsGeometry *filterGeom = nullptr ) const;

//! Appends feature info xml for the layer to the layer element of the dom document
bool featureInfoFromRasterLayer( QgsRasterLayer *layer,
const QgsMapSettings &mapSettings,
Expand Down

0 comments on commit 275fa84

Please sign in to comment.