Wiki page
[circles-ellipses] by
sandro
2015-07-01 08:24:04.
0000: 44 20 32 30 31 35 2d 30 37 2d 30 31 54 30 38 3a D 2015-07-01T08:
0010: 32 34 3a 30 34 2e 33 37 36 0a 4c 20 63 69 72 63 24:04.376.L circ
0020: 6c 65 73 2d 65 6c 6c 69 70 73 65 73 0a 50 20 62 les-ellipses.P b
0030: 61 30 37 65 33 30 65 35 64 30 30 34 39 38 64 30 a07e30e5d00498d0
0040: 38 65 66 32 37 37 34 37 39 31 66 33 38 66 62 30 8ef2774791f38fb0
0050: 39 36 37 33 38 35 31 0a 55 20 73 61 6e 64 72 6f 9673851.U sandro
0060: 0a 57 20 37 33 32 30 0a 3c 61 20 68 72 65 66 3d .W 7320.<a href=
0070: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
0080: 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c 2f a-gis.it/fossil/
0090: 6c 69 62 73 70 61 74 69 61 6c 69 74 65 2f 77 69 libspatialite/wi
00a0: 6b 69 3f 6e 61 6d 65 3d 34 2e 33 2e 30 2b 64 6f ki?name=4.3.0+do
00b0: 63 22 3e 62 61 63 6b 3c 2f 61 3e 0d 0a 3c 68 32 c">back</a>..<h2
00c0: 3e 4e 65 77 20 53 51 4c 20 66 75 6e 63 74 69 6f >New SQL functio
00d0: 6e 73 20 73 75 70 70 6f 72 74 69 6e 67 20 43 69 ns supporting Ci
00e0: 72 63 6c 65 73 20 61 6e 64 20 45 6c 6c 69 70 73 rcles and Ellips
00f0: 65 73 20 69 6e 74 72 6f 64 75 63 65 64 20 69 6e es introduced in
0100: 20 34 2e 31 2e 30 3c 2f 68 32 3e 0d 0a 3c 74 61 4.1.0</h2>..<ta
0110: 62 6c 65 20 77 69 64 74 68 3d 22 25 31 30 30 22 ble width="%100"
0120: 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 38 22 cellpadding="8"
0130: 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 38 22 cellspacing="8"
0140: 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e >..<tr><td>..<b>
0150: 4d 61 6b 65 43 69 72 63 6c 65 3c 2f 62 3e 20 28 MakeCircle</b> (
0160: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
0170: 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 y</i>, <i>radius
0180: 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d </i> )<br>..<b>M
0190: 61 6b 65 43 69 72 63 6c 65 3c 2f 62 3e 20 28 20 akeCircle</b> (
01a0: 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 <i>cx</i>, <i>cy
01b0: 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 3c </i>, <i>radius<
01c0: 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e /i>, <i>srid</i>
01d0: 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 )<br>..<b>MakeC
01e0: 69 72 63 6c 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 ircle</b> ( <i>c
01f0: 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e x</i>, <i>cy</i>
0200: 2c 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e 2c , <i>radius</i>,
0210: 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 <i>srid</i>, <i
0220: 3e 73 74 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d >step</i> )<hr>.
0230: 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 63 .Will return a c
0240: 6c 6f 73 65 64 20 3c 62 3e 4c 69 6e 65 73 74 72 losed <b>Linestr
0250: 69 6e 67 3c 2f 62 3e 20 61 70 70 72 6f 78 69 6d ing</b> approxim
0260: 61 74 69 6e 67 20 61 20 63 69 72 63 6c 65 2e 3c ating a circle.<
0270: 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 63 78 3c 2f ul>..<li><b>cx</
0280: 62 3e 20 61 6e 64 20 3c 62 3e 63 79 3c 2f 62 3e b> and <b>cy</b>
0290: 20 61 72 65 20 74 68 65 20 63 6f 6f 72 64 69 6e are the coordin
02a0: 61 74 65 73 20 69 64 65 6e 74 69 66 79 69 6e 67 ates identifying
02b0: 20 74 68 65 20 63 65 6e 74 72 65 2e 3c 2f 6c 69 the centre.</li
02c0: 3e 0d 0a 3c 6c 69 3e 62 6f 74 68 20 3c 62 3e 72 >..<li>both <b>r
02d0: 61 64 69 75 73 3c 2f 62 3e 20 61 6e 64 20 3c 62 adius</b> and <b
02e0: 3e 73 72 69 64 3c 2f 62 3e 20 61 72 65 20 73 65 >srid</b> are se
02f0: 6c 66 2d 65 78 70 6c 61 6e 61 74 6f 72 79 2e 3c lf-explanatory.<
0300: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 68 65 20 6f 70 /li>..<li>the op
0310: 74 69 6f 6e 61 6c 20 61 72 67 75 6d 65 6e 74 20 tional argument
0320: 3c 62 3e 73 74 65 70 3c 2f 62 3e 20 64 65 66 69 <b>step</b> defi
0330: 6e 65 73 20 68 6f 77 20 6d 61 6e 79 20 70 6f 69 nes how many poi
0340: 6e 74 73 20 77 69 6c 6c 20 62 65 20 69 6e 74 65 nts will be inte
0350: 72 70 6f 6c 61 74 65 64 20 6f 6e 20 74 68 65 20 rpolated on the
0360: 63 75 72 76 65 2e 20 3c 62 3e 73 74 65 70 3c 2f curve. <b>step</
0370: 62 3e 20 63 6f 72 72 65 73 70 6f 6e 64 73 20 74 b> corresponds t
0380: 6f 20 61 6e 20 3c 75 3e 3c 69 3e 61 6e 67 75 6c o an <u><i>angul
0390: 61 72 20 64 69 73 74 61 6e 63 65 3c 2f 69 3e 3c ar distance</i><
03a0: 2f 75 3e 20 6d 65 61 73 75 72 65 64 20 69 6e 20 /u> measured in
03b0: 3c 75 3e 3c 69 3e 64 65 67 72 65 65 73 3c 2f 69 <u><i>degrees</i
03c0: 3e 3c 2f 75 3e 3b 20 74 77 6f 20 63 6f 6e 73 65 ></u>; two conse
03d0: 63 75 74 69 76 65 20 70 6f 69 6e 74 73 20 77 69 cutive points wi
03e0: 6c 6c 20 62 65 20 73 65 70 61 72 61 74 65 64 20 ll be separated
03f0: 62 79 20 74 68 69 73 20 64 69 73 74 61 6e 63 65 by this distance
0400: 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c .</li>..</ul>..<
0410: 2f 74 64 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d /td><td colspan=
0420: 22 32 22 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 "2" align="cente
0430: 72 22 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 r"><img src="htt
0440: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
0450: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 s.it/gaia-sins/c
0460: 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f ircles-ellipses/
0470: 63 69 72 63 6c 65 2e 70 6e 67 22 20 61 6c 74 3d circle.png" alt=
0480: 22 63 69 72 63 6c 65 22 3e 3c 62 72 3e 0d 0a 3c "circle"><br>..<
0490: 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 verbatim>..SELEC
04a0: 54 20 4d 61 6b 65 43 69 72 63 6c 65 28 30 2c 20 T MakeCircle(0,
04b0: 30 2c 20 31 30 30 2c 20 2d 31 2c 20 31 29 3b 0d 0, 100, -1, 1);.
04c0: 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 .</verbatim></td
04d0: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
04e0: 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 73 65 ..<b>MakeEllipse
04f0: 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e </b> ( <i>cx</i>
0500: 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e , <i>cy</i>, <i>
0510: 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 x_axis</i>, <i>y
0520: 5f 61 78 69 73 3c 2f 69 3e 20 29 3c 62 72 3e 0d _axis</i> )<br>.
0530: 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 73 65 3c .<b>MakeEllipse<
0540: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
0550: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 <i>cy</i>, <i>x
0560: 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f _axis</i>, <i>y_
0570: 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 axis</i>, <i>sri
0580: 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e d</i> )<br>..<b>
0590: 4d 61 6b 65 45 6c 6c 69 70 73 65 3c 2f 62 3e 20 MakeEllipse</b>
05a0: 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e ( <i>cx</i>, <i>
05b0: 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 cy</i>, <i>x_axi
05c0: 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 s</i>, <i>y_axis
05d0: 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 </i>, <i>srid</i
05e0: 3e 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 >, <i>step</i> )
05f0: 3c 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 <hr>..Will retur
0600: 6e 20 61 20 63 6c 6f 73 65 64 20 3c 62 3e 4c 69 n a closed <b>Li
0610: 6e 65 73 74 72 69 6e 67 3c 2f 62 3e 20 61 70 70 nestring</b> app
0620: 72 6f 78 69 6d 61 74 69 6e 67 20 61 6e 20 65 6c roximating an el
0630: 6c 69 70 73 65 2e 3c 75 6c 3e 0d 0a 3c 6c 69 3e lipse.<ul>..<li>
0640: 3c 62 3e 63 78 3c 2f 62 3e 2c 20 3c 62 3e 63 79 <b>cx</b>, <b>cy
0650: 3c 2f 62 3e 2c 20 3c 62 3e 73 72 69 64 3c 2f 62 </b>, <b>srid</b
0660: 3e 20 61 6e 64 20 3c 62 3e 73 74 65 70 3c 2f 62 > and <b>step</b
0670: 3e 20 68 61 76 65 20 65 78 61 63 74 6c 79 20 74 > have exactly t
0680: 68 65 20 73 61 6d 65 20 69 64 65 6e 74 69 63 61 he same identica
0690: 6c 20 6d 65 61 6e 69 6e 67 20 61 73 20 62 65 66 l meaning as bef
06a0: 6f 72 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c ore.</li>..<li><
06b0: 62 3e 78 5f 61 78 69 73 3c 2f 62 3e 20 61 6e 64 b>x_axis</b> and
06c0: 20 3c 62 3e 79 5f 61 78 69 73 3c 2f 62 3e 20 64 <b>y_axis</b> d
06d0: 65 66 69 6e 65 20 72 65 73 70 65 63 74 69 76 65 efine respective
06e0: 6c 79 20 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 ly the horizonta
06f0: 6c 20 61 6e 64 20 76 65 72 74 69 63 61 6c 20 61 l and vertical a
0700: 78 65 73 20 6f 66 20 74 68 65 20 65 6c 6c 69 70 xes of the ellip
0710: 73 65 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d se.</li>..</ul>.
0720: 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 .</td><td><img s
0730: 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e rc="https://www.
0740: 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 gaia-gis.it/gaia
0750: 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c -sins/circles-el
0760: 6c 69 70 73 65 73 2f 65 6c 6c 69 70 73 65 2d 31 lipses/ellipse-1
0770: 2e 70 6e 67 22 20 61 6c 74 3d 22 65 6c 6c 69 70 .png" alt="ellip
0780: 73 65 2d 31 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 se-1"><br>..<ver
0790: 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d batim>..SELECT M
07a0: 61 6b 65 45 6c 6c 69 70 73 65 28 30 2c 20 30 2c akeEllipse(0, 0,
07b0: 20 31 30 30 2c 20 35 30 2c 0d 0a 20 20 20 20 2d 100, 50,.. -
07c0: 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 1, 1);..</verbat
07d0: 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c im></td>..</td><
07e0: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 td><img src="htt
07f0: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
0800: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 s.it/gaia-sins/c
0810: 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f ircles-ellipses/
0820: 65 6c 6c 69 70 73 65 2d 32 2e 70 6e 67 22 20 61 ellipse-2.png" a
0830: 6c 74 3d 22 65 6c 6c 69 70 73 65 2d 32 22 3e 3c lt="ellipse-2"><
0840: 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d br>..<verbatim>.
0850: 0a 53 45 4c 45 43 54 20 4d 61 6b 65 45 6c 6c 69 .SELECT MakeElli
0860: 70 73 65 28 30 2c 20 30 2c 20 35 30 2c 20 31 30 pse(0, 0, 50, 10
0870: 30 2c 0d 0a 20 20 20 20 2d 31 2c 20 31 29 3b 0d 0,.. -1, 1);.
0880: 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 .</verbatim></td
0890: 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e ></tr>..<tr><td>
08a0: 0d 0a 3c 62 3e 4d 61 6b 65 41 72 63 3c 2f 62 3e ..<b>MakeArc</b>
08b0: 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 ( <i>cx</i>, <i
08c0: 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 >cy</i>, <i>radi
08d0: 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 us</i>, <i>start
08e0: 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 </i>, <i>stop</i
08f0: 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 > )<br>..<b>Make
0900: 41 72 63 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c Arc</b> ( <i>cx<
0910: 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 /i>, <i>cy</i>,
0920: 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e 2c 20 3c <i>radius</i>, <
0930: 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e i>start</i>, <i>
0940: 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 stop</i>, <i>sri
0950: 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e d</i> )<br>..<b>
0960: 4d 61 6b 65 41 72 63 3c 2f 62 3e 20 28 20 3c 69 MakeArc</b> ( <i
0970: 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f >cx</i>, <i>cy</
0980: 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 i>, <i>radius</i
0990: 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c >, <i>start</i>,
09a0: 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 <i>stop</i>, <i
09b0: 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 >srid</i>, <i>st
09c0: 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 ep</i> )<hr>..Wi
09d0: 6c 6c 20 72 65 74 75 72 6e 20 61 20 3c 62 3e 4c ll return a <b>L
09e0: 69 6e 65 73 74 72 69 6e 67 3c 2f 62 3e 20 61 70 inestring</b> ap
09f0: 70 72 6f 78 69 6d 61 74 69 6e 67 20 61 20 63 69 proximating a ci
0a00: 72 63 75 6c 61 72 20 61 72 63 2e 3c 75 6c 3e 0d rcular arc.<ul>.
0a10: 0a 3c 6c 69 3e 3c 62 3e 63 78 3c 2f 62 3e 2c 20 .<li><b>cx</b>,
0a20: 3c 62 3e 63 79 3c 2f 62 3e 2c 20 3c 62 3e 72 61 <b>cy</b>, <b>ra
0a30: 64 69 75 73 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e dius</b> and <b>
0a40: 73 74 65 70 3c 2f 62 3e 20 61 72 65 20 65 78 61 step</b> are exa
0a50: 63 74 6c 79 20 61 73 20 61 62 6f 76 65 2e 3c 2f ctly as above.</
0a60: 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 73 74 61 72 li>..<li><b>star
0a70: 74 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 73 74 6f t</b> and <b>sto
0a80: 70 3c 2f 62 3e 20 64 65 66 69 6e 65 20 74 68 65 p</b> define the
0a90: 20 65 78 74 72 65 6d 65 20 70 6f 69 6e 74 73 20 extreme points
0aa0: 6f 66 20 74 68 65 20 61 72 63 3b 20 62 6f 74 68 of the arc; both
0ab0: 20 61 72 65 20 3c 75 3e 3c 69 3e 61 6e 67 6c 65 are <u><i>angle
0ac0: 73 3c 2f 69 3e 3c 2f 75 3e 20 65 78 70 72 65 73 s</i></u> expres
0ad0: 73 65 64 20 69 6e 20 3c 75 3e 3c 69 3e 64 65 67 sed in <u><i>deg
0ae0: 72 65 65 73 3c 2f 69 3e 3c 2f 75 3e 2e 20 54 68 rees</i></u>. Th
0af0: 65 20 61 72 63 20 77 69 6c 6c 20 62 65 20 61 6c e arc will be al
0b00: 77 61 79 73 20 64 72 61 77 6e 20 69 6e 20 3c 75 ways drawn in <u
0b10: 3e 3c 69 3e 63 6f 75 6e 74 65 72 63 6c 6f 63 6b ><i>counterclock
0b20: 77 69 73 65 3c 2f 69 3e 3c 2f 75 3e 20 64 69 72 wise</i></u> dir
0b30: 65 63 74 69 6f 6e 2e 3c 2f 6c 69 3e 0d 0a 3c 2f ection.</li>..</
0b40: 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 ul>..</td><td><i
0b50: 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f mg src="https://
0b60: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f www.gaia-gis.it/
0b70: 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 gaia-sins/circle
0b80: 73 2d 65 6c 6c 69 70 73 65 73 2f 61 72 63 2d 31 s-ellipses/arc-1
0b90: 2e 70 6e 67 22 20 61 6c 74 3d 22 61 72 63 2d 31 .png" alt="arc-1
0ba0: 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 "><br>..<verbati
0bb0: 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 41 m>..SELECT MakeA
0bc0: 72 63 28 30 2c 20 30 2c 20 31 30 30 2c 20 0d 0a rc(0, 0, 100, ..
0bd0: 20 20 20 20 33 30 2c 20 31 35 30 2c 20 2d 31 2c 30, 150, -1,
0be0: 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 1);..</verbatim
0bf0: 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 ></td>..</td><td
0c00: 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 ><img src="https
0c10: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e ://www.gaia-gis.
0c20: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 it/gaia-sins/cir
0c30: 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f 61 72 cles-ellipses/ar
0c40: 63 2d 32 2e 70 6e 67 22 20 61 6c 74 3d 22 61 72 c-2.png" alt="ar
0c50: 63 2d 32 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 c-2"><br>..<verb
0c60: 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 atim>..SELECT Ma
0c70: 6b 65 41 72 63 28 30 2c 20 30 2c 20 31 30 30 2c keArc(0, 0, 100,
0c80: 20 0d 0a 20 20 20 20 33 30 2c 20 31 35 30 2c 20 .. 30, 150,
0c90: 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 -1, 1);..</verba
0ca0: 74 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a tim></td></tr>..
0cb0: 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b <tr><td>..<b>Mak
0cc0: 65 45 6c 6c 69 70 74 69 63 41 72 63 3c 2f 62 3e eEllipticArc</b>
0cd0: 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 ( <i>cx</i>, <i
0ce0: 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 >cy</i>, <i>x_ax
0cf0: 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 is</i>, <i>y_axi
0d00: 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c s</i>, <i>start<
0d10: 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e /i>, <i>stop</i>
0d20: 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 )<br>..<b>MakeE
0d30: 6c 6c 69 70 74 69 63 41 72 63 3c 2f 62 3e 20 28 llipticArc</b> (
0d40: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
0d50: 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 y</i>, <i>x_axis
0d60: 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c </i>, <i>y_axis<
0d70: 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 /i>, <i>start</i
0d80: 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 >, <i>stop</i>,
0d90: 3c 69 3e 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 <i>srid</i> )<br
0da0: 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 74 >..<b>MakeEllipt
0db0: 69 63 41 72 63 3c 2f 62 3e 20 28 20 3c 69 3e 63 icArc</b> ( <i>c
0dc0: 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e x</i>, <i>cy</i>
0dd0: 2c 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c , <i>x_axis</i>,
0de0: 20 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 <i>y_axis</i>,
0df0: 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 <i>start</i>, <i
0e00: 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 >stop</i>, <i>sr
0e10: 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 3c id</i>, <i>step<
0e20: 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c 20 /i> )<hr>..Will
0e30: 72 65 74 75 72 6e 20 61 20 3c 62 3e 4c 69 6e 65 return a <b>Line
0e40: 73 74 72 69 6e 67 3c 2f 62 3e 20 61 70 70 72 6f string</b> appro
0e50: 78 69 6d 61 74 69 6e 67 20 61 6e 20 65 6c 6c 69 ximating an elli
0e60: 70 74 69 63 20 61 72 63 2e 3c 62 72 3e 0d 0a 3c ptic arc.<br>..<
0e70: 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 /td><td><img src
0e80: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
0e90: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
0ea0: 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 ins/circles-elli
0eb0: 70 73 65 73 2f 65 6c 6c 69 70 74 69 63 2d 61 72 pses/elliptic-ar
0ec0: 63 2d 31 2e 70 6e 67 22 20 61 6c 74 3d 22 65 6c c-1.png" alt="el
0ed0: 6c 69 70 74 69 63 2d 61 72 63 2d 31 22 3e 3c 62 liptic-arc-1"><b
0ee0: 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a r>..<verbatim>..
0ef0: 53 45 4c 45 43 54 20 4d 61 6b 65 45 6c 6c 69 70 SELECT MakeEllip
0f00: 74 69 63 41 72 63 28 30 2c 20 30 2c 20 35 30 2c ticArc(0, 0, 50,
0f10: 20 31 30 30 2c 20 0d 0a 20 20 20 20 33 30 2c 20 100, .. 30,
0f20: 31 35 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 150, -1, 1);..</
0f30: 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a verbatim></td>..
0f40: 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 </td><td><img sr
0f50: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
0f60: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
0f70: 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c sins/circles-ell
0f80: 69 70 73 65 73 2f 65 6c 6c 69 70 74 69 63 2d 61 ipses/elliptic-a
0f90: 72 63 2d 32 2e 70 6e 67 22 20 61 6c 74 3d 22 65 rc-2.png" alt="e
0fa0: 6c 6c 69 70 74 69 63 2d 61 72 63 2d 32 22 3e 3c lliptic-arc-2"><
0fb0: 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d br>..<verbatim>.
0fc0: 0a 53 45 4c 45 43 54 20 4d 61 6b 65 45 6c 6c 69 .SELECT MakeElli
0fd0: 70 74 69 63 41 72 63 28 30 2c 20 30 2c 20 35 30 pticArc(0, 0, 50
0fe0: 2c 20 31 30 30 2c 0d 0a 20 20 20 20 31 35 30 2c , 100,.. 150,
0ff0: 20 33 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 30, -1, 1);..</
1000: 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f verbatim></td></
1010: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c tr>..<tr><td>..<
1020: 62 3e 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 65 b>MakeCircularSe
1030: 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 ctor</b> ( <i>cx
1040: 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c </i>, <i>cy</i>,
1050: 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e 2c 20 <i>radius</i>,
1060: 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 <i>start</i>, <i
1070: 3e 73 74 6f 70 3c 2f 69 3e 20 29 3c 62 72 3e 0d >stop</i> )<br>.
1080: 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 75 6c 61 72 .<b>MakeCircular
1090: 53 65 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 69 3e Sector</b> ( <i>
10a0: 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 cx</i>, <i>cy</i
10b0: 3e 2c 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e >, <i>radius</i>
10c0: 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 , <i>start</i>,
10d0: 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e <i>stop</i>, <i>
10e0: 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a srid</i> )<br>..
10f0: 3c 62 3e 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 <b>MakeCircularS
1100: 65 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 69 3e 63 ector</b> ( <i>c
1110: 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e x</i>, <i>cy</i>
1120: 2c 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e 2c , <i>radius</i>,
1130: 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c <i>start</i>, <
1140: 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 i>stop</i>, <i>s
1150: 72 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 rid</i>, <i>step
1160: 3c 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c </i> )<hr>..Will
1170: 20 72 65 74 75 72 6e 20 61 20 3c 62 3e 50 6f 6c return a <b>Pol
1180: 79 67 6f 6e 3c 2f 62 3e 20 61 70 70 72 6f 78 69 ygon</b> approxi
1190: 6d 61 74 69 6e 67 20 61 20 63 69 72 63 75 6c 61 mating a circula
11a0: 72 20 73 65 63 74 6f 72 2e 0d 0a 3c 2f 74 64 3e r sector...</td>
11b0: 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 <td><img src="ht
11c0: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
11d0: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
11e0: 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 circles-ellipses
11f0: 2f 63 69 72 63 75 6c 61 72 2d 73 65 63 74 6f 72 /circular-sector
1200: 2d 31 2e 70 6e 67 22 20 61 6c 74 3d 22 63 69 72 -1.png" alt="cir
1210: 63 75 6c 61 72 2d 73 65 63 74 6f 72 2d 31 22 3e cular-sector-1">
1220: 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e <br>..<verbatim>
1230: 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 43 69 72 ..SELECT MakeCir
1240: 63 75 6c 61 72 53 65 63 74 6f 72 28 30 2c 20 30 cularSector(0, 0
1250: 2c 20 31 30 30 2c 0d 0a 20 20 20 20 33 33 30 2c , 100,.. 330,
1260: 20 33 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 30, -1, 1);..</
1270: 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a verbatim></td>..
1280: 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 </td><td><img sr
1290: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
12a0: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
12b0: 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c sins/circles-ell
12c0: 69 70 73 65 73 2f 63 69 72 63 75 6c 61 72 2d 73 ipses/circular-s
12d0: 65 63 74 6f 72 2d 32 2e 70 6e 67 22 20 61 6c 74 ector-2.png" alt
12e0: 3d 22 63 69 72 63 75 6c 61 72 2d 73 65 63 74 6f ="circular-secto
12f0: 72 2d 32 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 r-2"><br>..<verb
1300: 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 atim>..SELECT Ma
1310: 6b 65 43 69 72 63 75 6c 61 72 53 65 63 74 6f 72 keCircularSector
1320: 28 30 2c 20 30 2c 20 31 30 30 2c 0d 0a 20 20 20 (0, 0, 100,..
1330: 20 33 30 2c 20 33 33 30 2c 20 2d 31 2c 20 31 29 30, 330, -1, 1)
1340: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f ;..</verbatim></
1350: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
1360: 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 d>..<b>MakeEllip
1370: 74 69 63 53 65 63 74 6f 72 3c 2f 62 3e 20 28 20 ticSector</b> (
1380: 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 <i>cx</i>, <i>cy
1390: 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 3c </i>, <i>x_axis<
13a0: 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c 2f /i>, <i>y_axis</
13b0: 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e i>, <i>start</i>
13c0: 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 20 29 3c , <i>stop</i> )<
13d0: 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 br>..<b>MakeElli
13e0: 70 74 69 63 53 65 63 74 6f 72 3c 2f 62 3e 20 28 pticSector</b> (
13f0: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
1400: 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 y</i>, <i>x_axis
1410: 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c </i>, <i>y_axis<
1420: 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 /i>, <i>start</i
1430: 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 >, <i>stop</i>,
1440: 3c 69 3e 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 <i>srid</i> )<br
1450: 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 74 >..<b>MakeEllipt
1460: 69 63 53 65 63 74 6f 72 3c 2f 62 3e 20 28 20 3c icSector</b> ( <
1470: 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c i>cx</i>, <i>cy<
1480: 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 3c 2f /i>, <i>x_axis</
1490: 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 i>, <i>y_axis</i
14a0: 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c >, <i>start</i>,
14b0: 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 <i>stop</i>, <i
14c0: 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 >srid</i>, <i>st
14d0: 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 ep</i> )<hr>..Wi
14e0: 6c 6c 20 72 65 74 75 72 6e 20 61 20 3c 62 3e 50 ll return a <b>P
14f0: 6f 6c 79 67 6f 6e 3c 2f 62 3e 20 61 70 70 72 6f olygon</b> appro
1500: 78 69 6d 61 74 69 6e 67 20 61 6e 20 65 6c 6c 69 ximating an elli
1510: 70 74 69 63 20 73 65 63 74 6f 72 2e 0d 0a 3c 2f ptic sector...</
1520: 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d td><td><img src=
1530: 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 "https://www.gai
1540: 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 a-gis.it/gaia-si
1550: 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 ns/circles-ellip
1560: 73 65 73 2f 65 6c 6c 69 70 74 69 63 2d 73 65 63 ses/elliptic-sec
1570: 74 6f 72 2d 31 2e 70 6e 67 22 20 61 6c 74 3d 22 tor-1.png" alt="
1580: 65 6c 6c 69 70 74 69 63 2d 73 65 63 74 6f 72 2d elliptic-sector-
1590: 31 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 1"><br>..<verbat
15a0: 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 im>..SELECT Make
15b0: 45 6c 6c 69 70 74 69 63 53 65 63 74 6f 72 28 30 EllipticSector(0
15c0: 2c 20 30 2c 20 31 30 30 2c 20 35 30 2c 0d 0a 20 , 0, 100, 50,..
15d0: 20 20 20 33 33 30 2c 20 33 30 2c 20 2d 31 2c 20 330, 30, -1,
15e0: 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 1);..</verbatim>
15f0: 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e </td>..</td><td>
1600: 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a <img src="https:
1610: 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 //www.gaia-gis.i
1620: 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 t/gaia-sins/circ
1630: 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f 65 6c 6c les-ellipses/ell
1640: 69 70 74 69 63 2d 73 65 63 74 6f 72 2d 32 2e 70 iptic-sector-2.p
1650: 6e 67 22 20 61 6c 74 3d 22 65 6c 6c 69 70 74 69 ng" alt="ellipti
1660: 63 2d 73 65 63 74 6f 72 2d 32 22 3e 3c 62 72 3e c-sector-2"><br>
1670: 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 ..<verbatim>..SE
1680: 4c 45 43 54 20 4d 61 6b 65 45 6c 6c 69 70 74 69 LECT MakeEllipti
1690: 63 53 65 63 74 6f 72 28 30 2c 20 30 2c 20 31 30 cSector(0, 0, 10
16a0: 30 2c 20 35 30 2c 0d 0a 20 20 20 20 33 30 2c 20 0, 50,.. 30,
16b0: 33 33 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 330, -1, 1);..</
16c0: 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f verbatim></td></
16d0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c tr>..<tr><td>..<
16e0: 62 3e 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 74 b>MakeCircularSt
16f0: 72 69 70 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 ripe</b> ( <i>cx
1700: 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c </i>, <i>cy</i>,
1710: 20 3c 69 3e 72 61 64 69 75 73 5f 31 3c 2f 69 3e <i>radius_1</i>
1720: 2c 20 3c 69 3e 72 61 64 69 75 73 5f 32 3c 2f 69 , <i>radius_2</i
1730: 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c >, <i>start</i>,
1740: 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 20 29 3c 62 <i>stop</i> )<b
1750: 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 75 r>..<b>MakeCircu
1760: 6c 61 72 53 74 72 69 70 65 3c 2f 62 3e 20 28 20 larStripe</b> (
1770: 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 <i>cx</i>, <i>cy
1780: 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 5f </i>, <i>radius_
1790: 31 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 1</i>, <i>radius
17a0: 5f 32 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 _2</i>, <i>start
17b0: 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 </i>, <i>stop</i
17c0: 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 20 29 >, <i>srid</i> )
17d0: 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 <br>..<b>MakeCir
17e0: 63 75 6c 61 72 53 74 72 69 70 65 3c 2f 62 3e 20 cularStripe</b>
17f0: 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e ( <i>cx</i>, <i>
1800: 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 cy</i>, <i>radiu
1810: 73 5f 31 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 s_1</i>, <i>radi
1820: 75 73 5f 32 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 us_2</i>, <i>sta
1830: 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c rt</i>, <i>stop<
1840: 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e /i>, <i>srid</i>
1850: 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 3c , <i>step</i> )<
1860: 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 6e hr>..Will return
1870: 20 61 20 3c 62 3e 50 6f 6c 79 67 6f 6e 3c 2f 62 a <b>Polygon</b
1880: 3e 20 64 65 6c 69 6d 69 74 65 64 20 62 79 20 74 > delimited by t
1890: 77 6f 20 63 69 72 63 75 6c 61 72 20 61 72 63 73 wo circular arcs
18a0: 20 73 68 61 72 69 6e 67 20 74 68 65 20 73 61 6d sharing the sam
18b0: 65 20 63 65 6e 74 72 65 20 62 75 74 20 68 61 76 e centre but hav
18c0: 69 6e 67 20 64 69 66 66 65 72 65 6e 74 20 72 61 ing different ra
18d0: 64 69 69 2e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c dii...</td><td><
18e0: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f img src="https:/
18f0: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
1900: 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c /gaia-sins/circl
1910: 65 73 2d 65 6c 6c 69 70 73 65 73 2f 63 69 72 63 es-ellipses/circ
1920: 75 6c 61 72 2d 73 74 72 69 70 65 2d 31 2e 70 6e ular-stripe-1.pn
1930: 67 22 20 61 6c 74 3d 22 63 69 72 63 75 6c 61 72 g" alt="circular
1940: 2d 73 74 72 69 70 65 2d 31 22 3e 3c 62 72 3e 0d -stripe-1"><br>.
1950: 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c .<verbatim>..SEL
1960: 45 43 54 20 4d 61 6b 65 43 69 72 63 75 6c 61 72 ECT MakeCircular
1970: 53 74 72 69 70 65 28 30 2c 20 30 2c 20 31 30 30 Stripe(0, 0, 100
1980: 2c 20 39 30 2c 0d 0a 20 20 20 20 34 35 2c 20 33 , 90,.. 45, 3
1990: 31 35 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 15, -1, 1);..</v
19a0: 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c erbatim></td>..<
19b0: 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 /td><td><img src
19c0: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
19d0: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
19e0: 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 ins/circles-elli
19f0: 70 73 65 73 2f 63 69 72 63 75 6c 61 72 2d 73 74 pses/circular-st
1a00: 72 69 70 65 2d 32 2e 70 6e 67 22 20 61 6c 74 3d ripe-2.png" alt=
1a10: 22 63 69 72 63 75 6c 61 72 2d 73 74 72 69 70 65 "circular-stripe
1a20: 2d 32 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 -2"><br>..<verba
1a30: 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b tim>..SELECT Mak
1a40: 65 43 69 72 63 75 6c 61 72 53 74 72 69 70 65 28 eCircularStripe(
1a50: 30 2c 20 30 2c 20 35 30 2c 20 31 35 30 2c 0d 0a 0, 0, 50, 150,..
1a60: 20 20 20 20 33 31 35 2c 20 34 35 2c 20 2d 31 2c 315, 45, -1,
1a70: 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 1);..</verbatim
1a80: 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 ></td></tr>..<tr
1a90: 3e 3c 74 64 3e 41 6e 79 20 66 75 6e 63 74 69 6f ><td>Any functio
1aa0: 6e 20 73 75 70 70 6f 72 74 69 6e 67 20 63 69 72 n supporting cir
1ab0: 63 6c 65 73 20 61 6e 64 20 65 6c 6c 69 70 73 65 cles and ellipse
1ac0: 73 20 63 6f 75 6c 64 20 6f 62 76 69 6f 75 73 6c s could obviousl
1ad0: 79 20 62 65 20 6e 65 73 74 65 64 20 77 69 74 68 y be nested with
1ae0: 20 61 6e 79 20 6f 74 68 65 72 20 53 70 61 74 69 any other Spati
1af0: 61 6c 20 53 51 4c 20 66 75 6e 63 74 69 6f 6e 20 al SQL function
1b00: 73 6f 20 74 6f 20 67 65 74 20 6d 6f 72 65 20 65 so to get more e
1b10: 6c 61 62 6f 72 61 74 65 20 72 65 73 75 6c 74 73 laborate results
1b20: 2e 3c 62 72 3e 0d 0a 65 2e 67 2e 20 3c 62 3e 52 .<br>..e.g. <b>R
1b30: 6f 74 61 74 65 43 6f 6f 72 64 73 28 29 3c 2f 62 otateCoords()</b
1b40: 3e 20 61 6e 64 20 3c 62 3e 53 68 69 66 74 43 6f > and <b>ShiftCo
1b50: 6f 72 64 73 28 29 3c 2f 62 3e 20 63 6f 75 6c 64 ords()</b> could
1b60: 20 62 65 20 69 6e 76 6f 6b 65 64 20 69 6e 20 6f be invoked in o
1b70: 72 64 65 72 20 74 6f 20 61 70 70 6c 79 20 61 6e rder to apply an
1b80: 20 61 72 62 69 74 72 61 72 79 20 3c 75 3e 3c 69 arbitrary <u><i
1b90: 3e 72 6f 74 6f 2d 74 72 61 6e 73 6c 61 74 69 6f >roto-translatio
1ba0: 6e 3c 2f 69 3e 3c 2f 75 3e 2e 0d 0a 3c 2f 74 64 n</i></u>...</td
1bb0: 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 32 22 ><td colspan="2"
1bc0: 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e align="center">
1bd0: 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a <img src="https:
1be0: 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 //www.gaia-gis.i
1bf0: 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 t/gaia-sins/circ
1c00: 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f 74 69 6c les-ellipses/til
1c10: 74 2d 65 6c 6c 69 70 73 65 2e 70 6e 67 22 20 61 t-ellipse.png" a
1c20: 6c 74 3d 22 74 69 6c 74 2d 65 6c 6c 69 70 73 65 lt="tilt-ellipse
1c30: 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 "><br>..<verbati
1c40: 6d 3e 0d 0a 53 45 4c 45 43 54 20 52 6f 74 61 74 m>..SELECT Rotat
1c50: 65 43 6f 6f 72 64 73 28 20 4d 61 6b 65 45 6c 6c eCoords( MakeEll
1c60: 69 70 73 65 28 30 2c 20 30 2c 20 31 30 30 2c 20 ipse(0, 0, 100,
1c70: 32 30 2c 20 2d 31 2c 20 31 29 2c 20 34 35 29 3b 20, -1, 1), 45);
1c80: 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 ..</verbatim></t
1c90: 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 d></tr>..</table
1ca0: 3e 0d 0a 3c 68 72 3e 3c 62 72 3e 0d 0a 3c 61 20 >..<hr><br>..<a
1cb0: 68 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 href="https://ww
1cc0: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f w.gaia-gis.it/fo
1cd0: 73 73 69 6c 2f 6c 69 62 73 70 61 74 69 61 6c 69 ssil/libspatiali
1ce0: 74 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d 34 2e 33 te/wiki?name=4.3
1cf0: 2e 30 2b 64 6f 63 22 3e 62 61 63 6b 3c 2f 61 3e .0+doc">back</a>
1d00: 0a 5a 20 64 30 39 62 66 66 38 63 66 63 31 36 38 .Z d09bff8cfc168
1d10: 36 34 39 37 32 36 31 62 63 38 36 30 61 32 33 33 6497261bc860a233
1d20: 62 35 38 0a b58.