QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
core
providers
memory
qgsmemoryproviderutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmemoryproviderutils.h
3
------------------------
4
begin : May 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSMEMORYPROVIDERUTILS_H
19
#define QGSMEMORYPROVIDERUTILS_H
20
21
#include "qgis_core.h"
22
#include "
qgswkbtypes.h
"
23
#include "
qgscoordinatereferencesystem.h
"
24
#include <QString>
25
#include <QVariant>
26
27
class
QgsVectorLayer
;
28
class
QgsFields
;
29
36
class
CORE_EXPORT
QgsMemoryProviderUtils
37
{
38
39
public
:
40
49
static
QgsVectorLayer
*createMemoryLayer(
const
QString &name,
50
const
QgsFields
&fields,
51
QgsWkbTypes::Type
geometryType =
QgsWkbTypes::NoGeometry
,
52
const
QgsCoordinateReferenceSystem
&
crs
=
QgsCoordinateReferenceSystem
() )
SIP_FACTORY
;
53
};
54
55
#endif // QGSMEMORYPROVIDERUTILS_H
56
57
crs
const QgsCoordinateReferenceSystem & crs
Definition:
qgswfsgetfeature.cpp:105
QgsFields
Container of fields for a vector layer.
Definition:
qgsfields.h:44
QgsWkbTypes::Type
Type
The WKB type describes the number of dimensions a geometry has.
Definition:
qgswkbtypes.h:69
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsMemoryProviderUtils
Utility functions for use with the memory vector data provider.
Definition:
qgsmemoryproviderutils.h:36
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition:
qgscoordinatereferencesystem.h:211
QgsWkbTypes::NoGeometry
@ NoGeometry
Definition:
qgswkbtypes.h:85
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:391
qgswkbtypes.h
qgscoordinatereferencesystem.h
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17