MobilityDB 1.3
Loading...
Searching...
No Matches
trgeo_vclip.h
Go to the documentation of this file.
1/*****************************************************************************
2 *
3 * This MobilityDB code is provided under The PostgreSQL License.
4 * Copyright (c) 2016-2025, Université libre de Bruxelles and MobilityDB
5 * contributors
6 *
7 * MobilityDB includes portions of PostGIS version 3 source code released
8 * under the GNU General Public License (GPLv2 or later).
9 * Copyright (c) 2001-2025, PostGIS contributors
10 *
11 * Permission to use, copy, modify, and distribute this software and its
12 * documentation for any purpose, without fee, and without a written
13 * agreement is hereby granted, provided that the above copyright notice and
14 * this paragraph and the following two paragraphs appear in all copies.
15 *
16 * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
17 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
18 * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
19 * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
20 * OF SUCH DAMAGE.
21 *
22 * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
23 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
25 * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
26 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
27 *
28 *****************************************************************************/
29
35#ifndef __TRGEO_VCLIP_H__
36#define __TRGEO_VCLIP_H__
37
38/* C */
39#include <c.h>
40/* PostgreSQL */
41#include <postgres.h>
42/* PostGIS */
43#include <liblwgeom.h>
44/* MEOS */
45#include "temporal/temporal.h"
46#include "pose/pose.h"
47
48/*****************************************************************************
49 * Struct definitions
50 *****************************************************************************/
51
53#define MEOS_MAX_ITERS 1000
54
56#define MEOS_CONTINUE 0
57#define MEOS_DISJOINT 1
58#define MEOS_INTERSECT -1
59
60/*****************************************************************************/
61
62/* V-clip functions */
63
64extern int v_clip_tpoly_point(const LWPOLY *poly, const LWPOINT *point,
65 const Pose *pose, uint32_t *poly_feature, double *dist);
66extern int v_clip_tpoly_tpoly(const LWPOLY *poly1, const LWPOLY *poly2,
67 const Pose *pose1, const Pose *pose2, uint32_t *poly1_feature,
68 uint32_t *poly2_feature, double *dist);
69
70extern void apply_pose_point4d(POINT4D *p, const Pose *pose);
71
72/*****************************************************************************/
73
74#endif
Definition: postgis_ext_defs.in.h:196
Definition: postgis_ext_defs.in.h:244
Definition: postgis_ext_defs.in.h:140
Basic functions for static pose objects.
Definition: pose.h:56
void apply_pose_point4d(POINT4D *p, const Pose *pose)
Definition: trgeo_vclip.c:89
int v_clip_tpoly_tpoly(const LWPOLY *poly1, const LWPOLY *poly2, const Pose *pose1, const Pose *pose2, uint32_t *poly1_feature, uint32_t *poly2_feature, double *dist)
Definition: trgeo_vclip.c:603
int v_clip_tpoly_point(const LWPOLY *poly, const LWPOINT *point, const Pose *pose, uint32_t *poly_feature, double *dist)
Definition: trgeo_vclip.c:304