-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgo-geos.h
63 lines (50 loc) · 2.88 KB
/
go-geos.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef GEOS_H
#define GEOS_H
#include <stdint.h>
#define GEOS_USE_ONLY_R_API
#include <geos_c.h>
uintptr_t c_GEOSGeom_getUserData_r(GEOSContextHandle_t handle,
const GEOSGeometry *g);
void c_GEOSGeom_setUserData_r(GEOSContextHandle_t handle, GEOSGeometry *g,
uintptr_t userdata);
void c_GEOSGeomBounds_r(GEOSContextHandle_t handle, const GEOSGeometry *g,
double *minX, double *minY, double *maxX, double *maxY);
int c_GEOSGeomGetInfo_r(GEOSContextHandle_t handle, const GEOSGeometry *g,
int *typeID, int *numGeometries, int *numPoints,
int *numInteriorRings);
void c_errorMessageHandler(const char *message, void *userdata);
GEOSCoordSequence *c_newGEOSCoordSeqFromFlatCoords_r(GEOSContextHandle_t handle,
unsigned int size,
unsigned int dims,
const double *flatCoords);
GEOSGeometry *c_newGEOSGeomFromBounds_r(GEOSContextHandle_t handle, int *typeID,
double minX, double minY, double maxX,
double maxY);
int c_GEOSSTRtree_distance_callback(const void *item1, const void *item2,
double *distance, void *userdata);
void c_GEOSSTRtree_query_callback(void *elem, void *userdata);
GEOSGeometry *c_GEOSMakeValidWithParams_r(GEOSContextHandle_t handle,
const GEOSGeometry *g,
enum GEOSMakeValidMethods method,
int keepCollapsed);
#if GEOS_VERSION_MAJOR < 3 || \
(GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR < 11)
GEOSGeometry *GEOSConcaveHull_r(GEOSContextHandle_t handle,
const GEOSGeometry *g, double ratio,
unsigned int allowHoles);
#endif
#if GEOS_VERSION_MAJOR < 3 || \
(GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR < 12)
GEOSGeometry *GEOSConcaveHullByLength_r(GEOSContextHandle_t handle,
const GEOSGeometry *g, double ratio,
unsigned int allowHoles);
char GEOSPreparedContainsXY_r(GEOSContextHandle_t handle,
const GEOSPreparedGeometry *pg1, double x,
double y);
char GEOSPreparedIntersectsXY_r(GEOSContextHandle_t handle,
const GEOSPreparedGeometry *pg1, double x,
double y);
GEOSGeometry *GEOSDisjointSubsetUnion_r(GEOSContextHandle_t handle,
const GEOSGeometry *g);
#endif
#endif