HydroCoupleOgc  0.1.0
OGC web service clients (WMS, WMTS, WCS, WFS) over Qt Network (0.1.0)
Loading...
Searching...
No Matches
wfsrequest.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) 2026 HydroCouple
3
9
10#ifndef HYDROCOUPLEOGC_WFSREQUEST_H
11#define HYDROCOUPLEOGC_WFSREQUEST_H
12
15
16#include <QRectF>
17#include <QString>
18
19namespace HydroCouple::Ogc
20{
25 {
27 QString typeName;
28
36 QString crs;
37
45 QRectF extent;
46
54 int count = 5000;
55
57 int startIndex = 0;
58
60 QString outputFormat;
61 };
62
80 [[nodiscard]] HYDROCOUPLEOGC_EXPORT QString buildGetFeatureUrl(
81 const WfsCapabilities &capabilities, const WfsGetFeatureRequest &request);
82
94 [[nodiscard]] HYDROCOUPLEOGC_EXPORT QString preferredOutputFormat(
95 const WfsFeatureType &type, const QStringList &serviceFormats);
96
98 [[nodiscard]] HYDROCOUPLEOGC_EXPORT bool isGeoJsonFormat(
99 const QString &format);
100
101} // namespace HydroCouple::Ogc
102
103#endif // HYDROCOUPLEOGC_WFSREQUEST_H
Symbol visibility for the shared library.
#define HYDROCOUPLEOGC_EXPORT
Definition export.h:20
Definition axisorder.h:30
HYDROCOUPLEOGC_EXPORT QString preferredOutputFormat(const WfsFeatureType &type, const QStringList &serviceFormats)
The best format to ask type for, of those it offers.
Definition wfsrequest.cpp:37
HYDROCOUPLEOGC_EXPORT QString buildGetFeatureUrl(const WfsCapabilities &capabilities, const WfsGetFeatureRequest &request)
Builds a GetFeature URL.
Definition wfsrequest.cpp:64
HYDROCOUPLEOGC_EXPORT bool isGeoJsonFormat(const QString &format)
Definition wfsrequest.cpp:30
What a WFS server said about itself.
Definition wfscapabilities.h:86
One collection of features a WFS publishes.
Definition wfscapabilities.h:38
One GetFeature.
Definition wfsrequest.h:25
int startIndex
Where in the result set to start, for fetching the next page.
Definition wfsrequest.h:57
int count
The most features to return.
Definition wfsrequest.h:54
QString outputFormat
An advertised format, or empty to let one be chosen.
Definition wfsrequest.h:60
QString crs
The system to ask for the features in, as the server spells it.
Definition wfsrequest.h:36
QRectF extent
The ground wanted, in crs, or a null rectangle for all of it.
Definition wfsrequest.h:45
QString typeName
The feature type, as the server names it.
Definition wfsrequest.h:27
What a WFS server offers, and how to ask it for features.