[英]SQL Server 2008 R2 to create circle
I am using SQL Server 2008 R2 and I would like to use CIRCULARSTRING to draw a circle. 我正在使用SQL Server 2008 R2,并且想使用CIRCULARSTRING画一个圆。 I could use the POINT and STBuffer but then the circle is filled with a color, while I want the outline.
我可以使用POINT和STBuffer,但是然后用想要的轮廓填充颜色。 Trying to use the CIRCULARSTRING I get an error message:
尝试使用CIRCULARSTRING我收到一条错误消息:
label CIRCULARSTRING(2 0, in the input well-known text (WKT) is not valid. Valid labels are
标签CIRCULARSTRING(2 0,在输入的已知文本(WKT)中无效。有效的标签是
So I read that this is a feature in SQL Server 2012. 因此,我读到这是SQL Server 2012中的功能。
My questions: 我的问题:
Thanks 谢谢
This function is presented in SQL Server 2012 (see link below). SQL Server 2012中提供了此功能(请参阅下面的链接)。
You can create custom function to calculate coordinates of point on the circle. 您可以创建自定义函数来计算圆上点的坐标。 It can be
TSQL
(not sure you can do it) or clr
(sure this is better way). 可以是
TSQL
(不确定是否可以这样做)或clr
(确保这是更好的方法)。
No. 没有。
See also this question . 另请参阅此问题 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.