PostGIS  3.7.0dev-r@@SVN_REVISION@@
lwgeom_itree.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 2024 Paul Ramsey <pramsey@cleverelephant.ca>
22  *
23  **********************************************************************/
24 
25 #pragma once
26 
27 #include "liblwgeom.h"
28 #include "lwgeom_cache.h"
29 #include "intervaltree.h"
30 
36 IntervalTree * GetIntervalTree(FunctionCallInfo fcinfo, SHARED_GSERIALIZED *g1);
37 
38 bool itree_pip_intersects(const IntervalTree *itree, const LWGEOM *lwpoints);
39 bool itree_pip_contains(const IntervalTree *itree, const LWGEOM *lwpoints);
40 bool itree_pip_covers(const IntervalTree *itree, const LWGEOM *lwpoints);
41 
42 
This library is the generic geometry handling section of PostGIS.
bool itree_pip_intersects(const IntervalTree *itree, const LWGEOM *lwpoints)
Definition: lwgeom_itree.c:217
IntervalTree * GetIntervalTree(FunctionCallInfo fcinfo, SHARED_GSERIALIZED *g1)
Checks for a cache hit against the provided geometry and returns a pre-built index structure (RTREE_P...
Definition: lwgeom_itree.c:114
bool itree_pip_covers(const IntervalTree *itree, const LWGEOM *lwpoints)
Definition: lwgeom_itree.c:185
bool itree_pip_contains(const IntervalTree *itree, const LWGEOM *lwpoints)
Definition: lwgeom_itree.c:140