forked from shapely/shapely
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GEOS-C-API.txt
55 lines (52 loc) · 3.01 KB
/
GEOS-C-API.txt
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
Ctypes declarations for functions present in GEOS C API 1.4, but not present in
1.3, are listed below:
lgeos.GEOS_getWKBOutputDims.restype = ctypes.c_int
lgeos.GEOS_getWKBByteOrder.restype = ctypes.c_int
lgeos.GEOS_setWKBByteOrder.restype = ctypes.c_int
lgeos.GEOS_setWKBByteOrder.argtypes = [ctypes.c_int]
lgeos.GEOSGeomFromHEX_buf.restype = ctypes.c_void_p
lgeos.GEOSGeomFromHEX_buf.argtypes = [ctypes.c_void_p, ctypes.c_size_t]
lgeos.GEOSSimplify.restype = ctypes.c_void_p
lgeos.GEOSSimplify.argtypes = [ctypes.c_void_p, ctypes.c_double]
lgeos.GEOSTopologyPreserveSimplify.restype = ctypes.c_void_p
lgeos.GEOSTopologyPreserveSimplify.argtypes = [ctypes.c_void_p, ctypes.c_double]
lgeos.GEOSEqualsExact.restype = ctypes.c_int
lgeos.GEOSEqualsExact.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_double]
lgeos.GEOSNormalize.restype = ctypes.c_int
lgeos.GEOSNormalize.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKTReader_create.restype = ctypes.c_void_p
lgeos.GEOSWKTReader_destroy.restype = None
lgeos.GEOSWKTReader_destroy.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKTReader_read.restype = ctypes.c_void_p
lgeos.GEOSWKTReader_read.argtypes = [ctypes.c_void_p, ctypes.c_char_p]
lgeos.GEOSWKTWriter_create.restype = ctypes.c_void_p
lgeos.GEOSWKTWriter_destroy.restype = None
lgeos.GEOSWKTWriter_destroy.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKTWriter_write.restype = ctypes.c_char_p
lgeos.GEOSWKTWriter_write.argtypes = [ctypes.c_void_p, ctypes.c_void_p]
lgeos.GEOSWKBReader_create.restype = ctypes.c_void_p
lgeos.GEOSWKBReader_destroy.restype = None
lgeos.GEOSWKBReader_destroy.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKBReader_read.restype = ctypes.c_void_p
lgeos.GEOSWKBReader_read.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_size_t]
lgeos.GEOSWKBReader_readHEX.restype = ctypes.c_void_p
lgeos.GEOSWKBReader_readHEX.argtypes = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_size_t]
lgeos.GEOSWKBWriter_create.restype = ctypes.c_void_p
lgeos.GEOSWKBWriter_destroy.restype = None
lgeos.GEOSWKBWriter_destroy.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKBWriter_getOutputDimension.restype = ctypes.c_int
lgeos.GEOSWKBWriter_getOutputDimension.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKBWriter_setOutputDimension.restype = None
lgeos.GEOSWKBWriter_setOutputDimension.argtypes = [ctypes.c_void_p, ctypes.c_int]
lgeos.GEOSWKBWriter_getByteOrder.restype = ctypes.c_int
lgeos.GEOSWKBWriter_getByteOrder.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKBWriter_setByteOrder.restype = None
lgeos.GEOSWKBWriter_setByteOrder.argtypes = [ctypes.c_void_p, ctypes.c_int]
lgeos.GEOSWKBWriter_getIncludeSRID.restype = ctypes.c_char
lgeos.GEOSWKBWriter_getIncludeSRID.argtypes = [ctypes.c_void_p]
lgeos.GEOSWKBWriter_setIncludeSRID.restype = None
lgeos.GEOSWKBWriter_setIncludeSRID.argtypes = [ctypes.c_void_p, ctypes.c_char]
Furthermore, the following unneeded declarations are removed to avoid problems
with Debian's 2.2.3 package:
lgeos.GEOSCoordSeq_getOrdinate.restype = ctypes.c_int
lgeos.GEOSCoordSeq_getOrdinate.argtypes = [ctypes.c_void_p, ctypes.c_uint, ctypes.c_uint, ctypes.c_void_p]