Class: Query

gmf.objectediting.Query

new Query($http, $q, gmfThemes)

A service that collects all queryable layer nodes from all themes, stores them and use them to make WMS GetFeatureInfo queries. Queries can be made regardless of the associated layer visibility. The layer nodes are also loaded only once.

Parameters:
Name Type Description
$http angular.$http

Angular $http service.

$q angular.$q

Angular $q service.

gmfThemes gmf.theme.Themes

The gmf themes service.

Members

(static, non-null) module: angular.Module

Methods

(static) getQueryableLayersInfoFromThemes(themes, ogcServers)

From a list of theme nodes, collect all WMS layer nodes that are queryable. A list of OGC servers is given in order to bind each queryable layer node to its associated server and be able to build requests.

Parameters:
Name Type Description
themes Array.

List of theme nodes.

ogcServers gmfThemes.GmfOgcServers

List of ogc servers

Returns:
Array.

List of queryable layers information.

getFeatureInfo(layerInfo, coordinate, map)

From a queryable layer (WMS layer node), use its associated OGC server to issue a single WMS GetFeatureInfo request at a specific location on a specific map to fetch a single feature. If no feature is found, a null value is returned.

Parameters:
Name Type Description
layerInfo gmfx.ObjectEditingQueryableLayerInfo

Queryable layer information.

coordinate ol.Coordinate

Coordinate.

map ol.Map

Map.

Returns:

getQueryableLayersInfo()

Returns: