QGIS API Documentation
3.43.0-Master (3ee7834ace6)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
geometry
qgsvertexid.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsvertexid.cpp
3
-------------------------------------------------------------------
4
Date : 04 Sept 2014
5
Copyright : (C) 2014 by Marco Hugentobler
6
email : marco.hugentobler at sourcepole dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsvertexid.h
"
17
#include "
qgsabstractgeometry.h
"
18
19
bool
QgsVertexId::isValid
(
const
QgsAbstractGeometry
*geom )
const
20
{
21
return
(
part
>= 0 && part < geom->partCount() ) &&
22
(
ring
< geom->
ringCount
(
part
) ) &&
23
(
vertex
< 0 || vertex < geom->vertexCount(
part
,
ring
) );
24
}
19
bool
QgsVertexId::isValid
(
const
QgsAbstractGeometry
*geom )
const
{
…
}
QgsAbstractGeometry
Abstract base class for all geometries.
Definition
qgsabstractgeometry.h:80
QgsAbstractGeometry::ringCount
virtual int ringCount(int part=0) const =0
Returns the number of rings of which this geometry is built.
qgsabstractgeometry.h
qgsvertexid.h
QgsVertexId::vertex
int vertex
Vertex number.
Definition
qgsvertexid.h:94
QgsVertexId::isValid
bool isValid() const
Returns true if the vertex id is valid.
Definition
qgsvertexid.h:45
QgsVertexId::part
int part
Part number.
Definition
qgsvertexid.h:88
QgsVertexId::ring
int ring
Ring number.
Definition
qgsvertexid.h:91
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8