forked from twpayne/go-geos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeommethods.yaml
306 lines (306 loc) · 8.16 KB
/
geommethods.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
- name: Area
comment: returns g's area
type: float64Property
- name: Buffer
comment: returns g with the given buffer
type: unary
extraArgs:
- name: width
type: float64
- name: quadsegs
type: int
- name: BufferWithStyle
comment: returns a buffer using the provided style parameters
type: unary
extraArgs:
- name: width
type: float64
- name: quadsegs
type: int
- name: endCapStyle
type: BufCapStyle
- name: joinStyle
type: BufJoinStyle
- name: mitreLimit
type: float64
- name: BuildArea
comment: returns the polygonization using all the linework, assuming that rings contained within rings are empty holes, rather than extra PolygonHoleSimplify
type: unary
- name: ClipByRect
comment: returns g clipped to a rectangular polygon
type: unary
extraArgs:
- name: xMin
type: float64
- name: yMin
type: float64
- name: xMax
type: float64
- name: yMax
type: float64
- name: Clone
comment: returns a clone of g
type: unary
geosFunction: GEOSGeom_clone_r
- name: ConcaveHull
comment: returns the concave hull of g
type: unary
extraArgs:
- name: ratio
type: float64
- name: allowHoles
type: uint
- name: Contains
comment: returns true if g contains other
type: binaryPredicate
- name: ConvexHull
comment: returns g's convex hull
type: unary
- name: CoverageUnion
comment: returns the union of g for polygonal inputs that are correctly noded and do not overlap
type: unary
- name: CoveredBy
comment: returns true if g is covered by other
type: binaryPredicate
- name: Covers
comment: returns true if g covers other
type: binaryPredicate
- name: Crosses
comment: returns true if g crosses other
type: binaryPredicate
- name: Densify
comment: returns g densified with the given tolerance
type: unary
extraArgs:
- name: tolerance
type: float64
- name: Difference
comment: returns the difference between g and other
type: binary
- name: DifferencePrec
comment: returns the difference between g and other
type: binary
extraArgs:
- name: gridSize
type: float64
- name: Disjoint
comment: returns true if g is disjoint from other
type: binaryPredicate
- name: Distance
comment: returns the distance between the closes points on g and other
type: float64BinaryProperty
- name: DistanceIndexed
comment: returns the distance between g and other, using the indexed facet distance
type: float64BinaryProperty
- name: DistanceWithin
comment: returns whether the distance between g and other is within the given dist
type: binaryPredicate
extraArgs:
- name: dist
type: float64
- name: Envelope
comment: returns the envelope of g
type: unary
- name: Equals
comment: returns true if g equals other
type: binaryPredicate
- name: EqualsExact
comment: returns true if g equals other exactly
type: binaryPredicate
extraArgs:
- name: tolerance
type: float64
- name: FrechetDistance
comment: returns the Fréchet distance between g and other
type: float64BinaryProperty
- name: FrechetDistanceDensify
comment: returns the Fréchet distance between g and other
type: float64BinaryProperty
extraArgs:
- name: densifyFrac
type: float64
- name: HasZ
comment: returns if g has Z coordinates
type: unaryPredicate
- name: HausdorffDistance
comment: returns the Hausdorff distance between g and other
type: float64BinaryProperty
- name: HausdorffDistanceDensify
comment: returns the Hausdorff distance between g and other
type: float64BinaryProperty
extraArgs:
- name: densifyFrac
type: float64
- name: Interpolate
comment: returns a point distance d from the start of g, which must be a linestring
type: unary
nil: true
extraArgs:
- name: d
type: float64
- name: InterpolateNormalized
comment: returns the point that is at proportion from the start
type: unary
nil: true
extraArgs:
- name: proportion
type: float64
- name: Intersection
comment: returns the intersection of g and other
type: binary
- name: IntersectionPrec
comment: returns the intersection of g and other
type: binary
extraArgs:
- name: gridSize
type: float64
- name: Intersects
comment: returns true if g intersects other
type: binaryPredicate
- name: IsClosed
comment: returns true if g is closed
type: unaryPredicate
geosFunction: GEOSisClosed_r
- name: IsEmpty
comment: returns true if g is empty
type: unaryPredicate
geosFunction: GEOSisEmpty_r
- name: IsRing
comment: returns true if g is a ring
type: unaryPredicate
geosFunction: GEOSisRing_r
- name: IsSimple
comment: returns true if g is simple
type: unaryPredicate
geosFunction: GEOSisSimple_r
- name: IsValid
comment: returns true if g is valid
type: unaryPredicate
geosFunction: GEOSisValid_r
- name: Length
comment: returns g's length
type: float64Property
- name: MakeValid
comment: repairs an invalid geometry, returning a valid output
type: unary
- name: MaximumInscribedCircle
comment: returns the maximum inscribed circle of g up to the the given tolerance
type: unary
extraArgs:
- name: tolerance
type: float64
- name: MinimumRotatedRectangle
comment: returns the minimum rotated rectangle enclosing g
type: unary
- name: MinimumWidth
comment: returns a linestring geometry which represents the minimum diameter of g
type: unary
- name: Node
comment: returns a new geometry in which no lines cross each other, and all touching occurs at endpoints
type: unary
- name: OffsetCurve
comment: returns the offset curve line(s) of g
type: unary
extraArgs:
- name: width
type: float64
- name: quadsegs
type: int
#- name: endCapStyle
# type: BufCapStyle
- name: joinStyle
type: BufJoinStyle
- name: mitreLimit
type: float64
- name: Overlaps
comment: returns true if g overlaps other
type: binaryPredicate
#- name: PolygonHoleSimplify
# type: unary
# extraArgs:
# - name: isOuter
# type: int
# - name: vertexNumFraction
# type: float64
#- name: PolygonHoleSimplifyMode
# type: unary
# extraArgs:
# - name: isOuter
# type: int
# - name: parameterMode
# type: uint
# - name: vertexNumFraction
# type: float64
- name: Project
comment: returns the distance of other(a point) projected onto g(a line) from the start of the line
type: float64BinaryProperty
valueReturned: true
- name: ProjectNormalized
comment: returns the proportional distance of other(a point) projected onto g(a line) from the start of the line. For example, a point that projects to the middle of a line would be return 0.5
type: float64BinaryProperty
valueReturned: true
- name: SetPrecision
comment: changes the coordinate precision of g
type: unary
geosFunction: GEOSGeom_setPrecision_r
extraArgs:
- name: gridSize
type: float64
- name: flags
type: PrecisionRule
- name: SharedPaths
comment: returns the paths shared between g and other, which must be lineal geometries
type: binary
- name: Simplify
comment: returns a simplified geometry
type: unary
extraArgs:
- name: tolerance
type: float64
- name: SymDifference
comment: returns the symmetric difference between g and other
type: binary
- name: SymDifferencePrec
comment: returns the symmetric difference between g and other
type: binary
extraArgs:
- name: gridSize
type: float64
- name: TopologyPreserveSimplify
comment: returns a simplified geometry preserving topology
type: unary
extraArgs:
- name: tolerance
type: float64
- name: Touches
comment: returns true if g touches other
type: binaryPredicate
- name: UnaryUnion
comment: returns the union of all components of a single geometry
type: unary
- name: UnaryUnionPrec
comment: returns the union of all components of a single geometry
type: unary
extraArgs:
- name: gridSize
type: float64
- name: Union
comment: returns the union of g and other
type: binary
- name: UnionPrec
comment: returns the union of g and other
type: binary
extraArgs:
- name: gridSize
type: float64
- name: Within
comment: returns true if g is within other
type: binaryPredicate
- name: X
comment: returns g's X coordinate
type: float64Property
geosFunction: GEOSGeomGetX_r
- name: Y
comment: returns g's Y coordinate
type: float64Property
geosFunction: GEOSGeomGetY_r