Wiki page
[circles-ellipses] by
sandro
2013-06-01 13:54:03.
0000: 44 20 32 30 31 33 2d 30 36 2d 30 31 54 31 33 3a D 2013-06-01T13:
0010: 35 34 3a 30 33 2e 36 34 31 0a 4c 20 63 69 72 63 54:03.641.L circ
0020: 6c 65 73 2d 65 6c 6c 69 70 73 65 73 0a 50 20 62 les-ellipses.P b
0030: 39 64 30 34 38 63 36 31 30 31 38 62 34 39 65 38 9d048c61018b49e8
0040: 65 39 39 65 38 33 65 65 33 62 39 63 37 36 37 64 e99e83ee3b9c767d
0050: 65 33 38 36 39 34 35 0a 55 20 73 61 6e 64 72 6f e386945.U sandro
0060: 0a 57 20 37 33 36 34 0a 62 61 63 6b 20 74 6f 20 .W 7364.back to
0070: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f <a href="https:/
0080: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
0090: 2f 66 6f 73 73 69 6c 2f 6c 69 62 73 70 61 74 69 /fossil/libspati
00a0: 61 6c 69 74 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d alite/wiki?name=
00b0: 34 2e 31 2e 30 2b 43 68 61 6e 67 65 73 22 3e 34 4.1.0+Changes">4
00c0: 2e 31 2e 30 2d 63 68 61 6e 67 65 73 3c 2f 61 3e .1.0-changes</a>
00d0: 0d 0a 3c 68 32 3e 4e 65 77 20 53 51 4c 20 66 75 ..<h2>New SQL fu
00e0: 6e 63 74 69 6f 6e 73 20 73 75 70 70 6f 72 74 69 nctions supporti
00f0: 6e 67 20 43 69 72 63 6c 65 73 20 61 6e 64 20 45 ng Circles and E
0100: 6c 6c 69 70 73 65 73 20 69 6e 74 72 6f 64 75 63 llipses introduc
0110: 65 64 20 69 6e 20 34 2e 31 2e 30 3c 2f 68 32 3e ed in 4.1.0</h2>
0120: 0d 0a 3c 74 61 62 6c 65 20 77 69 64 74 68 3d 22 ..<table width="
0130: 25 31 30 30 22 20 63 65 6c 6c 70 61 64 64 69 6e %100" cellpaddin
0140: 67 3d 22 38 22 20 63 65 6c 6c 73 70 61 63 69 6e g="8" cellspacin
0150: 67 3d 22 38 22 3e 0d 0a 3c 74 72 3e 3c 74 64 3e g="8">..<tr><td>
0160: 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 6c 65 3c ..<b>MakeCircle<
0170: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
0180: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 <i>cy</i>, <i>r
0190: 61 64 69 75 73 3c 2f 69 3e 20 29 3c 62 72 3e 0d adius</i> )<br>.
01a0: 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 6c 65 3c 2f .<b>MakeCircle</
01b0: 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 b> ( <i>cx</i>,
01c0: 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 <i>cy</i>, <i>ra
01d0: 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 dius</i>, <i>sri
01e0: 64 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e d</i> )<br>..<b>
01f0: 4d 61 6b 65 43 69 72 63 6c 65 3c 2f 62 3e 20 28 MakeCircle</b> (
0200: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
0210: 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 y</i>, <i>radius
0220: 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 </i>, <i>srid</i
0230: 3e 2c 20 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 >, <i>step</i> )
0240: 3c 68 72 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 <hr>..Will retur
0250: 6e 20 61 20 63 6c 6f 73 65 64 20 3c 62 3e 4c 69 n a closed <b>Li
0260: 6e 65 73 74 72 69 6e 67 3c 2f 62 3e 20 61 70 70 nestring</b> app
0270: 72 6f 78 69 6d 61 74 69 6e 67 20 61 20 63 69 72 roximating a cir
0280: 63 6c 65 2e 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 cle.<ul>..<li><b
0290: 3e 63 78 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 63 >cx</b> and <b>c
02a0: 79 3c 2f 62 3e 20 61 72 65 20 74 68 65 20 63 6f y</b> are the co
02b0: 6f 72 64 69 6e 61 74 65 73 20 69 64 65 6e 74 69 ordinates identi
02c0: 66 79 69 6e 67 20 74 68 65 20 63 65 6e 74 72 65 fying the centre
02d0: 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 62 6f 74 68 .</li>..<li>both
02e0: 20 3c 62 3e 72 61 64 69 75 73 3c 2f 62 3e 20 61 <b>radius</b> a
02f0: 6e 64 20 3c 62 3e 73 72 69 64 3c 2f 62 3e 20 61 nd <b>srid</b> a
0300: 72 65 20 73 65 6c 66 2d 65 78 70 6c 61 6e 61 74 re self-explanat
0310: 6f 72 79 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 74 ory.</li>..<li>t
0320: 68 65 20 6f 70 74 69 6f 6e 61 6c 20 61 72 67 75 he optional argu
0330: 6d 65 6e 74 20 3c 62 3e 73 74 65 70 3c 2f 62 3e ment <b>step</b>
0340: 20 64 65 66 69 6e 65 73 20 68 6f 77 20 6d 61 6e defines how man
0350: 79 20 70 6f 69 6e 74 73 20 77 69 6c 6c 20 62 65 y points will be
0360: 20 69 6e 74 65 72 70 6f 6c 61 74 65 64 20 6f 6e interpolated on
0370: 20 74 68 65 20 63 75 72 76 65 2e 20 3c 62 3e 73 the curve. <b>s
0380: 74 65 70 3c 2f 62 3e 20 63 6f 72 72 65 73 70 6f tep</b> correspo
0390: 6e 64 73 20 74 6f 20 61 6e 20 3c 75 3e 3c 69 3e nds to an <u><i>
03a0: 61 6e 67 75 6c 61 72 20 64 69 73 74 61 6e 63 65 angular distance
03b0: 3c 2f 69 3e 3c 2f 75 3e 20 6d 65 61 73 75 72 65 </i></u> measure
03c0: 64 20 69 6e 20 3c 75 3e 3c 69 3e 64 65 67 72 65 d in <u><i>degre
03d0: 65 73 3c 2f 69 3e 3c 2f 75 3e 3b 20 74 77 6f 20 es</i></u>; two
03e0: 63 6f 6e 73 65 63 75 74 69 76 65 20 70 6f 69 6e consecutive poin
03f0: 74 73 20 77 69 6c 6c 20 62 65 20 73 65 70 61 72 ts will be separ
0400: 61 74 65 64 20 62 79 20 74 68 69 73 20 64 69 73 ated by this dis
0410: 74 61 6e 63 65 2e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 tance.</li>..</u
0420: 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 20 63 6f 6c l>..</td><td col
0430: 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d 22 span="2" align="
0440: 63 65 6e 74 65 72 22 3e 3c 69 6d 67 20 73 72 63 center"><img src
0450: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
0460: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
0470: 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 ins/circles-elli
0480: 70 73 65 73 2f 63 69 72 63 6c 65 2e 70 6e 67 22 pses/circle.png"
0490: 20 61 6c 74 3d 22 63 69 72 63 6c 65 22 3e 3c 62 alt="circle"><b
04a0: 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a r>..<verbatim>..
04b0: 53 45 4c 45 43 54 20 4d 61 6b 65 43 69 72 63 6c SELECT MakeCircl
04c0: 65 28 30 2c 20 30 2c 20 31 30 30 2c 20 2d 31 2c e(0, 0, 100, -1,
04d0: 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 1);..</verbatim
04e0: 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 ></td></tr>..<tr
04f0: 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c ><td>..<b>MakeEl
0500: 6c 69 70 73 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 lipse</b> ( <i>c
0510: 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e x</i>, <i>cy</i>
0520: 2c 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c , <i>x_axis</i>,
0530: 20 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 20 29 <i>y_axis</i> )
0540: 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c <br>..<b>MakeEll
0550: 69 70 73 65 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 ipse</b> ( <i>cx
0560: 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c </i>, <i>cy</i>,
0570: 20 3c 69 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 <i>x_axis</i>,
0580: 3c 69 3e 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c <i>y_axis</i>, <
0590: 69 3e 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 3e i>srid</i> )<br>
05a0: 0d 0a 3c 62 3e 4d 61 6b 65 45 6c 6c 69 70 73 65 ..<b>MakeEllipse
05b0: 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e </b> ( <i>cx</i>
05c0: 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e , <i>cy</i>, <i>
05d0: 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 x_axis</i>, <i>y
05e0: 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 72 _axis</i>, <i>sr
05f0: 69 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 3c id</i>, <i>step<
0600: 2f 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c 20 /i> )<hr>..Will
0610: 72 65 74 75 72 6e 20 61 20 63 6c 6f 73 65 64 20 return a closed
0620: 3c 62 3e 4c 69 6e 65 73 74 72 69 6e 67 3c 2f 62 <b>Linestring</b
0630: 3e 20 61 70 70 72 6f 78 69 6d 61 74 69 6e 67 20 > approximating
0640: 61 6e 20 65 6c 6c 69 70 73 65 2e 3c 75 6c 3e 0d an ellipse.<ul>.
0650: 0a 3c 6c 69 3e 3c 62 3e 63 78 3c 2f 62 3e 2c 20 .<li><b>cx</b>,
0660: 3c 62 3e 63 79 3c 2f 62 3e 2c 20 3c 62 3e 73 72 <b>cy</b>, <b>sr
0670: 69 64 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 73 74 id</b> and <b>st
0680: 65 70 3c 2f 62 3e 20 68 61 76 65 20 65 78 61 63 ep</b> have exac
0690: 74 6c 79 20 74 68 65 20 73 61 6d 65 20 69 64 65 tly the same ide
06a0: 6e 74 69 63 61 6c 20 6d 65 61 6e 69 6e 67 20 61 ntical meaning a
06b0: 73 20 62 65 66 6f 72 65 2e 3c 2f 6c 69 3e 0d 0a s before.</li>..
06c0: 3c 6c 69 3e 3c 62 3e 78 5f 61 78 69 73 3c 2f 62 <li><b>x_axis</b
06d0: 3e 20 61 6e 64 20 3c 62 3e 79 5f 61 78 69 73 3c > and <b>y_axis<
06e0: 2f 62 3e 20 64 65 66 69 6e 65 20 72 65 73 70 65 /b> define respe
06f0: 63 74 69 76 65 6c 79 20 74 68 65 20 68 6f 72 69 ctively the hori
0700: 7a 6f 6e 74 61 6c 20 61 6e 64 20 76 65 72 74 69 zontal and verti
0710: 63 61 6c 20 61 78 65 73 20 6f 66 20 74 68 65 20 cal axes of the
0720: 65 6c 6c 69 70 73 65 2e 3c 2f 6c 69 3e 0d 0a 3c ellipse.</li>..<
0730: 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c /ul>..</td><td><
0740: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f img src="https:/
0750: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
0760: 2f 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c /gaia-sins/circl
0770: 65 73 2d 65 6c 6c 69 70 73 65 73 2f 65 6c 6c 69 es-ellipses/elli
0780: 70 73 65 2d 31 2e 70 6e 67 22 20 61 6c 74 3d 22 pse-1.png" alt="
0790: 65 6c 6c 69 70 73 65 2d 31 22 3e 3c 62 72 3e 0d ellipse-1"><br>.
07a0: 0a 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c .<verbatim>..SEL
07b0: 45 43 54 20 4d 61 6b 65 45 6c 6c 69 70 73 65 28 ECT MakeEllipse(
07c0: 30 2c 20 30 2c 20 31 30 30 2c 20 35 30 2c 0d 0a 0, 0, 100, 50,..
07d0: 20 20 20 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 -1, 1);..</v
07e0: 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c erbatim></td>..<
07f0: 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 /td><td><img src
0800: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
0810: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
0820: 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 ins/circles-elli
0830: 70 73 65 73 2f 65 6c 6c 69 70 73 65 2d 32 2e 70 pses/ellipse-2.p
0840: 6e 67 22 20 61 6c 74 3d 22 65 6c 6c 69 70 73 65 ng" alt="ellipse
0850: 2d 32 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 -2"><br>..<verba
0860: 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b tim>..SELECT Mak
0870: 65 45 6c 6c 69 70 73 65 28 30 2c 20 30 2c 20 35 eEllipse(0, 0, 5
0880: 30 2c 20 31 30 30 2c 0d 0a 20 20 20 20 2d 31 2c 0, 100,.. -1,
0890: 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 1);..</verbatim
08a0: 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 ></td></tr>..<tr
08b0: 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 41 72 ><td>..<b>MakeAr
08c0: 63 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 c</b> ( <i>cx</i
08d0: 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 >, <i>cy</i>, <i
08e0: 3e 72 61 64 69 75 73 3c 2f 69 3e 2c 20 3c 69 3e >radius</i>, <i>
08f0: 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 start</i>, <i>st
0900: 6f 70 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 op</i> )<br>..<b
0910: 3e 4d 61 6b 65 41 72 63 3c 2f 62 3e 20 28 20 3c >MakeArc</b> ( <
0920: 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 3c i>cx</i>, <i>cy<
0930: 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 3c 2f /i>, <i>radius</
0940: 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 3e i>, <i>start</i>
0950: 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 3c , <i>stop</i>, <
0960: 69 3e 73 72 69 64 3c 2f 69 3e 20 29 3c 62 72 3e i>srid</i> )<br>
0970: 0d 0a 3c 62 3e 4d 61 6b 65 41 72 63 3c 2f 62 3e ..<b>MakeArc</b>
0980: 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 ( <i>cx</i>, <i
0990: 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 >cy</i>, <i>radi
09a0: 75 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 us</i>, <i>start
09b0: 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 </i>, <i>stop</i
09c0: 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 >, <i>srid</i>,
09d0: 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 3c 68 72 <i>step</i> )<hr
09e0: 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 >..Will return a
09f0: 20 3c 62 3e 4c 69 6e 65 73 74 72 69 6e 67 3c 2f <b>Linestring</
0a00: 62 3e 20 61 70 70 72 6f 78 69 6d 61 74 69 6e 67 b> approximating
0a10: 20 61 20 63 69 72 63 75 6c 61 72 20 61 72 63 2e a circular arc.
0a20: 3c 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 63 78 3c <ul>..<li><b>cx<
0a30: 2f 62 3e 2c 20 3c 62 3e 63 79 3c 2f 62 3e 2c 20 /b>, <b>cy</b>,
0a40: 3c 62 3e 72 61 64 69 75 73 3c 2f 62 3e 20 61 6e <b>radius</b> an
0a50: 64 20 3c 62 3e 73 74 65 70 3c 2f 62 3e 20 61 72 d <b>step</b> ar
0a60: 65 20 65 78 61 63 74 6c 79 20 61 73 20 61 62 6f e exactly as abo
0a70: 76 65 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 ve.</li>..<li><b
0a80: 3e 73 74 61 72 74 3c 2f 62 3e 20 61 6e 64 20 3c >start</b> and <
0a90: 62 3e 73 74 6f 70 3c 2f 62 3e 20 64 65 66 69 6e b>stop</b> defin
0aa0: 65 20 74 68 65 20 65 78 74 72 65 6d 65 20 70 6f e the extreme po
0ab0: 69 6e 74 73 20 6f 66 20 74 68 65 20 61 72 63 3b ints of the arc;
0ac0: 20 62 6f 74 68 20 61 72 65 20 3c 75 3e 3c 69 3e both are <u><i>
0ad0: 61 6e 67 6c 65 73 3c 2f 69 3e 3c 2f 75 3e 20 65 angles</i></u> e
0ae0: 78 70 72 65 73 73 65 64 20 69 6e 20 3c 75 3e 3c xpressed in <u><
0af0: 69 3e 64 65 67 72 65 65 73 3c 2f 69 3e 3c 2f 75 i>degrees</i></u
0b00: 3e 2e 20 54 68 65 20 61 72 63 20 77 69 6c 6c 20 >. The arc will
0b10: 62 65 20 61 6c 77 61 79 73 20 64 72 61 77 6e 20 be always drawn
0b20: 69 6e 20 3c 75 3e 3c 69 3e 63 6f 75 6e 74 65 72 in <u><i>counter
0b30: 63 6c 6f 63 6b 77 69 73 65 3c 2f 69 3e 3c 2f 75 clockwise</i></u
0b40: 3e 20 64 69 72 65 63 74 69 6f 6e 2e 3c 2f 6c 69 > direction.</li
0b50: 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c >..</ul>..</td><
0b60: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 td><img src="htt
0b70: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
0b80: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 63 s.it/gaia-sins/c
0b90: 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 2f ircles-ellipses/
0ba0: 61 72 63 2d 31 2e 70 6e 67 22 20 61 6c 74 3d 22 arc-1.png" alt="
0bb0: 61 72 63 2d 31 22 3e 3c 62 72 3e 0d 0a 3c 76 65 arc-1"><br>..<ve
0bc0: 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 rbatim>..SELECT
0bd0: 4d 61 6b 65 41 72 63 28 30 2c 20 30 2c 20 31 30 MakeArc(0, 0, 10
0be0: 30 2c 20 0d 0a 20 20 20 20 33 30 2c 20 31 35 30 0, .. 30, 150
0bf0: 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 , -1, 1);..</ver
0c00: 62 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 batim></td>..</t
0c10: 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 d><td><img src="
0c20: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 https://www.gaia
0c30: 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e -gis.it/gaia-sin
0c40: 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 s/circles-ellips
0c50: 65 73 2f 61 72 63 2d 32 2e 70 6e 67 22 20 61 6c es/arc-2.png" al
0c60: 74 3d 22 61 72 63 2d 32 22 3e 3c 62 72 3e 0d 0a t="arc-2"><br>..
0c70: 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 <verbatim>..SELE
0c80: 43 54 20 4d 61 6b 65 41 72 63 28 30 2c 20 30 2c CT MakeArc(0, 0,
0c90: 20 31 30 30 2c 20 0d 0a 20 20 20 20 33 30 2c 20 100, .. 30,
0ca0: 31 35 30 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 150, -1, 1);..</
0cb0: 76 65 72 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f verbatim></td></
0cc0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 3c tr>..<tr><td>..<
0cd0: 62 3e 4d 61 6b 65 45 6c 6c 69 70 74 69 63 41 72 b>MakeEllipticAr
0ce0: 63 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 c</b> ( <i>cx</i
0cf0: 3e 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 >, <i>cy</i>, <i
0d00: 3e 78 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e >x_axis</i>, <i>
0d10: 79 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 y_axis</i>, <i>s
0d20: 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f tart</i>, <i>sto
0d30: 70 3c 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e p</i> )<br>..<b>
0d40: 4d 61 6b 65 45 6c 6c 69 70 74 69 63 41 72 63 3c MakeEllipticArc<
0d50: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
0d60: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 <i>cy</i>, <i>x
0d70: 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f _axis</i>, <i>y_
0d80: 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 axis</i>, <i>sta
0d90: 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c rt</i>, <i>stop<
0da0: 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e /i>, <i>srid</i>
0db0: 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 )<br>..<b>MakeE
0dc0: 6c 6c 69 70 74 69 63 41 72 63 3c 2f 62 3e 20 28 llipticArc</b> (
0dd0: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
0de0: 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 78 69 73 y</i>, <i>x_axis
0df0: 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 69 73 3c </i>, <i>y_axis<
0e00: 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 /i>, <i>start</i
0e10: 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c 20 >, <i>stop</i>,
0e20: 3c 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 3e <i>srid</i>, <i>
0e30: 73 74 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d 0a step</i> )<hr>..
0e40: 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 3c 62 Will return a <b
0e50: 3e 4c 69 6e 65 73 74 72 69 6e 67 3c 2f 62 3e 20 >Linestring</b>
0e60: 61 70 70 72 6f 78 69 6d 61 74 69 6e 67 20 61 6e approximating an
0e70: 20 65 6c 6c 69 70 74 69 63 20 61 72 63 2e 3c 62 elliptic arc.<b
0e80: 72 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d r>..</td><td><im
0e90: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
0ea0: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
0eb0: 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 aia-sins/circles
0ec0: 2d 65 6c 6c 69 70 73 65 73 2f 65 6c 6c 69 70 74 -ellipses/ellipt
0ed0: 69 63 2d 61 72 63 2d 31 2e 70 6e 67 22 20 61 6c ic-arc-1.png" al
0ee0: 74 3d 22 65 6c 6c 69 70 74 69 63 2d 61 72 63 2d t="elliptic-arc-
0ef0: 31 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 1"><br>..<verbat
0f00: 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 im>..SELECT Make
0f10: 45 6c 6c 69 70 74 69 63 41 72 63 28 30 2c 20 30 EllipticArc(0, 0
0f20: 2c 20 35 30 2c 20 31 30 30 2c 20 0d 0a 20 20 20 , 50, 100, ..
0f30: 20 33 30 2c 20 31 35 30 2c 20 2d 31 2c 20 31 29 30, 150, -1, 1)
0f40: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f ;..</verbatim></
0f50: 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 td>..</td><td><i
0f60: 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f mg src="https://
0f70: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f www.gaia-gis.it/
0f80: 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 gaia-sins/circle
0f90: 73 2d 65 6c 6c 69 70 73 65 73 2f 65 6c 6c 69 70 s-ellipses/ellip
0fa0: 74 69 63 2d 61 72 63 2d 32 2e 70 6e 67 22 20 61 tic-arc-2.png" a
0fb0: 6c 74 3d 22 65 6c 6c 69 70 74 69 63 2d 61 72 63 lt="elliptic-arc
0fc0: 2d 32 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 -2"><br>..<verba
0fd0: 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b tim>..SELECT Mak
0fe0: 65 45 6c 6c 69 70 74 69 63 41 72 63 28 30 2c 20 eEllipticArc(0,
0ff0: 30 2c 20 35 30 2c 20 31 30 30 2c 0d 0a 20 20 20 0, 50, 100,..
1000: 20 31 35 30 2c 20 33 30 2c 20 2d 31 2c 20 31 29 150, 30, -1, 1)
1010: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f ;..</verbatim></
1020: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
1030: 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 75 d>..<b>MakeCircu
1040: 6c 61 72 53 65 63 74 6f 72 3c 2f 62 3e 20 28 20 larSector</b> (
1050: 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 <i>cx</i>, <i>cy
1060: 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 3c </i>, <i>radius<
1070: 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f 69 /i>, <i>start</i
1080: 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 20 29 >, <i>stop</i> )
1090: 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 <br>..<b>MakeCir
10a0: 63 75 6c 61 72 53 65 63 74 6f 72 3c 2f 62 3e 20 cularSector</b>
10b0: 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e ( <i>cx</i>, <i>
10c0: 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 cy</i>, <i>radiu
10d0: 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c s</i>, <i>start<
10e0: 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e /i>, <i>stop</i>
10f0: 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 20 29 3c , <i>srid</i> )<
1100: 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 br>..<b>MakeCirc
1110: 75 6c 61 72 53 65 63 74 6f 72 3c 2f 62 3e 20 28 ularSector</b> (
1120: 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 <i>cx</i>, <i>c
1130: 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 y</i>, <i>radius
1140: 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 3c 2f </i>, <i>start</
1150: 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 3e 2c i>, <i>stop</i>,
1160: 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 3c 69 <i>srid</i>, <i
1170: 3e 73 74 65 70 3c 2f 69 3e 20 29 3c 68 72 3e 0d >step</i> )<hr>.
1180: 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 20 3c .Will return a <
1190: 62 3e 50 6f 6c 79 67 6f 6e 3c 2f 62 3e 20 61 70 b>Polygon</b> ap
11a0: 70 72 6f 78 69 6d 61 74 69 6e 67 20 61 20 63 69 proximating a ci
11b0: 72 63 75 6c 61 72 20 73 65 63 74 6f 72 2e 0d 0a rcular sector...
11c0: 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 </td><td><img sr
11d0: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
11e0: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
11f0: 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d 65 6c 6c sins/circles-ell
1200: 69 70 73 65 73 2f 63 69 72 63 75 6c 61 72 2d 73 ipses/circular-s
1210: 65 63 74 6f 72 2d 31 2e 70 6e 67 22 20 61 6c 74 ector-1.png" alt
1220: 3d 22 63 69 72 63 75 6c 61 72 2d 73 65 63 74 6f ="circular-secto
1230: 72 2d 31 22 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 r-1"><br>..<verb
1240: 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 atim>..SELECT Ma
1250: 6b 65 43 69 72 63 75 6c 61 72 53 65 63 74 6f 72 keCircularSector
1260: 28 30 2c 20 30 2c 20 31 30 30 2c 0d 0a 20 20 20 (0, 0, 100,..
1270: 20 33 33 30 2c 20 33 30 2c 20 2d 31 2c 20 31 29 330, 30, -1, 1)
1280: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f ;..</verbatim></
1290: 74 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 td>..</td><td><i
12a0: 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f mg src="https://
12b0: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f www.gaia-gis.it/
12c0: 67 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 gaia-sins/circle
12d0: 73 2d 65 6c 6c 69 70 73 65 73 2f 63 69 72 63 75 s-ellipses/circu
12e0: 6c 61 72 2d 73 65 63 74 6f 72 2d 32 2e 70 6e 67 lar-sector-2.png
12f0: 22 20 61 6c 74 3d 22 63 69 72 63 75 6c 61 72 2d " alt="circular-
1300: 73 65 63 74 6f 72 2d 32 22 3e 3c 62 72 3e 0d 0a sector-2"><br>..
1310: 3c 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 <verbatim>..SELE
1320: 43 54 20 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 CT MakeCircularS
1330: 65 63 74 6f 72 28 30 2c 20 30 2c 20 31 30 30 2c ector(0, 0, 100,
1340: 0d 0a 20 20 20 20 33 30 2c 20 33 33 30 2c 20 2d .. 30, 330, -
1350: 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 1, 1);..</verbat
1360: 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c im></td></tr>..<
1370: 74 72 3e 3c 74 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 tr><td>..<b>Make
1380: 45 6c 6c 69 70 74 69 63 53 65 63 74 6f 72 3c 2f EllipticSector</
1390: 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 b> ( <i>cx</i>,
13a0: 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f <i>cy</i>, <i>x_
13b0: 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 axis</i>, <i>y_a
13c0: 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 xis</i>, <i>star
13d0: 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f t</i>, <i>stop</
13e0: 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b i> )<br>..<b>Mak
13f0: 65 45 6c 6c 69 70 74 69 63 53 65 63 74 6f 72 3c eEllipticSector<
1400: 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c /b> ( <i>cx</i>,
1410: 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 <i>cy</i>, <i>x
1420: 5f 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f _axis</i>, <i>y_
1430: 61 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 axis</i>, <i>sta
1440: 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c rt</i>, <i>stop<
1450: 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e /i>, <i>srid</i>
1460: 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 45 )<br>..<b>MakeE
1470: 6c 6c 69 70 74 69 63 53 65 63 74 6f 72 3c 2f 62 llipticSector</b
1480: 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c > ( <i>cx</i>, <
1490: 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 78 5f 61 i>cy</i>, <i>x_a
14a0: 78 69 73 3c 2f 69 3e 2c 20 3c 69 3e 79 5f 61 78 xis</i>, <i>y_ax
14b0: 69 73 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 is</i>, <i>start
14c0: 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 </i>, <i>stop</i
14d0: 3e 2c 20 3c 69 3e 73 72 69 64 3c 2f 69 3e 2c 20 >, <i>srid</i>,
14e0: 3c 69 3e 73 74 65 70 3c 2f 69 3e 20 29 3c 68 72 <i>step</i> )<hr
14f0: 3e 0d 0a 57 69 6c 6c 20 72 65 74 75 72 6e 20 61 >..Will return a
1500: 20 3c 62 3e 50 6f 6c 79 67 6f 6e 3c 2f 62 3e 20 <b>Polygon</b>
1510: 61 70 70 72 6f 78 69 6d 61 74 69 6e 67 20 61 6e approximating an
1520: 20 65 6c 6c 69 70 74 69 63 20 73 65 63 74 6f 72 elliptic sector
1530: 2e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d 67 ...</td><td><img
1540: 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 src="https://ww
1550: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 w.gaia-gis.it/ga
1560: 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 2d ia-sins/circles-
1570: 65 6c 6c 69 70 73 65 73 2f 65 6c 6c 69 70 74 69 ellipses/ellipti
1580: 63 2d 73 65 63 74 6f 72 2d 31 2e 70 6e 67 22 20 c-sector-1.png"
1590: 61 6c 74 3d 22 65 6c 6c 69 70 74 69 63 2d 73 65 alt="elliptic-se
15a0: 63 74 6f 72 2d 31 22 3e 3c 62 72 3e 0d 0a 3c 76 ctor-1"><br>..<v
15b0: 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 erbatim>..SELECT
15c0: 20 4d 61 6b 65 45 6c 6c 69 70 74 69 63 53 65 63 MakeEllipticSec
15d0: 74 6f 72 28 30 2c 20 30 2c 20 31 30 30 2c 20 35 tor(0, 0, 100, 5
15e0: 30 2c 0d 0a 20 20 20 20 33 33 30 2c 20 33 30 2c 0,.. 330, 30,
15f0: 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 62 -1, 1);..</verb
1600: 61 74 69 6d 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 64 atim></td>..</td
1610: 3e 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 ><td><img src="h
1620: 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d ttps://www.gaia-
1630: 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 gis.it/gaia-sins
1640: 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 /circles-ellipse
1650: 73 2f 65 6c 6c 69 70 74 69 63 2d 73 65 63 74 6f s/elliptic-secto
1660: 72 2d 32 2e 70 6e 67 22 20 61 6c 74 3d 22 65 6c r-2.png" alt="el
1670: 6c 69 70 74 69 63 2d 73 65 63 74 6f 72 2d 32 22 liptic-sector-2"
1680: 3e 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d ><br>..<verbatim
1690: 3e 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 45 6c >..SELECT MakeEl
16a0: 6c 69 70 74 69 63 53 65 63 74 6f 72 28 30 2c 20 lipticSector(0,
16b0: 30 2c 20 31 30 30 2c 20 35 30 2c 0d 0a 20 20 20 0, 100, 50,..
16c0: 20 33 30 2c 20 33 33 30 2c 20 2d 31 2c 20 31 29 30, 330, -1, 1)
16d0: 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f ;..</verbatim></
16e0: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 td></tr>..<tr><t
16f0: 64 3e 0d 0a 3c 62 3e 4d 61 6b 65 43 69 72 63 75 d>..<b>MakeCircu
1700: 6c 61 72 53 74 72 69 70 65 3c 2f 62 3e 20 28 20 larStripe</b> (
1710: 3c 69 3e 63 78 3c 2f 69 3e 2c 20 3c 69 3e 63 79 <i>cx</i>, <i>cy
1720: 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 5f </i>, <i>radius_
1730: 31 3c 2f 69 3e 2c 20 3c 69 3e 72 61 64 69 75 73 1</i>, <i>radius
1740: 5f 32 3c 2f 69 3e 2c 20 3c 69 3e 73 74 61 72 74 _2</i>, <i>start
1750: 3c 2f 69 3e 2c 20 3c 69 3e 73 74 6f 70 3c 2f 69 </i>, <i>stop</i
1760: 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 6b 65 > )<br>..<b>Make
1770: 43 69 72 63 75 6c 61 72 53 74 72 69 70 65 3c 2f CircularStripe</
1780: 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e 2c 20 b> ( <i>cx</i>,
1790: 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e 72 61 <i>cy</i>, <i>ra
17a0: 64 69 75 73 5f 31 3c 2f 69 3e 2c 20 3c 69 3e 72 dius_1</i>, <i>r
17b0: 61 64 69 75 73 5f 32 3c 2f 69 3e 2c 20 3c 69 3e adius_2</i>, <i>
17c0: 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e 73 74 start</i>, <i>st
17d0: 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 64 3c op</i>, <i>srid<
17e0: 2f 69 3e 20 29 3c 62 72 3e 0d 0a 3c 62 3e 4d 61 /i> )<br>..<b>Ma
17f0: 6b 65 43 69 72 63 75 6c 61 72 53 74 72 69 70 65 keCircularStripe
1800: 3c 2f 62 3e 20 28 20 3c 69 3e 63 78 3c 2f 69 3e </b> ( <i>cx</i>
1810: 2c 20 3c 69 3e 63 79 3c 2f 69 3e 2c 20 3c 69 3e , <i>cy</i>, <i>
1820: 72 61 64 69 75 73 5f 31 3c 2f 69 3e 2c 20 3c 69 radius_1</i>, <i
1830: 3e 72 61 64 69 75 73 5f 32 3c 2f 69 3e 2c 20 3c >radius_2</i>, <
1840: 69 3e 73 74 61 72 74 3c 2f 69 3e 2c 20 3c 69 3e i>start</i>, <i>
1850: 73 74 6f 70 3c 2f 69 3e 2c 20 3c 69 3e 73 72 69 stop</i>, <i>sri
1860: 64 3c 2f 69 3e 2c 20 3c 69 3e 73 74 65 70 3c 2f d</i>, <i>step</
1870: 69 3e 20 29 3c 68 72 3e 0d 0a 57 69 6c 6c 20 72 i> )<hr>..Will r
1880: 65 74 75 72 6e 20 61 20 3c 62 3e 50 6f 6c 79 67 eturn a <b>Polyg
1890: 6f 6e 3c 2f 62 3e 20 64 65 6c 69 6d 69 74 65 64 on</b> delimited
18a0: 20 62 79 20 74 77 6f 20 63 69 72 63 75 6c 61 72 by two circular
18b0: 20 61 72 63 73 20 73 68 61 72 69 6e 67 20 74 68 arcs sharing th
18c0: 65 20 73 61 6d 65 20 63 65 6e 74 72 65 20 62 75 e same centre bu
18d0: 74 20 68 61 76 69 6e 67 20 64 69 66 66 65 72 65 t having differe
18e0: 6e 74 20 72 61 64 69 69 2e 0d 0a 3c 2f 74 64 3e nt radii...</td>
18f0: 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 <td><img src="ht
1900: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
1910: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
1920: 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 73 circles-ellipses
1930: 2f 63 69 72 63 75 6c 61 72 2d 73 74 72 69 70 65 /circular-stripe
1940: 2d 31 2e 70 6e 67 22 20 61 6c 74 3d 22 63 69 72 -1.png" alt="cir
1950: 63 75 6c 61 72 2d 73 74 72 69 70 65 2d 31 22 3e cular-stripe-1">
1960: 3c 62 72 3e 0d 0a 3c 76 65 72 62 61 74 69 6d 3e <br>..<verbatim>
1970: 0d 0a 53 45 4c 45 43 54 20 4d 61 6b 65 43 69 72 ..SELECT MakeCir
1980: 63 75 6c 61 72 53 74 72 69 70 65 28 30 2c 20 30 cularStripe(0, 0
1990: 2c 20 31 30 30 2c 20 39 30 2c 0d 0a 20 20 20 20 , 100, 90,..
19a0: 34 35 2c 20 33 31 35 2c 20 2d 31 2c 20 31 29 3b 45, 315, -1, 1);
19b0: 0d 0a 3c 2f 76 65 72 62 61 74 69 6d 3e 3c 2f 74 ..</verbatim></t
19c0: 64 3e 0d 0a 3c 2f 74 64 3e 3c 74 64 3e 3c 69 6d d>..</td><td><im
19d0: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
19e0: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
19f0: 61 69 61 2d 73 69 6e 73 2f 63 69 72 63 6c 65 73 aia-sins/circles
1a00: 2d 65 6c 6c 69 70 73 65 73 2f 63 69 72 63 75 6c -ellipses/circul
1a10: 61 72 2d 73 74 72 69 70 65 2d 32 2e 70 6e 67 22 ar-stripe-2.png"
1a20: 20 61 6c 74 3d 22 63 69 72 63 75 6c 61 72 2d 73 alt="circular-s
1a30: 74 72 69 70 65 2d 32 22 3e 3c 62 72 3e 0d 0a 3c tripe-2"><br>..<
1a40: 76 65 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 verbatim>..SELEC
1a50: 54 20 4d 61 6b 65 43 69 72 63 75 6c 61 72 53 74 T MakeCircularSt
1a60: 72 69 70 65 28 30 2c 20 30 2c 20 35 30 2c 20 31 ripe(0, 0, 50, 1
1a70: 35 30 2c 0d 0a 20 20 20 20 33 31 35 2c 20 34 35 50,.. 315, 45
1a80: 2c 20 2d 31 2c 20 31 29 3b 0d 0a 3c 2f 76 65 72 , -1, 1);..</ver
1a90: 62 61 74 69 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e batim></td></tr>
1aa0: 0d 0a 3c 74 72 3e 3c 74 64 3e 41 6e 79 20 66 75 ..<tr><td>Any fu
1ab0: 6e 63 74 69 6f 6e 20 73 75 70 70 6f 72 74 69 6e nction supportin
1ac0: 67 20 63 69 72 63 6c 65 73 20 61 6e 64 20 65 6c g circles and el
1ad0: 6c 69 70 73 65 73 20 63 6f 75 6c 64 20 6f 62 76 lipses could obv
1ae0: 69 6f 75 73 6c 79 20 62 65 20 6e 65 73 74 65 64 iously be nested
1af0: 20 77 69 74 68 20 61 6e 79 20 6f 74 68 65 72 20 with any other
1b00: 53 70 61 74 69 61 6c 20 53 51 4c 20 66 75 6e 63 Spatial SQL func
1b10: 74 69 6f 6e 20 73 6f 20 74 6f 20 67 65 74 20 6d tion so to get m
1b20: 6f 72 65 20 65 6c 61 62 6f 72 61 74 65 20 72 65 ore elaborate re
1b30: 73 75 6c 74 73 2e 3c 62 72 3e 0d 0a 65 2e 67 2e sults.<br>..e.g.
1b40: 20 3c 62 3e 52 6f 74 61 74 65 43 6f 6f 72 64 73 <b>RotateCoords
1b50: 28 29 3c 2f 62 3e 20 61 6e 64 20 3c 62 3e 53 68 ()</b> and <b>Sh
1b60: 69 66 74 43 6f 6f 72 64 73 28 29 3c 2f 62 3e 20 iftCoords()</b>
1b70: 63 6f 75 6c 64 20 62 65 20 69 6e 76 6f 6b 65 64 could be invoked
1b80: 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 61 70 70 in order to app
1b90: 6c 79 20 61 6e 20 61 72 62 69 74 72 61 72 79 20 ly an arbitrary
1ba0: 3c 75 3e 3c 69 3e 72 6f 74 6f 2d 74 72 61 6e 73 <u><i>roto-trans
1bb0: 6c 61 74 69 6f 6e 3c 2f 69 3e 3c 2f 75 3e 2e 0d lation</i></u>..
1bc0: 0a 3c 2f 74 64 3e 3c 74 64 20 63 6f 6c 73 70 61 .</td><td colspa
1bd0: 6e 3d 22 32 22 20 61 6c 69 67 6e 3d 22 63 65 6e n="2" align="cen
1be0: 74 65 72 22 3e 3c 69 6d 67 20 73 72 63 3d 22 68 ter"><img src="h
1bf0: 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d ttps://www.gaia-
1c00: 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 gis.it/gaia-sins
1c10: 2f 63 69 72 63 6c 65 73 2d 65 6c 6c 69 70 73 65 /circles-ellipse
1c20: 73 2f 74 69 6c 74 2d 65 6c 6c 69 70 73 65 2e 70 s/tilt-ellipse.p
1c30: 6e 67 22 20 61 6c 74 3d 22 74 69 6c 74 2d 65 6c ng" alt="tilt-el
1c40: 6c 69 70 73 65 22 3e 3c 62 72 3e 0d 0a 3c 76 65 lipse"><br>..<ve
1c50: 72 62 61 74 69 6d 3e 0d 0a 53 45 4c 45 43 54 20 rbatim>..SELECT
1c60: 52 6f 74 61 74 65 43 6f 6f 72 64 73 28 20 4d 61 RotateCoords( Ma
1c70: 6b 65 45 6c 6c 69 70 73 65 28 30 2c 20 30 2c 20 keEllipse(0, 0,
1c80: 31 30 30 2c 20 32 30 2c 20 2d 31 2c 20 31 29 2c 100, 20, -1, 1),
1c90: 20 34 35 29 3b 0d 0a 3c 2f 76 65 72 62 61 74 69 45);..</verbati
1ca0: 6d 3e 3c 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 2f m></td></tr>..</
1cb0: 74 61 62 6c 65 3e 0d 0a 0d 0a 3c 68 72 3e 3c 62 table>....<hr><b
1cc0: 72 3e 0d 0a 62 61 63 6b 20 74 6f 20 3c 61 20 68 r>..back to <a h
1cd0: 72 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 ref="https://www
1ce0: 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 .gaia-gis.it/fos
1cf0: 73 69 6c 2f 6c 69 62 73 70 61 74 69 61 6c 69 74 sil/libspatialit
1d00: 65 2f 77 69 6b 69 3f 6e 61 6d 65 3d 34 2e 31 2e e/wiki?name=4.1.
1d10: 30 2b 43 68 61 6e 67 65 73 22 3e 34 2e 31 2e 30 0+Changes">4.1.0
1d20: 2d 63 68 61 6e 67 65 73 3c 2f 61 3e 0a 5a 20 32 -changes</a>.Z 2
1d30: 37 62 35 64 34 36 36 37 35 65 64 38 65 35 62 34 7b5d46675ed8e5b4
1d40: 37 65 39 62 30 31 66 65 30 31 35 39 66 65 35 0a 7e9b01fe0159fe5.