PostGIS
3.7.0dev-r@@SVN_REVISION@@
lwt_node_edges.h
Go to the documentation of this file.
1
/**********************************************************************
2
*
3
* PostGIS - Spatial Types for PostgreSQL
4
* http://postgis.net
5
*
6
* PostGIS is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* PostGIS is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with PostGIS. If not, see <http://www.gnu.org/licenses/>.
18
*
19
**********************************************************************
20
*
21
* Copyright (C) 2024 Sandro Santilli <strk@kbt.io>
22
*
23
**********************************************************************/
24
25
#include "
liblwgeom_internal.h
"
26
#include "
liblwgeom_topo_internal.h
"
27
#include "lwgeom_geos.h"
28
29
typedef
struct
LWT_NODE_EDGES_t
{
30
uint64_t
numEdges
;
31
int
fields
;
/* bitwise AND of fields present in edges, see LWT_COL_EDGE_* macros */
32
LWT_ISO_EDGE
*
edges
;
33
}
LWT_NODE_EDGES
;
34
35
/*
36
* @param fields fields to load for each edge, see LWT_COL_EDGE_* macros
37
*
38
* @return NULL on error, calling lwerror, otherwise an object to
39
* be released with lwt_nodeEdges_release()
40
*/
41
LWT_NODE_EDGES
*
lwt_nodeEdges_loadFromDB
(
LWT_TOPOLOGY
*topo,
LWT_ELEMID
node_id,
int
fields );
42
43
void
lwt_nodeEdges_release
(
LWT_NODE_EDGES
*star );
44
liblwgeom_internal.h
LWT_ELEMID
LWT_INT64 LWT_ELEMID
Identifier of topology element.
Definition:
liblwgeom_topo.h:35
liblwgeom_topo_internal.h
lwt_nodeEdges_loadFromDB
LWT_NODE_EDGES * lwt_nodeEdges_loadFromDB(LWT_TOPOLOGY *topo, LWT_ELEMID node_id, int fields)
Definition:
lwt_node_edges.c:44
LWT_NODE_EDGES
struct LWT_NODE_EDGES_t LWT_NODE_EDGES
lwt_nodeEdges_release
void lwt_nodeEdges_release(LWT_NODE_EDGES *star)
Definition:
lwt_node_edges.c:28
LWT_ISO_EDGE
EDGE.
Definition:
liblwgeom_topo.h:60
LWT_NODE_EDGES_t::edges
LWT_ISO_EDGE * edges
Definition:
lwt_node_edges.h:32
LWT_NODE_EDGES_t::fields
int fields
Definition:
lwt_node_edges.h:31
LWT_NODE_EDGES_t::numEdges
uint64_t numEdges
Definition:
lwt_node_edges.h:30
LWT_NODE_EDGES_t
Definition:
lwt_node_edges.h:29
LWT_TOPOLOGY_T
Definition:
liblwgeom_topo_internal.h:125
liblwgeom
topo
lwt_node_edges.h
Generated by
1.9.1