Lizmap Web Client 3.11.0

WfsFeatureReader
in package

Read the features of a layer with a WFS GetFeature request.

The request is processed by WFSRequest: by a direct query for PostgreSQL layers when possible, by QGIS Server otherwise. The features are decoded by blocks from the response stream.

Table of Contents

Properties

$layerId  : string
$project  : Project

Methods

__construct()  : mixed
Create the reader for the given layer.
read()  : null|iterable<string|int, mixed>
Request the layer features without geometry.

Properties

Methods

__construct()

Create the reader for the given layer.

public __construct(Project $project, string $layerId) : mixed
Parameters
$project : Project

the Lizmap project, the ACL must have been checked

$layerId : string

the QGIS layer identifier

read()

Request the layer features without geometry.

public read(array<int, string> $propertyNames[, string $expFilter = '' ][, array<int, string> $sortBy = array() ]) : null|iterable<string|int, mixed>
Parameters
$propertyNames : array<int, string>

the fields to get

$expFilter : string = ''

a QGIS expression to filter the features

$sortBy : array<int, string> = array()

the fields to sort the features

Return values
null|iterable<string|int, mixed> —

the GeoJSON features, decoded by blocks from the response stream, null if the request failed

On this page

Search results