-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmapscript.shapeObj.html
More file actions
579 lines (474 loc) · 63.6 KB
/
mapscript.shapeObj.html
File metadata and controls
579 lines (474 loc) · 63.6 KB
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
<!DOCTYPE html>
<html lang="pl" data-content_root="../../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>mapscript.shapeObj — MapServer 8.6.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx.css?v=48f05237" />
<link rel="stylesheet" type="text/css" href="../../../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../../../_static/sphinx_collapse.css?v=226d88b4" />
<link rel="stylesheet" type="text/css" href="../../../_static/custom.css?v=dd298242" />
<link rel="stylesheet" type="text/css" href="../../../_static/ribbon.css?v=ea091bf4" />
<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=5bd745c1"></script>
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script>
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script>
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../../_static/copybutton.js?v=f281be69"></script>
<script src="../../../_static/translations.js?v=2827c288"></script>
<link rel="icon" href="../../../_static/mapserver.ico"/>
<link rel="author" title="O tych dokumentach" href="../../../about.html" />
<link rel="index" title="Indeks" href="../../../genindex.html" />
<link rel="search" title="Szukaj" href="../../../search.html" />
<link rel="copyright" title="Copyright" href="../../../copyright.html" />
<link rel="next" title="mapscript.shapefileObj" href="mapscript.shapefileObj.html" />
<link rel="prev" title="mapscript.scalebarObj" href="mapscript.scalebarObj.html" />
</head><body>
<!-- for main branch only, do not backport this -->
<table width="100%" style="width: 100%; background-color: white;">
<tr>
<td rowspan="2" style="padding: 10px 0px 10px 10px;">
<a href="../../../index.html" title="Home"><img src="../../../_static/banner.png" alt="MapServer banner" border="0" /></a>
</td>
<td style="padding: 10px 10px 0px 0px; text-align: right; vertical-align: top;">
<a href="../../../index.html" title="Home">Home</a> |
<a href="../../../products.html" title="Products (MapServer core, MapCache, TinyOWS">Products</a> |
<a href="https://github.com/mapserver/mapserver/issues/" title="Issue Tracker (MapServer core)">Issue Tracker</a> |
<a href="../../../community/service_providers.html" title="Professional Service Providers">Service Providers</a> |
<a href="../../../faq.html" title="Frequently Asked Questions">FAQ</a> |
<a href="https://fosstodon.org/@mapserver" title="Mastodon" target="_blank">Mastodon</a> |
<a href="../../../download.html" title="Download Source or Binaries">Download </a> |
<a class="badge" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KRJ2X44N3HA6U&source=url" target="_blank">
<img src="https://img.shields.io/badge/donate-%E2%9D%A4%C2%A0-ff69b4.svg?style=flat" alt="Donate to MapServer">
</a>
</td>
</tr>
<tr>
<td style="padding: 0px 10px 0px 0px; text-align: right; vertical-align: bottom;">
<a href="../../../../mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/en.png" alt="en" title="en" border="0" /></a>
<a href="../../../../ar/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/ar.png" alt="ar" title="ar" border="0" /></a>
<a href="../../../../de/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/de.png" alt="de" title="de" border="0" /></a>
<a href="../../../../el/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/el.png" alt="el" title="el" border="0" /></a>
<a href="../../../../es/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/es.png" alt="es" title="es" border="0" /></a>
<a href="../../../../fr/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/fr.png" alt="fr" title="fr" border="0" /></a>
<a href="../../../../id/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/id.png" alt="id" title="id" border="0" /></a>
<a href="../../../../it/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/it.png" alt="it" title="it" border="0" /></a>
<a href="../../../../ja/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/ja.png" alt="ja" title="ja" border="0" /></a>
<a href="../../../../nl_NL/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/nl_NL.png" alt="nl_NL" title="nl_NL" border="0" /></a>
<img src="../../../_static/flagicons/pl.png" alt="pl" title="pl" border="0" width="18px" height="13px"/>
<a href="../../../../ru/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/ru.png" alt="ru" title="ru" border="0" /></a>
<a href="../../../../sq/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/sq.png" alt="sq" title="sq" border="0" /></a>
<a href="../../../../tr/mapscript/mapscript-api/stub/mapscript.shapeObj.html"><img src="../../../_static/flagicons/tr.png" alt="tr" title="tr" border="0" /></a>
</td>
</tr>
</table>
<div class="related" role="navigation" aria-label="Related">
<h3>Nawigacja</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="Indeks ogólny"
accesskey="I">indeks</a></li>
<li class="right" >
<a href="mapscript.shapefileObj.html" title="mapscript.shapefileObj"
accesskey="N">dalej</a> |</li>
<li class="right" >
<a href="mapscript.scalebarObj.html" title="mapscript.scalebarObj"
accesskey="P">wstecz</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">Home</a> »</li>
<li class="nav-item nav-item-1"><a href="../../../documentation.html" >MapServer 8.6.2 Documentation</a> »</li>
<li class="nav-item nav-item-2"><a href="../../index.html" >MapScript</a> »</li>
<li class="nav-item nav-item-3"><a href="../index.html" accesskey="U">SWIG MapScript API Reference</a> »</li>
<li class="nav-item nav-item-this"><a href="">mapscript.shapeObj</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="mapscript-shapeobj">
<h1>mapscript.shapeObj<a class="headerlink" href="#mapscript-shapeobj" title="Link to this heading">¶</a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="mapscript.shapeObj">
<span class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></span><span class="sig-prename descclassname"><span class="pre">mapscript.</span></span><span class="sig-name descname"><span class="pre">shapeObj</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">type</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre"><MagicMock</span> <span class="pre">id='139692055711088'></span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#mapscript.shapeObj" title="Link to this definition">¶</a></dt>
<dd><p>Each feature of a layer’s data is a <a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><code class="xref py py-class docutils literal notranslate"><span class="pre">shapeObj</span></code></a>. Each part of the shape is
a closed <a class="reference internal" href="mapscript.lineObj.html#mapscript.lineObj" title="mapscript.lineObj"><code class="xref py py-class docutils literal notranslate"><span class="pre">lineObj</span></code></a>.</p>
<p class="rubric">Overview</p>
<p>The shapeObj has the following relationships:</p>
<img alt="../../../_images/shapeObj_lineObj.png" src="../../../_images/shapeObj_lineObj.png" />
<p class="rubric">Attributes</p>
<table class="autosummary longtable docutils align-default">
<tbody>
<tr class="row-odd"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">bounds</span></code></p></td>
<td><p><a class="reference internal" href="mapscript.rectObj.html#mapscript.rectObj" title="mapscript.rectObj"><code class="xref py py-class docutils literal notranslate"><span class="pre">rectObj</span></code></a> Bounding box of shape</p></td>
</tr>
<tr class="row-even"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">classindex</span></code></p></td>
<td><p><strong>int</strong> The class index for features of a classified layer</p></td>
</tr>
<tr class="row-odd"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">index</span></code></p></td>
<td><p><strong>long</strong> Feature index within the layer</p></td>
</tr>
<tr class="row-even"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">itemdefinitions</span></code></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">numlines</span></code></p></td>
<td><p><strong>int</strong> <em>immutable</em> Number of parts</p></td>
</tr>
<tr class="row-even"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">numvalues</span></code></p></td>
<td><p><strong>int</strong> <em>immutable</em> Number of shape attributes</p></td>
</tr>
<tr class="row-odd"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">resultindex</span></code></p></td>
<td><p><strong>int</strong> Index within a query result set</p></td>
</tr>
<tr class="row-even"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">scratch</span></code></p></td>
<td><p><strong>int</strong> <strong>TODO</strong> Add documentation</p></td>
</tr>
<tr class="row-odd"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">text</span></code></p></td>
<td><p><strong>char</strong> Shape annotation</p></td>
</tr>
<tr class="row-even"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">thisown</span></code></p></td>
<td><p>The membership flag</p></td>
</tr>
<tr class="row-odd"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">tileindex</span></code></p></td>
<td><p><strong>int</strong> Index of tiled file for tile-indexed layers</p></td>
</tr>
<tr class="row-even"><td><p><code class="xref py py-obj docutils literal notranslate"><span class="pre">type</span></code></p></td>
<td><p><strong>int</strong> MS_SHAPE_POINT, MS_SHAPE_LINE, MS_SHAPE_POLYGON, or MS_SHAPE_NULL</p></td>
</tr>
</tbody>
</table>
<p class="rubric">Methods</p>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.Union">
<span class="sig-name descname"><span class="pre">Union</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.Union"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.Union" title="Link to this definition">¶</a></dt>
<dd><p>Returns the union of the existing and supplied shape.
Shapes must be of the same type.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.__init__">
<span class="sig-name descname"><span class="pre">__init__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">type</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre"><MagicMock</span> <span class="pre">id='139692055711088'></span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.__init__"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.__init__" title="Link to this definition">¶</a></dt>
<dd><p>Return a new shapeObj of the specified type. See the type attribute.
No attribute values created by default.
initValues should be explicitly called to create the required number of values.
Each feature of a layer’s data is a shapeObj. Each part of the shape is a
closed <a class="reference internal" href="mapscript.lineObj.html#mapscript.lineObj" title="mapscript.lineObj"><code class="xref py py-class docutils literal notranslate"><span class="pre">lineObj</span></code></a></p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.add">
<span class="sig-name descname"><span class="pre">add</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">line</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="mapscript.lineObj.html#mapscript.lineObj" title="mapscript.lineObj"><span class="pre">lineObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.add"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.add" title="Link to this definition">¶</a></dt>
<dd><p>Add line (i.e. a part) to the shape.
Returns <a class="reference internal" href="../index.html#mapscript.MS_SUCCESS" title="mapscript.MS_SUCCESS"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_SUCCESS</span></code></a> or <a class="reference internal" href="../index.html#mapscript.MS_FAILURE" title="mapscript.MS_FAILURE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FAILURE</span></code></a></p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.boundary">
<span class="sig-name descname"><span class="pre">boundary</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.boundary"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.boundary" title="Link to this definition">¶</a></dt>
<dd><p>Returns the boundary of the existing shape.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.buffer">
<span class="sig-name descname"><span class="pre">buffer</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">width</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">double</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.buffer"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.buffer" title="Link to this definition">¶</a></dt>
<dd><p>Returns a new buffered shapeObj based on the supplied distance
(given in the coordinates of the existing shapeObj).
Requires GEOS support. Returns NULL/undefined on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.clone">
<span class="sig-name descname"><span class="pre">clone</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.clone"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.clone" title="Link to this definition">¶</a></dt>
<dd><p>Return an independent copy of the shape.</p>
<div class="admonition note">
<p class="admonition-title">Informacja</p>
<p>In the Java & PHP modules this method is named <code class="docutils literal notranslate"><span class="pre">cloneShape</span></code>.</p>
</div>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.contains">
<span class="sig-name descname"><span class="pre">contains</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.contains"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.contains" title="Link to this definition">¶</a></dt>
<dd><p><em>Overload 1:</em>
Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape2 is entirely inside the shape, returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
<div class="line-block">
<div class="line"><br /></div>
</div>
<p><em>Overload 2:</em>
Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if the point is inside the shape, <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.convexHull">
<span class="sig-name descname"><span class="pre">convexHull</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.convexHull"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.convexHull" title="Link to this definition">¶</a></dt>
<dd><p>Returns the convex hull of the existing shape.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.copy">
<span class="sig-name descname"><span class="pre">copy</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">dest</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.copy"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.copy" title="Link to this definition">¶</a></dt>
<dd><p>Copy the shape to shape_copy.
Returns <a class="reference internal" href="../index.html#mapscript.MS_SUCCESS" title="mapscript.MS_SUCCESS"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_SUCCESS</span></code></a> or <a class="reference internal" href="../index.html#mapscript.MS_FAILURE" title="mapscript.MS_FAILURE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FAILURE</span></code></a></p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.crosses">
<span class="sig-name descname"><span class="pre">crosses</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.crosses"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.crosses" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape2 crosses the shape, returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.difference">
<span class="sig-name descname"><span class="pre">difference</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.difference"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.difference" title="Link to this definition">¶</a></dt>
<dd><p>Returns the computed difference of the supplied and existing shape.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.disjoint">
<span class="sig-name descname"><span class="pre">disjoint</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.disjoint"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.disjoint" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape and shape2 are disjoint, returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.distanceToPoint">
<span class="sig-name descname"><span class="pre">distanceToPoint</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">point</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="mapscript.pointObj.html#mapscript.pointObj" title="mapscript.pointObj"><span class="pre">pointObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">double</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.distanceToPoint"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.distanceToPoint" title="Link to this definition">¶</a></dt>
<dd><p>Returns the distance to point.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.distanceToShape">
<span class="sig-name descname"><span class="pre">distanceToShape</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">double</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.distanceToShape"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.distanceToShape" title="Link to this definition">¶</a></dt>
<dd><p>Returns the minimum distance to shape.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.draw">
<span class="sig-name descname"><span class="pre">draw</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">map</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="mapscript.mapObj.html#mapscript.mapObj" title="mapscript.mapObj"><span class="pre">mapObj</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">layer</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="mapscript.layerObj.html#mapscript.layerObj" title="mapscript.layerObj"><span class="pre">layerObj</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">image</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="mapscript.imageObj.html#mapscript.imageObj" title="mapscript.imageObj"><span class="pre">imageObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.draw"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.draw" title="Link to this definition">¶</a></dt>
<dd><p>Draws the individual shape using layer.
Returns <a class="reference internal" href="../index.html#mapscript.MS_SUCCESS" title="mapscript.MS_SUCCESS"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_SUCCESS</span></code></a> or <a class="reference internal" href="../index.html#mapscript.MS_FAILURE" title="mapscript.MS_FAILURE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FAILURE</span></code></a></p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.equals">
<span class="sig-name descname"><span class="pre">equals</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.equals"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.equals" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape and shape2 are equal (geometry only), returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.fromWKT">
<span class="property"><span class="k"><span class="pre">static</span></span><span class="w"> </span></span><span class="sig-name descname"><span class="pre">fromWKT</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">wkt</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">char</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.fromWKT"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.fromWKT" title="Link to this definition">¶</a></dt>
<dd><p>Returns a new shapeObj based on a well-known text representation of a geometry.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.get">
<span class="sig-name descname"><span class="pre">get</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">i</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="mapscript.lineObj.html#mapscript.lineObj" title="mapscript.lineObj"><span class="pre">lineObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.get"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.get" title="Link to this definition">¶</a></dt>
<dd><p>Returns a reference to part at index. Reference is valid only during
the life of the shapeObj.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.getArea">
<span class="sig-name descname"><span class="pre">getArea</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">double</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.getArea"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.getArea" title="Link to this definition">¶</a></dt>
<dd><p>Returns the area of the shape (if applicable). Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.getCentroid">
<span class="sig-name descname"><span class="pre">getCentroid</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="mapscript.pointObj.html#mapscript.pointObj" title="mapscript.pointObj"><span class="pre">pointObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.getCentroid"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.getCentroid" title="Link to this definition">¶</a></dt>
<dd><p>Returns the centroid for the existing shape.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.getLabelPoint">
<span class="sig-name descname"><span class="pre">getLabelPoint</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="mapscript.pointObj.html#mapscript.pointObj" title="mapscript.pointObj"><span class="pre">pointObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.getLabelPoint"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.getLabelPoint" title="Link to this definition">¶</a></dt>
<dd><p>Given a shape, return a point object suitable for labeling it.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.getLength">
<span class="sig-name descname"><span class="pre">getLength</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">double</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.getLength"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.getLength" title="Link to this definition">¶</a></dt>
<dd><p>Returns the length (or perimeter) of the shape. Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.getValue">
<span class="sig-name descname"><span class="pre">getValue</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">i</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">char</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.getValue"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.getValue" title="Link to this definition">¶</a></dt>
<dd><p>Return the shape attribute at index i.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.initValues">
<span class="sig-name descname"><span class="pre">initValues</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">numvalues</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">void</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.initValues"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.initValues" title="Link to this definition">¶</a></dt>
<dd><p>Allocates memory for the requested number of values.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.intersection">
<span class="sig-name descname"><span class="pre">intersection</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.intersection"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.intersection" title="Link to this definition">¶</a></dt>
<dd><p>Returns the computed intersection of the supplied and existing shape.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.intersects">
<span class="sig-name descname"><span class="pre">intersects</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.intersects"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.intersects" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape and shape2 intersect, and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Does not require GEOS support but will use GEOS functions if available.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.overlaps">
<span class="sig-name descname"><span class="pre">overlaps</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.overlaps"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.overlaps" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape2 overlaps shape, returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.project">
<span class="sig-name descname"><span class="pre">project</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="o"><span class="pre">*</span></span><span class="n"><span class="pre">args</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.project"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.project" title="Link to this definition">¶</a></dt>
<dd><p><em>Overload 1:</em>
Reproject shape from proj_in to proj_out. Transformation is done in place.
Returns <a class="reference internal" href="../index.html#mapscript.MS_SUCCESS" title="mapscript.MS_SUCCESS"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_SUCCESS</span></code></a> or <a class="reference internal" href="../index.html#mapscript.MS_FAILURE" title="mapscript.MS_FAILURE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FAILURE</span></code></a></p>
<div class="line-block">
<div class="line"><br /></div>
</div>
<p><em>Overload 2:</em>
Reproject shape given a reprojection object. Transformation is done in place.
Returns <a class="reference internal" href="../index.html#mapscript.MS_SUCCESS" title="mapscript.MS_SUCCESS"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_SUCCESS</span></code></a> or <a class="reference internal" href="../index.html#mapscript.MS_FAILURE" title="mapscript.MS_FAILURE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FAILURE</span></code></a></p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.setBounds">
<span class="sig-name descname"><span class="pre">setBounds</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">void</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.setBounds"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.setBounds" title="Link to this definition">¶</a></dt>
<dd><p>Must be called to calculate new bounding box after new parts have been added.
TODO: should return int and set msSetError.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.setValue">
<span class="sig-name descname"><span class="pre">setValue</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">i</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">value</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">char</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.setValue"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.setValue" title="Link to this definition">¶</a></dt>
<dd><p>Set the shape value at index i to value.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.simplify">
<span class="sig-name descname"><span class="pre">simplify</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">tolerance</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">double</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.simplify"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.simplify" title="Link to this definition">¶</a></dt>
<dd><p>Given a tolerance, returns a simplified shape object or NULL on error.
Requires GEOS support (>=3.0).</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.symDifference">
<span class="sig-name descname"><span class="pre">symDifference</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.symDifference"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.symDifference" title="Link to this definition">¶</a></dt>
<dd><p>Returns the computed symmetric difference of the supplied and existing shape.
Requires GEOS support. Returns NULL/undef on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.toWKT">
<span class="sig-name descname"><span class="pre">toWKT</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">char</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.toWKT"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.toWKT" title="Link to this definition">¶</a></dt>
<dd><p>Returns the well - known text representation of a shapeObj.
Requires GEOS support.Returns NULL / undefined on failure.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.topologyPreservingSimplify">
<span class="sig-name descname"><span class="pre">topologyPreservingSimplify</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">tolerance</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">double</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.topologyPreservingSimplify"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.topologyPreservingSimplify" title="Link to this definition">¶</a></dt>
<dd><p>Given a tolerance, returns a simplified shape object or NULL on error.
Requires GEOS support (>=3.0).</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.touches">
<span class="sig-name descname"><span class="pre">touches</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.touches"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.touches" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape and shape2 touch, returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="mapscript.shapeObj.within">
<span class="sig-name descname"><span class="pre">within</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">shape</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="#mapscript.shapeObj" title="mapscript.shapeObj"><span class="pre">shapeObj</span></a></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">→</span> <span class="sig-return-typehint"><span class="pre">int</span></span></span><a class="reference internal" href="../../../_modules/mapscript/mapscript.html#shapeObj.within"><span class="viewcode-link"><span class="pre">[źródło]</span></span></a><a class="headerlink" href="#mapscript.shapeObj.within" title="Link to this definition">¶</a></dt>
<dd><p>Returns <a class="reference internal" href="../index.html#mapscript.MS_TRUE" title="mapscript.MS_TRUE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_TRUE</span></code></a> if shape is entirely within shape2, returns -1 on error and <a class="reference internal" href="../index.html#mapscript.MS_FALSE" title="mapscript.MS_FALSE"><code class="xref py py-data docutils literal notranslate"><span class="pre">MS_FALSE</span></code></a> otherwise.
Requires GEOS support.</p>
</dd></dl>
</dd></dl>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Szybkie wyszukiwanie</h3>
<div class="searchformwrapper">
<form class="search" action="../../../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Szukaj" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
<p>
<a href="../../../about.html" title="About">About</a><br>
<a href="../../../products.html" title="Products">Products</a><br>
<a href="../../../community/index.html" title="Community">Community</a><br>
<a href="../../../development/index.html" title="Development">Development</a><br>
<a href="../../../download.html" title="Downloads">Downloads</a><br>
<a href="../../../documentation.html" title="Documentation">Documentation</a><br>
<a href="../../../faq.html" title="FAQ">FAQ</a><br>
<a href="../../../psc.html" title="PSC">PSC</a><br>
<a href="https://fosstodon.org/@mapserver" title="Mastodon">Mastodon</a>
</p>
<h3>Current Table Of Contents</h3>
<ul>
<li><a class="reference internal" href="#">mapscript.shapeObj</a><ul>
<li><a class="reference internal" href="#mapscript.shapeObj"><code class="docutils literal notranslate"><span class="pre">shapeObj</span></code></a><ul>
<li><a class="reference internal" href="#mapscript.shapeObj.Union"><code class="docutils literal notranslate"><span class="pre">shapeObj.Union()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.__init__"><code class="docutils literal notranslate"><span class="pre">shapeObj.__init__()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.add"><code class="docutils literal notranslate"><span class="pre">shapeObj.add()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.boundary"><code class="docutils literal notranslate"><span class="pre">shapeObj.boundary()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.buffer"><code class="docutils literal notranslate"><span class="pre">shapeObj.buffer()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.clone"><code class="docutils literal notranslate"><span class="pre">shapeObj.clone()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.contains"><code class="docutils literal notranslate"><span class="pre">shapeObj.contains()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.convexHull"><code class="docutils literal notranslate"><span class="pre">shapeObj.convexHull()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.copy"><code class="docutils literal notranslate"><span class="pre">shapeObj.copy()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.crosses"><code class="docutils literal notranslate"><span class="pre">shapeObj.crosses()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.difference"><code class="docutils literal notranslate"><span class="pre">shapeObj.difference()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.disjoint"><code class="docutils literal notranslate"><span class="pre">shapeObj.disjoint()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.distanceToPoint"><code class="docutils literal notranslate"><span class="pre">shapeObj.distanceToPoint()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.distanceToShape"><code class="docutils literal notranslate"><span class="pre">shapeObj.distanceToShape()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.draw"><code class="docutils literal notranslate"><span class="pre">shapeObj.draw()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.equals"><code class="docutils literal notranslate"><span class="pre">shapeObj.equals()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.fromWKT"><code class="docutils literal notranslate"><span class="pre">shapeObj.fromWKT()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.get"><code class="docutils literal notranslate"><span class="pre">shapeObj.get()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.getArea"><code class="docutils literal notranslate"><span class="pre">shapeObj.getArea()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.getCentroid"><code class="docutils literal notranslate"><span class="pre">shapeObj.getCentroid()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.getLabelPoint"><code class="docutils literal notranslate"><span class="pre">shapeObj.getLabelPoint()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.getLength"><code class="docutils literal notranslate"><span class="pre">shapeObj.getLength()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.getValue"><code class="docutils literal notranslate"><span class="pre">shapeObj.getValue()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.initValues"><code class="docutils literal notranslate"><span class="pre">shapeObj.initValues()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.intersection"><code class="docutils literal notranslate"><span class="pre">shapeObj.intersection()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.intersects"><code class="docutils literal notranslate"><span class="pre">shapeObj.intersects()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.overlaps"><code class="docutils literal notranslate"><span class="pre">shapeObj.overlaps()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.project"><code class="docutils literal notranslate"><span class="pre">shapeObj.project()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.setBounds"><code class="docutils literal notranslate"><span class="pre">shapeObj.setBounds()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.setValue"><code class="docutils literal notranslate"><span class="pre">shapeObj.setValue()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.simplify"><code class="docutils literal notranslate"><span class="pre">shapeObj.simplify()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.symDifference"><code class="docutils literal notranslate"><span class="pre">shapeObj.symDifference()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.toWKT"><code class="docutils literal notranslate"><span class="pre">shapeObj.toWKT()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.topologyPreservingSimplify"><code class="docutils literal notranslate"><span class="pre">shapeObj.topologyPreservingSimplify()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.touches"><code class="docutils literal notranslate"><span class="pre">shapeObj.touches()</span></code></a></li>
<li><a class="reference internal" href="#mapscript.shapeObj.within"><code class="docutils literal notranslate"><span class="pre">shapeObj.within()</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="Related">
<h3>Nawigacja</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../../genindex.html" title="Indeks ogólny"
>indeks</a></li>
<li class="right" >
<a href="mapscript.shapefileObj.html" title="mapscript.shapefileObj"
>dalej</a> |</li>
<li class="right" >
<a href="mapscript.scalebarObj.html" title="mapscript.scalebarObj"
>wstecz</a> |</li>
<li class="nav-item nav-item-0"><a href="../../../index.html">Home</a> »</li>
<li class="nav-item nav-item-1"><a href="../../../documentation.html" >MapServer 8.6.2 Documentation</a> »</li>
<li class="nav-item nav-item-2"><a href="../../index.html" >MapScript</a> »</li>
<li class="nav-item nav-item-3"><a href="../index.html" >SWIG MapScript API Reference</a> »</li>
<li class="nav-item nav-item-this"><a href="">mapscript.shapeObj</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
© <a href="../../../copyright.html">Copyright</a> 2026, Open Source Geospatial Foundation.
Ostatnia modyfikacja 2026-04-20.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 9.1.0.
</div>
</body>
</html>