PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
lwgeom_rtree.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^
22 *
23 **********************************************************************/
24
25#ifndef _LWGEOM_RTREE_H
26#define _LWGEOM_RTREE_H 1
27
28#include "liblwgeom.h"
29#include "lwgeom_cache.h"
30
34typedef struct
35{
36 double min;
37 double max;
38}
40
54
64
65
66typedef struct
67{
68 GeomCache gcache;
71
75LWMLINE *RTreeFindLineSegments(RTREE_NODE *root, double value);
76
77
83RTREE_POLY_CACHE *GetRtreeCache(FunctionCallInfo fcinfo, GSERIALIZED *g1);
84
85#endif /* !defined _LWGEOM_RTREE_H */
This library is the generic geometry handling section of PostGIS.
RTREE_POLY_CACHE * GetRtreeCache(FunctionCallInfo fcinfo, GSERIALIZED *g1)
Checks for a cache hit against the provided geometry and returns a pre-built index structure (RTREE_P...
LWMLINE * RTreeFindLineSegments(RTREE_NODE *root, double value)
Retrieves a collection of line segments given the root and crossing value.
struct rtree_node RTREE_NODE
The following struct and methods are used for a 1D RTree implementation, described at: http://lin-ear...
Representation for the y-axis interval spanned by an edge.
RTREE_NODE ** ringIndices
The tree structure used for fast P-i-P tests by point_in_multipolygon_rtree()
GeomCache gcache
RTREE_POLY_CACHE * index
struct rtree_node * leftNode
struct rtree_node * rightNode
LWLINE * segment
RTREE_INTERVAL * interval
The following struct and methods are used for a 1D RTree implementation, described at: http://lin-ear...