1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* GEOSWKBWriter class stub. |
5
|
|
|
* |
6
|
|
|
* These stubs are required for IDEs to provide autocompletion and static code analysis during development. |
7
|
|
|
* They are not required for production. |
8
|
|
|
* |
9
|
|
|
* @see https://github.com/libgeos/libgeos/blob/svn-trunk/php/geos.c |
10
|
|
|
*/ |
11
|
|
|
class GEOSWKBWriter |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* Constructor. |
15
|
|
|
*/ |
16
|
|
|
public function __construct() {} |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Returns the output dimension. |
20
|
|
|
* |
21
|
|
|
* @return int 2 or 2D, 3 for 3D. |
22
|
|
|
*/ |
23
|
|
|
public function getOutputDimension() {} |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* Sets the output dimension. |
27
|
|
|
* |
28
|
|
|
* @param int $dim 2 or 2D, 3 for 3D. |
29
|
|
|
* |
30
|
|
|
* @return void |
31
|
|
|
*/ |
32
|
|
|
public function setOutputDimension($dim) {} |
|
|
|
|
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Returns the output WKB byte order. |
36
|
|
|
* |
37
|
|
|
* @return int 0 for BIG endian, 1 for LITTLE endian. |
38
|
|
|
*/ |
39
|
|
|
public function getByteOrder() {} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Sets the output WKB byte order. |
43
|
|
|
* |
44
|
|
|
* @param int $byteOrder 0 for BIG endian, 1 for LITTLE endian. |
45
|
|
|
* |
46
|
|
|
* @return void |
47
|
|
|
*/ |
48
|
|
|
public function setByteOrder($byteOrder) {} |
|
|
|
|
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* Returns whether the output includes SRID. |
52
|
|
|
* |
53
|
|
|
* @return bool |
54
|
|
|
*/ |
55
|
|
|
public function getIncludeSRID() {} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Sets whether the output includes SRID. |
59
|
|
|
* |
60
|
|
|
* @param bool $inc |
61
|
|
|
* |
62
|
|
|
* @return void |
63
|
|
|
*/ |
64
|
|
|
public function setIncludeSRID($inc) {} |
|
|
|
|
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Writes the given geometry as WKB. |
68
|
|
|
* |
69
|
|
|
* @since 3.5.0 |
70
|
|
|
* |
71
|
|
|
* @param GEOSGeometry $geom |
72
|
|
|
* |
73
|
|
|
* @return string |
74
|
|
|
* |
75
|
|
|
* @throws \Exception If the geometry does not have a WKB representation, notably POINT EMPTY. |
76
|
|
|
*/ |
77
|
|
|
public function write(GEOSGeometry $geom) {} |
|
|
|
|
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Writes the given geometry as hex-encoded WKB. |
81
|
|
|
* |
82
|
|
|
* @param GEOSGeometry $geom |
83
|
|
|
* |
84
|
|
|
* @return string |
85
|
|
|
* |
86
|
|
|
* @throws \Exception If the geometry does not have a WKB representation, notably POINT EMPTY. |
87
|
|
|
*/ |
88
|
|
|
public function writeHEX(GEOSGeometry $geom) {} |
|
|
|
|
89
|
|
|
} |
90
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.