PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
geography_measurement_trees.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#include "liblwgeom_internal.h"
26#include "lwgeodetic_tree.h"
27#include "lwgeom_cache.h"
28
29int geography_dwithin_cache(FunctionCallInfo fcinfo,
30 SHARED_GSERIALIZED *g1,
31 SHARED_GSERIALIZED *g2,
32 const SPHEROID *s,
33 double tolerance,
34 int *dwithin);
35int geography_distance_cache(FunctionCallInfo fcinfo,
36 SHARED_GSERIALIZED *g1,
37 SHARED_GSERIALIZED *g2,
38 const SPHEROID *s,
39 double *distance);
40
42 const GSERIALIZED* g1,
43 const GSERIALIZED* g2,
44 const SPHEROID* s,
45 double tolerance,
46 double* distance);
47
48
char * s
Definition cu_in_wkt.c:23
int geography_tree_distance(const GSERIALIZED *g1, const GSERIALIZED *g2, const SPHEROID *s, double tolerance, double *distance)
int geography_dwithin_cache(FunctionCallInfo fcinfo, SHARED_GSERIALIZED *g1, SHARED_GSERIALIZED *g2, const SPHEROID *s, double tolerance, int *dwithin)
int geography_distance_cache(FunctionCallInfo fcinfo, SHARED_GSERIALIZED *g1, SHARED_GSERIALIZED *g2, const SPHEROID *s, double *distance)
static double distance(double x1, double y1, double x2, double y2)
Definition lwtree.c:1032