|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* GEOS functions stubs. |
|
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
|
|
|
|
|
12
|
|
|
/** |
|
13
|
|
|
* @return string |
|
14
|
|
|
*/ |
|
15
|
|
|
function GEOSVersion() {} |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* The returned array contains the following elements: |
|
19
|
|
|
* |
|
20
|
|
|
* - 'rings' |
|
21
|
|
|
* Type: array of GEOSGeometry |
|
22
|
|
|
* Rings that can be formed by the costituent |
|
23
|
|
|
* linework of geometry. |
|
24
|
|
|
* - 'cut_edges' (optional) |
|
25
|
|
|
* Type: array of GEOSGeometry |
|
26
|
|
|
* Edges which are connected at both ends but |
|
27
|
|
|
* which do not form part of polygon. |
|
28
|
|
|
* - 'dangles' |
|
29
|
|
|
* Type: array of GEOSGeometry |
|
30
|
|
|
* Edges which have one or both ends which are |
|
31
|
|
|
* not incident on another edge endpoint |
|
32
|
|
|
* - 'invalid_rings' |
|
33
|
|
|
* Type: array of GEOSGeometry |
|
34
|
|
|
* Edges which form rings which are invalid |
|
35
|
|
|
* (e.g. the component lines contain a self-intersection) |
|
36
|
|
|
* |
|
37
|
|
|
* @param GEOSGeometry $geom |
|
38
|
|
|
* |
|
39
|
|
|
* @return array{"rings":array,"cut_edges"?:array,"dangles":array,"invalid_rings":array} |
|
40
|
|
|
*/ |
|
41
|
|
|
function GEOSPolygonize(GEOSGeometry $geom) {} |
|
|
|
|
|
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @param GEOSGeometry $geom |
|
45
|
|
|
* |
|
46
|
|
|
* @return GEOSGeometry[] |
|
47
|
|
|
*/ |
|
48
|
|
|
function GEOSLineMerge(GEOSGeometry $geom) {} |
|
|
|
|
|
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @param GEOSGeometry $geom1 |
|
52
|
|
|
* @param GEOSGeometry $geom2 |
|
53
|
|
|
* |
|
54
|
|
|
* @return GEOSGeometry |
|
55
|
|
|
*/ |
|
56
|
|
|
function GEOSSharedPaths(GEOSGeometry $geom1, GEOSGeometry $geom2) {} |
|
|
|
|
|
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @param string $matrix |
|
60
|
|
|
* @param string $pattern |
|
61
|
|
|
* |
|
62
|
|
|
* @return bool |
|
63
|
|
|
*/ |
|
64
|
|
|
function GEOSRelateMatch($matrix, $pattern) {} |
|
|
|
|
|
|
65
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.