Wiki page
[circles-ellipses] by
sandro
2013-05-30 14:24:46.
0000: 44 20 32 30 31 33 2d 30 35 2d 33 30 54 31 34 3a D 2013-05-30T14:
0010: 32 34 3a 34 36 2e 35 36 33 0a 4c 20 63 69 72 63 24:46.563.L circ
0020: 6c 65 73 2d 65 6c 6c 69 70 73 65 73 0a 55 20 73 les-ellipses.U s
0030: 61 6e 64 72 6f 0a 57 20 37 33 36 33 0a 62 61 63 andro.W 7363.bac
0040: 6b 20 74 6f 20 3c 61 20 68 72 65 66 3d 22 68 74 k to <a href="ht
0050: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
0060: 69 73 2e 69 74 2f 66 6f 73 73 69 6c 2f 6c 69 62 is.it/fossil/lib
0070: 73 70 61 74 69 61 6c 69 74 65 2f 77 69 6b 69 3f spatialite/wiki?
0080: 6e 61 6d 65 3d 34 2e 31 2e 30 2b 43 68 61 6e 67 name=4.1.0+Chang
0090: 65 73 22 3e 34 2e 31 2e 30 2d 63 68 61 6e 67 65 es">4.1.0-change
00a0: 73 3c 2f 61 3e 0d 0a 3c 68 32 3e 4e 65 77 20 53 s</a>..<h2>New S
00b0: 51 4c 20 66 75 6e 63 74 69 6f 6e 73 20 73 75 70 QL functions sup
00c0: 70 6f 72 74 69 6e 67 20 43 69 72 63 6c 65 73 20 porting Circles
00d0: 61 6e 64 20 45 6c 6c 69 70 73 65 73 20 69 6e 74 and Ellipses int
00e0: 72 6f 64 75 63 65 64 20 69 6e 20 34 2e 31 2e 30 roduced in 4.1.0
00f0: 3c 2f 68 32 3e 0d 0a 3c 74 61 62 6c 65 20 77 69 </h2>..<table wi
0100: 64 74 68 3d 22 25 31 30 30 22 20 63 65 6c 6c 70 dth="%100" cellp
0110: 61 64 64 69 6e 67 3d 22 38 22 20 63 65 6c 6c 73 adding="8" cells
0120: 70 61 63 69 6e 67 3d 22 38 22 3e 0d 0a 3c 74 72 pacing="8">..<tr
0130: 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 ><td>..<b>MakeCi
0140: 72 63 6c 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 rcle</b> ( <i>cx
0150: 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c </i>, <i>cy</i>,
0160: 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e 20 29 <i>radius</i> )
0170: 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 <br>..<b>MakeCir
0180: 63 6c 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c cle</b> ( <i>cx<
0190: 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 /i>, <i>cy</i>,
01a0: 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e 2c 20 3c <i>radius</i>, <
01b0: 69 3e 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 3e i>srid</i> )<br>
01c0: 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 6c 65 3c ..<b>MakeCircle<
01d0: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
01e0: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 <i>cy</i>, <i>r
01f0: 61 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 72 adius</i>, <i>sr
0200: 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 3c id</i>, <i>step<
0210: 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c 20 /i> )<hr>..Will
0220: 72 65 74 75 72 6e 20 61 20 63 6c 6f 73 65 64 20 return a closed
0230: 3c 62 3e 4c 69 6e 65 73 74 72 69 6e 67 3c 2f 62 <b>Linestring</b
0240: 3e 20 61 70 70 72 6f 78 69 6d 61 74 69 6e 67 20 > approximating
0250: 61 20 63 69 72 63 6c 65 2e 3c 75 6c 3e 0d 0a 3c a circle.<ul>..<
0260: 6c 69 3e 3c 62 3e 63 78 3c 2f 62 3e 20 61 6e 64 li><b>cx</b> and
0270: 20 3c 62 3e 63 79 3c 2f 62 3e 20 61 72 65 20 74 <b>cy</b> are t
0280: 68 65 20 63 6f 6f 72 64 69 6e 61 74 65 73 20 69 he coordinates i
0290: 64 65 6e 74 69 66 79 69 6e 67 20 74 68 65 20 63 dentifying the c
02a0: 65 6e 74 72 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 entre.</li>..<li
02b0: 3e 62 6f 74 68 20 3c 62 3e 72 61 64 69 75 73 3c >both <b>radius<
02c0: 2f 62 3e 20 61 6e 64 20 3c 62 3e 73 72 69 64 3c /b> and <b>srid<
02d0: 2f 62 3e 20 61 72 65 20 73 65 6c 66 2d 65 78 70 /b> are self-exp
02e0: 6c 61 6e 61 74 6f 72 79 2e 3c 2f 6c 69 3e 0d 0a lanatory.</li>..
02f0: 3c 6c 69 3e 74 68 65 20 6f 70 74 69 6f 6e 61 6c <li>the optional
0300: 20 61 72 67 75 6d 65 6e 74 20 3c 62 3e 73 74 65 argument <b>ste
0310: 70 3c 2f 62 3e 20 64 65 66 69 6e 65 73 20 68 6f p</b> defines ho
0320: 77 20 6d 61 6e 79 20 70 6f 69 6e 74 73 20 77 69 w many points wi
0330: 6c 6c 20 62 65 20 69 6e 74 65 72 70 6f 6c 61 74 ll be interpolat
0340: 65 64 20 6f 6e 20 74 68 65 20 63 75 72 76 65 2e ed on the curve.
0350: 20 3c 62 3e 73 74 65 70 3c 2f 62 3e 20 63 6f 72 <b>step</b> cor
0360: 72 65 73 70 6f 6e 64 73 20 74 6f 20 61 6e 20 3c responds to an <
0370: 75 3e 3c 69 3e 61 6e 67 75 6c 61 72 20 64 69 73 u><i>angular dis
0380: 74 61 6e 63 65 3c 2f 69 3e 3c 2f 75 3e 20 6d 65 tance</i></u> me
0390: 61 73 75 72 65 64 20 69 6e 20 3c 75 3e 3c 69 3e asured in <u><i>
03a0: 64 65 67 72 65 65 73 3c 2f 69 3e 3c 2f 75 3e 3b degrees</i></u>;
03b0: 20 74 77 6f 20 63 6f 6e 73 65 63 75 74 69 76 65 two consecutive
03c0: 20 70 6f 69 6e 74 73 20 77 69 6c 6c 20 62 65 20 points will be
03d0: 73 65 70 61 72 61 74 65 64 20 62 79 20 74 68 69 separated by thi
03e0: 73 20 64 69 73 74 61 6e 63 65 2e 3c 2f 6c 69 3e s distance.</li>
03f0: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 ..</ul>..</td><t
0400: 64 20 63 6f 6c 73 70 61 6e 3d 22 32 22 20 61 6c d colspan="2" al
0410: 69 67 6e 3d 22 63 65 6e 74 65 72 22 3e 3c 69 6d ign="center"><im
0420: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
0430: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
0440: 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 aia-sins/circles
0450: 2d 65 6c 6c 69 70 73 65 73 2f 63 69 72 63 6c 65 -ellipses/circle
0460: 2e 70 6e 67 22 20 61 6c 74 3d 22 63 69 72 63 6c .png" alt="circl
0470: 65 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 e"><br>..<verbat
0480: 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 im>..SELECT Make
0490: 43 69 72 63 6c 65 28 30 2c 20 30 2c 20 31 30 30 Circle(0, 0, 100
04a0: 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 , -1, 1);..</ver
04b0: 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e batim></td></tr>
04c0: 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d ..<tr><td>..<b>M
04d0: 61 6b 65 45 6c 6c 69 70 73 65 3c 2f 62 3e 20 28 akeEllipse</b> (
04e0: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
04f0: 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 y</i>, <i>x_axis
0500: 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c </i>, <i>y_axis<
0510: 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 /i> )<br>..<b>Ma
0520: 6b 65 45 6c 6c 69 70 73 65 3c 2f 62 3e 20 28 20 keEllipse</b> (
0530: 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 <i>cx</i>, <i>cy
0540: 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 3c </i>, <i>x_axis<
0550: 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c 2f /i>, <i>y_axis</
0560: 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 20 i>, <i>srid</i>
0570: 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c )<br>..<b>MakeEl
0580: 6c 69 70 73 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 lipse</b> ( <i>c
0590: 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e x</i>, <i>cy</i>
05a0: 2c 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c , <i>x_axis</i>,
05b0: 20 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 <i>y_axis</i>,
05c0: 3c 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 3e <i>srid</i>, <i>
05d0: 73 74 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d 0a step</i> )<hr>..
05e0: 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 63 6c Will return a cl
05f0: 6f 73 65 64 20 3c 62 3e 4c 69 6e 65 73 74 72 69 osed <b>Linestri
0600: 6e 67 3c 2f 62 3e 20 61 70 70 72 6f 78 69 6d 61 ng</b> approxima
0610: 74 69 6e 67 20 61 6e 20 65 6c 6c 69 70 73 65 2e ting an ellipse.
0620: 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 63 78 3c <ul>..<li><b>cx<
0630: 2f 62 3e 2c 20 3c 62 3e 63 79 3c 2f 62 3e 2c 20 /b>, <b>cy</b>,
0640: 3c 62 3e 73 72 69 64 3c 2f 62 3e 20 61 6e 64 20 <b>srid</b> and
0650: 3c 62 3e 73 74 65 70 3c 2f 62 3e 20 68 61 76 65 <b>step</b> have
0660: 20 65 78 61 63 74 6c 79 20 74 68 65 20 73 61 6d exactly the sam
0670: 65 20 69 64 65 6e 74 69 63 61 6c 20 6d 65 61 6e e identical mean
0680: 69 6e 67 20 61 73 20 62 65 66 6f 72 65 2e 3c 2f ing as before.</
0690: 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e 78 5f 61 78 li>..<li><b>x_ax
06a0: 69 73 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 79 5f is</b> and <b>y_
06b0: 61 78 69 73 3c 2f 62 3e 20 64 65 66 69 6e 65 20 axis</b> define
06c0: 72 65 73 70 65 63 74 69 76 65 6c 79 20 74 68 65 respectively the
06d0: 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 6e 64 20 horizontal and
06e0: 76 65 72 74 69 63 61 6c 20 61 78 65 73 20 6f 66 vertical axes of
06f0: 20 74 68 65 20 65 6c 6c 69 70 73 65 2e 3c 2f 6c the ellipse.</l
0700: 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e i>..</ul>..</td>
0710: 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 <td><img src="ht
0720: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
0730: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
0740: 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 circles-ellipses
0750: 2f 65 6c 6c 69 70 73 65 2d 31 2e 70 6e 67 22 20 /ellipse-1.png"
0760: 61 6c 74 3d 22 65 6c 6c 69 70 73 65 2d 31 22 3e alt="ellipse-1">
0770: 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e <br>..<verbatim>
0780: 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 45 6c 6c ..SELECT MakeEll
0790: 69 70 73 65 28 30 2c 20 30 2c 20 31 30 30 2c 20 ipse(0, 0, 100,
07a0: 35 30 2c 0d 0a 20 20 20 20 2d 31 2c 20 31 29 3b 50,.. -1, 1);
07b0: 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 ..</verbatim></t
07c0: 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d d>..</td><td><im
07d0: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
07e0: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
07f0: 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 aia-sins/circles
0800: 2d 65 6c 6c 69 70 73 65 73 2f 65 6c 6c 69 70 73 -ellipses/ellips
0810: 65 2d 32 2e 70 6e 67 22 20 61 6c 74 3d 22 65 6c e-2.png" alt="el
0820: 6c 69 70 73 65 2d 32 22 3e 3c 62 72 3e 0d 0a 3c lipse-2"><br>..<
0830: 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 verbatim>..SELEC
0840: 54 20 4d 61 6b 65 45 6c 6c 69 70 73 65 28 30 2c T MakeEllipse(0,
0850: 20 30 2c 20 35 30 2c 20 31 30 30 2c 0d 0a 20 20 0, 50, 100,..
0860: 20 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 -1, 1);..</ver
0870: 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e batim></td></tr>
0880: 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d ..<tr><td>..<b>M
0890: 61 6b 65 41 72 63 3c 2f 62 3e 20 28 20 3c 69 3e akeArc</b> ( <i>
08a0: 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 cx</i>, <i>cy</i
08b0: 3e 2c 20 3c 69 3e 72 61 64 69 75 73 3c 2f 69 3e >, <i>radius</i>
08c0: 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 , <i>start</i>,
08d0: 3c 69 3e 73 74 6f 70 3c 2f 69 3e 20 29 3c 62 72 <i>stop</i> )<br
08e0: 3e 0d 0a 3c 62 3e 4d 61 6b 65 41 72 63 3c 2f 62 >..<b>MakeArc</b
08f0: 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c > ( <i>cx</i>, <
0900: 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 i>cy</i>, <i>rad
0910: 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 ius</i>, <i>star
0920: 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f t</i>, <i>stop</
0930: 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 20 i>, <i>srid</i>
0940: 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 41 72 )<br>..<b>MakeAr
0950: 63 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 c</b> ( <i>cx</i
0960: 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 >, <i>cy</i>, <i
0970: 3e 72 61 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e >radius</i>, <i>
0980: 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 start</i>, <i>st
0990: 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c op</i>, <i>srid<
09a0: 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e /i>, <i>step</i>
09b0: 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 )<hr>..Will ret
09c0: 75 72 6e 20 61 20 3c 62 3e 4c 69 6e 65 73 74 72 urn a <b>Linestr
09d0: 69 6e 67 3c 2f 62 3e 20 61 70 70 72 6f 78 69 6d ing</b> approxim
09e0: 61 74 69 6e 67 20 61 20 63 69 72 63 75 6c 61 72 ating a circular
09f0: 20 61 72 63 2e 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c arc.<ul>..<li><
0a00: 62 3e 63 78 3c 2f 62 3e 2c 20 3c 62 3e 63 79 3c b>cx</b>, <b>cy<
0a10: 2f 62 3e 2c 20 3c 62 3e 72 61 64 69 75 73 3c 2f /b>, <b>radius</
0a20: 62 3e 20 61 6e 64 20 3c 62 3e 73 74 65 70 3c 2f b> and <b>step</
0a30: 62 3e 20 61 72 65 20 65 78 61 63 74 6c 79 20 61 b> are exactly a
0a40: 73 20 61 62 6f 76 65 2e 3c 2f 6c 69 3e 0d 0a 3c s above.</li>..<
0a50: 6c 69 3e 3c 62 3e 73 74 61 72 74 3c 2f 62 3e 20 li><b>start</b>
0a60: 61 6e 64 20 3c 62 3e 73 74 6f 70 3c 2f 62 3e 20 and <b>stop</b>
0a70: 64 65 66 69 6e 65 20 74 68 65 20 65 78 74 72 65 define the extre
0a80: 6d 65 20 70 6f 69 6e 74 73 20 6f 66 20 74 68 65 me points of the
0a90: 20 61 72 63 3b 20 62 6f 74 68 20 61 72 65 20 3c arc; both are <
0aa0: 75 3e 3c 69 3e 61 6e 67 6c 65 73 3c 2f 69 3e 3c u><i>angles</i><
0ab0: 2f 75 3e 20 65 78 70 72 65 73 73 65 64 20 69 6e /u> expressed in
0ac0: 20 3c 75 3e 3c 69 3e 64 65 67 72 65 65 73 3c 2f <u><i>degrees</
0ad0: 69 3e 3c 2f 75 3e 2e 20 54 68 65 20 61 72 63 20 i></u>. The arc
0ae0: 77 69 6c 6c 20 62 65 20 61 6c 77 61 79 73 20 64 will be always d
0af0: 72 61 77 6e 20 69 6e 20 3c 75 3e 3c 69 3e 63 6f rawn in <u><i>co
0b00: 75 6e 74 65 72 63 6c 6f 63 6b 77 69 73 65 3c 2f unterclockwise</
0b10: 69 3e 3c 2f 75 3e 20 64 69 72 65 63 74 69 6f 6e i></u> direction
0b20: 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c .</li>..</ul>..<
0b30: 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 /td><td><img src
0b40: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
0b50: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
0b60: 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 ins/circles-elli
0b70: 70 73 65 73 2f 61 72 63 2d 31 2e 70 6e 67 22 20 pses/arc-1.png"
0b80: 61 6c 74 3d 22 61 72 63 2d 31 22 3e 3c 62 72 3e alt="arc-1"><br>
0b90: 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 ..<verbatim>..SE
0ba0: 4c 45 43 54 20 4d 61 6b 65 41 72 63 28 30 2c 20 LECT MakeArc(0,
0bb0: 30 2c 20 31 30 30 2c 20 0d 0a 20 20 20 20 33 30 0, 100, .. 30
0bc0: 2c 20 31 35 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a , 150, -1, 1);..
0bd0: 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e </verbatim></td>
0be0: 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 ..</td><td><img
0bf0: 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 src="https://www
0c00: 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 .gaia-gis.it/gai
0c10: 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 a-sins/circles-e
0c20: 6c 6c 69 70 73 65 73 2f 61 72 63 2d 32 2e 70 6e llipses/arc-2.pn
0c30: 67 22 20 61 6c 74 3d 22 61 72 63 2d 32 22 3e 3c g" alt="arc-2"><
0c40: 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d br>..<verbatim>.
0c50: 0a 53 45 4c 45 43 54 20 4d 61 6b 65 41 72 63 28 .SELECT MakeArc(
0c60: 30 2c 20 30 2c 20 31 30 30 2c 20 0d 0a 20 20 20 0, 0, 100, ..
0c70: 20 33 30 2c 20 31 35 30 2c 20 2d 31 2c 20 31 29 30, 150, -1, 1)
0c80: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f ;..</verbatim></
0c90: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
0ca0: 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 d>..<b>MakeEllip
0cb0: 74 69 63 41 72 63 3c 2f 62 3e 20 28 20 3c 69 3e ticArc</b> ( <i>
0cc0: 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 cx</i>, <i>cy</i
0cd0: 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e >, <i>x_axis</i>
0ce0: 2c 20 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c , <i>y_axis</i>,
0cf0: 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c <i>start</i>, <
0d00: 69 3e 73 74 6f 70 3c 2f 69 3e 20 29 3c 62 72 3e i>stop</i> )<br>
0d10: 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 74 69 ..<b>MakeEllipti
0d20: 63 41 72 63 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 cArc</b> ( <i>cx
0d30: 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c </i>, <i>cy</i>,
0d40: 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 <i>x_axis</i>,
0d50: 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c <i>y_axis</i>, <
0d60: 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e i>start</i>, <i>
0d70: 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 stop</i>, <i>sri
0d80: 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e d</i> )<br>..<b>
0d90: 4d 61 6b 65 45 6c 6c 69 70 74 69 63 41 72 63 3c MakeEllipticArc<
0da0: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
0db0: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 <i>cy</i>, <i>x
0dc0: 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f _axis</i>, <i>y_
0dd0: 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 axis</i>, <i>sta
0de0: 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c rt</i>, <i>stop<
0df0: 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e /i>, <i>srid</i>
0e00: 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 3c , <i>step</i> )<
0e10: 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 6e hr>..Will return
0e20: 20 61 20 3c 62 3e 4c 69 6e 65 73 74 72 69 6e 67 a <b>Linestring
0e30: 3c 2f 62 3e 20 61 70 70 72 6f 78 69 6d 61 74 69 </b> approximati
0e40: 6e 67 20 61 6e 20 65 6c 6c 69 70 74 69 63 20 61 ng an elliptic a
0e50: 72 63 2e 3c 62 72 3e 0d 0a 3c 2f 74 64 3e 3c 74 rc.<br>..</td><t
0e60: 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 d><img src="http
0e70: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 s://www.gaia-gis
0e80: 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 .it/gaia-sins/ci
0e90: 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f 65 rcles-ellipses/e
0ea0: 6c 6c 69 70 74 69 63 2d 61 72 63 2d 31 2e 70 6e lliptic-arc-1.pn
0eb0: 67 22 20 61 6c 74 3d 22 65 6c 6c 69 70 74 69 63 g" alt="elliptic
0ec0: 2d 61 72 63 2d 31 22 3e 3c 62 72 3e 0d 0a 3c 76 -arc-1"><br>..<v
0ed0: 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 erbatim>..SELECT
0ee0: 20 4d 61 6b 65 45 6c 6c 69 70 74 69 63 41 72 63 MakeEllipticArc
0ef0: 28 30 2c 20 30 2c 20 35 30 2c 20 31 30 30 2c 20 (0, 0, 50, 100,
0f00: 0d 0a 20 20 20 20 33 30 2c 20 31 35 30 2c 20 2d .. 30, 150, -
0f10: 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 1, 1);..</verbat
0f20: 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c im></td>..</td><
0f30: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 td><img src="htt
0f40: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
0f50: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 s.it/gaia-sins/c
0f60: 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f ircles-ellipses/
0f70: 65 6c 6c 69 70 74 69 63 2d 61 72 63 2d 32 2e 70 elliptic-arc-2.p
0f80: 6e 67 22 20 61 6c 74 3d 22 65 6c 6c 69 70 74 69 ng" alt="ellipti
0f90: 63 2d 61 72 63 2d 32 22 3e 3c 62 72 3e 0d 0a 3c c-arc-2"><br>..<
0fa0: 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 verbatim>..SELEC
0fb0: 54 20 4d 61 6b 65 45 6c 6c 69 70 74 69 63 41 72 T MakeEllipticAr
0fc0: 63 28 30 2c 20 30 2c 20 35 30 2c 20 31 30 30 2c c(0, 0, 50, 100,
0fd0: 0d 0a 20 20 20 20 31 35 30 2c 20 33 30 2c 20 2d .. 150, 30, -
0fe0: 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 1, 1);..</verbat
0ff0: 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c im></td></tr>..<
1000: 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 tr><td>..<b>Make
1010: 43 69 72 63 75 6c 61 72 53 65 63 74 6f 72 3c 2f CircularSector</
1020: 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 b> ( <i>cx</i>,
1030: 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 <i>cy</i>, <i>ra
1040: 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 dius</i>, <i>sta
1050: 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c rt</i>, <i>stop<
1060: 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 /i> )<br>..<b>Ma
1070: 6b 65 43 69 72 63 75 6c 61 72 53 65 63 74 6f 72 keCircularSector
1080: 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e </b> ( <i>cx</i>
1090: 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e , <i>cy</i>, <i>
10a0: 72 61 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 radius</i>, <i>s
10b0: 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f tart</i>, <i>sto
10c0: 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f p</i>, <i>srid</
10d0: 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b i> )<br>..<b>Mak
10e0: 65 43 69 72 63 75 6c 61 72 53 65 63 74 6f 72 3c eCircularSector<
10f0: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
1100: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 <i>cy</i>, <i>r
1110: 61 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 adius</i>, <i>st
1120: 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 art</i>, <i>stop
1130: 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 </i>, <i>srid</i
1140: 3e 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 >, <i>step</i> )
1150: 3c 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 <hr>..Will retur
1160: 6e 20 61 20 3c 62 3e 50 6f 6c 79 67 6f 6e 3c 2f n a <b>Polygon</
1170: 62 3e 20 61 70 70 72 6f 78 69 6d 61 74 69 6e 67 b> approximating
1180: 20 61 20 63 69 72 63 75 6c 61 72 20 73 65 63 74 a circular sect
1190: 6f 72 2e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 or...</td><td><i
11a0: 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f mg src="https://
11b0: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f www.gaia-gis.it/
11c0: 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 gaia-sins/circle
11d0: 73 2d 65 6c 6c 69 70 73 65 73 2f 63 69 72 63 75 s-ellipses/circu
11e0: 6c 61 72 2d 73 65 63 74 6f 72 2d 31 2e 70 6e 67 lar-sector-1.png
11f0: 22 20 61 6c 74 3d 22 63 69 72 63 75 6c 61 72 2d " alt="circular-
1200: 73 65 63 74 6f 72 2d 31 22 3e 3c 62 72 3e 0d 0a sector-1"><br>..
1210: 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 <verbatim>..SELE
1220: 43 54 20 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 CT MakeCircularS
1230: 65 63 74 6f 72 28 30 2c 20 30 2c 20 31 30 30 2c ector(0, 0, 100,
1240: 0d 0a 20 20 20 20 33 33 30 2c 20 33 30 2c 20 2d .. 330, 30, -
1250: 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 1, 1);..</verbat
1260: 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c im></td>..</td><
1270: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 td><img src="htt
1280: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
1290: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 s.it/gaia-sins/c
12a0: 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f ircles-ellipses/
12b0: 63 69 72 63 75 6c 61 72 2d 73 65 63 74 6f 72 2d circular-sector-
12c0: 32 2e 70 6e 67 22 20 61 6c 74 3d 22 63 69 72 63 2.png" alt="circ
12d0: 75 6c 61 72 2d 73 65 63 74 6f 72 2d 32 22 3e 3c ular-sector-2"><
12e0: 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d br>..<verbatim>.
12f0: 0a 53 45 4c 45 43 54 20 4d 61 6b 65 43 69 72 63 .SELECT MakeCirc
1300: 75 6c 61 72 53 65 63 74 6f 72 28 30 2c 20 30 2c ularSector(0, 0,
1310: 20 31 30 30 2c 0d 0a 20 20 20 20 33 30 2c 20 33 100,.. 30, 3
1320: 33 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 30, -1, 1);..</v
1330: 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 erbatim></td></t
1340: 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c 62 r>..<tr><td>..<b
1350: 3e 4d 61 6b 65 45 6c 6c 69 70 74 69 63 53 65 63 >MakeEllipticSec
1360: 74 6f 72 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c tor</b> ( <i>cx<
1370: 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 /i>, <i>cy</i>,
1380: 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c <i>x_axis</i>, <
1390: 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 i>y_axis</i>, <i
13a0: 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 >start</i>, <i>s
13b0: 74 6f 70 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c top</i> )<br>..<
13c0: 62 3e 4d 61 6b 65 45 6c 6c 69 70 74 69 63 53 65 b>MakeEllipticSe
13d0: 63 74 6f 72 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 ctor</b> ( <i>cx
13e0: 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c </i>, <i>cy</i>,
13f0: 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 <i>x_axis</i>,
1400: 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c <i>y_axis</i>, <
1410: 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e i>start</i>, <i>
1420: 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 stop</i>, <i>sri
1430: 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e d</i> )<br>..<b>
1440: 4d 61 6b 65 45 6c 6c 69 70 74 69 63 53 65 63 74 MakeEllipticSect
1450: 6f 72 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f or</b> ( <i>cx</
1460: 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c i>, <i>cy</i>, <
1470: 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 i>x_axis</i>, <i
1480: 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e >y_axis</i>, <i>
1490: 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 start</i>, <i>st
14a0: 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c op</i>, <i>srid<
14b0: 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e /i>, <i>step</i>
14c0: 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 )<hr>..Will ret
14d0: 75 72 6e 20 61 20 3c 62 3e 50 6f 6c 79 67 6f 6e urn a <b>Polygon
14e0: 3c 2f 62 3e 20 61 70 70 72 6f 78 69 6d 61 74 69 </b> approximati
14f0: 6e 67 20 61 6e 20 65 6c 6c 69 70 74 69 63 20 73 ng an elliptic s
1500: 65 63 74 6f 72 2e 0d 0a 3c 2f 74 64 3e 3c 74 64 ector...</td><td
1510: 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 ><img src="https
1520: 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e ://www.gaia-gis.
1530: 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 it/gaia-sins/cir
1540: 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f 65 6c cles-ellipses/el
1550: 6c 69 70 74 69 63 2d 73 65 63 74 6f 72 2d 31 2e liptic-sector-1.
1560: 70 6e 67 22 20 61 6c 74 3d 22 65 6c 6c 69 70 74 png" alt="ellipt
1570: 69 63 2d 73 65 63 74 6f 72 2d 31 22 3e 3c 62 72 ic-sector-1"><br
1580: 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 >..<verbatim>..S
1590: 45 4c 45 43 54 20 4d 61 6b 65 45 6c 6c 69 70 74 ELECT MakeEllipt
15a0: 69 63 53 65 63 74 6f 72 28 30 2c 20 30 2c 20 31 icSector(0, 0, 1
15b0: 30 30 2c 20 35 30 2c 0d 0a 20 20 20 20 33 33 30 00, 50,.. 330
15c0: 2c 20 33 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c , 30, -1, 1);..<
15d0: 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d /verbatim></td>.
15e0: 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 .</td><td><img s
15f0: 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e rc="https://www.
1600: 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 gaia-gis.it/gaia
1610: 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c -sins/circles-el
1620: 6c 69 70 73 65 73 2f 65 6c 6c 69 70 74 69 63 2d lipses/elliptic-
1630: 73 65 63 74 6f 72 2d 32 2e 70 6e 67 22 20 61 6c sector-2.png" al
1640: 74 3d 22 65 6c 6c 69 70 74 69 63 2d 73 65 63 74 t="elliptic-sect
1650: 6f 72 2d 32 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 or-2"><br>..<ver
1660: 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d batim>..SELECT M
1670: 61 6b 65 45 6c 6c 69 70 74 69 63 53 65 63 74 6f akeEllipticSecto
1680: 72 28 30 2c 20 30 2c 20 31 30 30 2c 20 35 30 2c r(0, 0, 100, 50,
1690: 0d 0a 20 20 20 20 33 30 2c 20 33 33 30 2c 20 2d .. 30, 330, -
16a0: 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 1, 1);..</verbat
16b0: 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c im></td></tr>..<
16c0: 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 tr><td>..<b>Make
16d0: 43 69 72 63 75 6c 61 72 53 74 72 69 70 65 3c 2f CircularStripe</
16e0: 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 b> ( <i>cx</i>,
16f0: 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 <i>cy</i>, <i>ra
1700: 64 69 75 73 5f 31 3c 2f 69 3e 2c 20 3c 69 3e 72 dius_1</i>, <i>r
1710: 61 64 69 75 73 5f 32 3c 2f 69 3e 2c 20 3c 69 3e adius_2</i>, <i>
1720: 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 start</i>, <i>st
1730: 6f 70 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 op</i> )<br>..<b
1740: 3e 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 74 72 >MakeCircularStr
1750: 69 70 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c ipe</b> ( <i>cx<
1760: 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 /i>, <i>cy</i>,
1770: 3c 69 3e 72 61 64 69 75 73 5f 31 3c 2f 69 3e 2c <i>radius_1</i>,
1780: 20 3c 69 3e 72 61 64 69 75 73 5f 32 3c 2f 69 3e <i>radius_2</i>
1790: 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 , <i>start</i>,
17a0: 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e <i>stop</i>, <i>
17b0: 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a srid</i> )<br>..
17c0: 3c 62 3e 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 <b>MakeCircularS
17d0: 74 72 69 70 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 tripe</b> ( <i>c
17e0: 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e x</i>, <i>cy</i>
17f0: 2c 20 3c 69 3e 72 61 64 69 75 73 5f 31 3c 2f 69 , <i>radius_1</i
1800: 3e 2c 20 3c 69 3e 72 61 64 69 75 73 5f 32 3c 2f >, <i>radius_2</
1810: 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e i>, <i>start</i>
1820: 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c , <i>stop</i>, <
1830: 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 i>srid</i>, <i>s
1840: 74 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 tep</i> )<hr>..W
1850: 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 3c 62 3e ill return a <b>
1860: 50 6f 6c 79 67 6f 6e 3c 2f 62 3e 20 64 65 6c 69 Polygon</b> deli
1870: 6d 69 74 65 64 20 62 79 20 74 77 6f 20 63 69 72 mited by two cir
1880: 63 75 6c 61 72 20 61 72 63 73 20 73 68 61 72 69 cular arcs shari
1890: 6e 67 20 74 68 65 20 73 61 6d 65 20 63 65 6e 74 ng the same cent
18a0: 72 65 20 62 75 74 20 68 61 76 69 6e 67 20 64 69 re but having di
18b0: 66 66 65 72 65 6e 74 20 72 61 64 69 69 2e 0d 0a fferent radii...
18c0: 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 </td><td><img sr
18d0: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
18e0: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
18f0: 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c sins/circles-ell
1900: 69 70 73 65 73 2f 63 69 72 63 75 6c 61 72 2d 73 ipses/circular-s
1910: 74 72 69 70 65 2d 31 2e 70 6e 67 22 20 61 6c 74 tripe-1.png" alt
1920: 3d 22 63 69 72 63 75 6c 61 72 2d 73 74 72 69 70 ="circular-strip
1930: 65 2d 31 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 e-1"><br>..<verb
1940: 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 atim>..SELECT Ma
1950: 6b 65 43 69 72 63 75 6c 61 72 53 74 72 69 70 65 keCircularStripe
1960: 28 30 2c 20 30 2c 20 31 30 30 2c 20 39 30 2c 0d (0, 0, 100, 90,.
1970: 0a 20 20 20 20 34 35 2c 20 33 31 35 2c 20 2d 31 . 45, 315, -1
1980: 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 , 1);..</verbati
1990: 6d 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 m></td>..</td><t
19a0: 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 d><img src="http
19b0: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 s://www.gaia-gis
19c0: 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 .it/gaia-sins/ci
19d0: 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f 63 rcles-ellipses/c
19e0: 69 72 63 75 6c 61 72 2d 73 74 72 69 70 65 2d 32 ircular-stripe-2
19f0: 2e 70 6e 67 22 20 61 6c 74 3d 22 63 69 72 63 75 .png" alt="circu
1a00: 6c 61 72 2d 73 74 72 69 70 65 2d 32 22 3e 3c 62 lar-stripe-2"><b
1a10: 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a r>..<verbatim>..
1a20: 53 45 4c 45 43 54 20 4d 61 6b 65 43 69 72 63 75 SELECT MakeCircu
1a30: 6c 61 72 53 74 72 69 70 65 28 30 2c 20 30 2c 20 larStripe(0, 0,
1a40: 35 30 2c 20 31 35 30 2c 0d 0a 20 20 20 20 33 31 50, 150,.. 31
1a50: 35 2c 20 34 35 2c 20 2d 31 2c 20 31 29 3b 0d 0a 5, 45, -1, 1);..
1a60: 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e </verbatim></td>
1a70: 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 41 </tr>..<tr><td>A
1a80: 6e 79 20 66 75 6e 63 74 69 6f 6e 20 73 75 70 70 ny function supp
1a90: 6f 72 74 69 6e 67 20 63 69 72 63 6c 65 73 20 61 orting circles a
1aa0: 6e 64 20 65 6c 6c 69 70 73 65 73 20 63 6f 75 6c nd ellipses coul
1ab0: 64 20 6f 62 76 69 6f 75 73 6c 79 20 62 65 20 6e d obviously be n
1ac0: 65 73 74 65 64 20 77 69 74 68 20 61 6e 79 20 6f ested with any o
1ad0: 74 68 65 72 20 53 70 61 74 69 61 6c 20 53 51 4c ther Spatial SQL
1ae0: 20 66 75 6e 63 74 69 6f 6e 20 73 6f 20 74 6f 20 function so to
1af0: 67 65 74 20 6d 6f 72 65 20 65 6c 61 62 6f 72 61 get more elabora
1b00: 74 65 20 72 65 73 75 6c 74 73 2e 3c 62 72 3e 0d te results.<br>.
1b10: 0a 65 2e 67 2e 20 3c 62 3e 52 6f 74 61 74 65 43 .e.g. <b>RotateC
1b20: 6f 6f 72 64 73 28 29 3c 2f 62 3e 20 61 6e 64 20 oords()</b> and
1b30: 3c 62 3e 53 68 69 74 43 6f 6f 72 64 73 28 29 3c <b>ShitCoords()<
1b40: 2f 62 3e 20 63 6f 75 6c 64 20 62 65 20 69 6e 76 /b> could be inv
1b50: 6f 6b 65 64 20 69 6e 20 6f 72 64 65 72 20 74 6f oked in order to
1b60: 20 61 70 70 6c 79 20 61 6e 20 61 72 62 69 74 72 apply an arbitr
1b70: 61 72 79 20 3c 75 3e 3c 69 3e 72 6f 74 6f 2d 74 ary <u><i>roto-t
1b80: 72 61 6e 73 6c 61 74 69 6f 6e 3c 2f 69 3e 3c 2f ranslation</i></
1b90: 75 3e 2e 0d 0a 3c 2f 74 64 3e 3c 74 64 20 63 6f u>...</td><td co
1ba0: 6c 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d lspan="2" align=
1bb0: 22 63 65 6e 74 65 72 22 3e 3c 69 6d 67 20 73 72 "center"><img sr
1bc0: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
1bd0: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
1be0: 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c sins/circles-ell
1bf0: 69 70 73 65 73 2f 74 69 6c 74 2d 65 6c 6c 69 70 ipses/tilt-ellip
1c00: 73 65 2e 70 6e 67 22 20 61 6c 74 3d 22 74 69 6c se.png" alt="til
1c10: 74 2d 65 6c 6c 69 70 73 65 22 3e 3c 62 72 3e 0d t-ellipse"><br>.
1c20: 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c .<verbatim>..SEL
1c30: 45 43 54 20 52 6f 74 61 74 65 43 6f 6f 72 64 73 ECT RotateCoords
1c40: 28 20 4d 61 6b 65 45 6c 6c 69 70 73 65 28 30 2c ( MakeEllipse(0,
1c50: 20 30 2c 20 31 30 30 2c 20 32 30 2c 20 2d 31 2c 0, 100, 20, -1,
1c60: 20 31 29 2c 20 34 35 29 3b 0d 0a 3c 2f 76 65 72 1), 45);..</ver
1c70: 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e batim></td></tr>
1c80: 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 0d 0a 3c 68 ..</table>....<h
1c90: 72 3e 3c 62 72 3e 0d 0a 62 61 63 6b 20 74 6f 20 r><br>..back to
1ca0: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f <a href="https:/
1cb0: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
1cc0: 2f 66 6f 73 73 69 6c 2f 6c 69 62 73 70 61 74 69 /fossil/libspati
1cd0: 61 6c 69 74 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d alite/wiki?name=
1ce0: 34 2e 31 2e 30 2b 43 68 61 6e 67 65 73 22 3e 34 4.1.0+Changes">4
1cf0: 2e 31 2e 30 2d 63 68 61 6e 67 65 73 3c 2f 61 3e .1.0-changes</a>
1d00: 0a 5a 20 39 37 31 30 31 61 64 34 38 31 64 37 65 .Z 97101ad481d7e
1d10: 35 30 63 37 34 61 38 61 61 66 35 31 35 35 64 66 50c74a8aaf5155df
1d20: 63 36 37 0a c67.