<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archives des Geomatics - dbi Blog</title>
	<atom:link href="https://www.dbi-services.com/blog/tag/geomatics/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbi-services.com/blog/tag/geomatics/</link>
	<description></description>
	<lastBuildDate>Mon, 03 Jun 2013 00:44:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2025/05/cropped-favicon_512x512px-min-32x32.png</url>
	<title>Archives des Geomatics - dbi Blog</title>
	<link>https://www.dbi-services.com/blog/tag/geomatics/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SQL Server 2012: CompoundCurve &#8211; a new geospatial feature</title>
		<link>https://www.dbi-services.com/blog/sql-server-2012-compoundcurve-a-new-geospatial-feature/</link>
					<comments>https://www.dbi-services.com/blog/sql-server-2012-compoundcurve-a-new-geospatial-feature/#respond</comments>
		
		<dc:creator><![CDATA[Stéphane Haby]]></dc:creator>
		<pubDate>Mon, 03 Jun 2013 00:44:00 +0000</pubDate>
				<category><![CDATA[Database management]]></category>
		<category><![CDATA[CompoundCurve]]></category>
		<category><![CDATA[Geomatics]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<guid isPermaLink="false">https://www.dbi-services.com/blog/sql-server-2012-compoundcurve-a-new-geospatial-feature/</guid>

					<description><![CDATA[<p>There are three new geospatial features in Microsoft SQL Server 2012: CircularString, CurvePolygon, and CompoundCurve. For the fun and as an example, I will test CompoundCurve, a set of circular strings that may be combined with line strings, and store a &#8220;dbi&#8221; character set in a table.:-D What is CompoundCurve? It&#8217;s a set of circular [&#8230;]</p>
<p>L’article <a href="https://www.dbi-services.com/blog/sql-server-2012-compoundcurve-a-new-geospatial-feature/">SQL Server 2012: CompoundCurve &#8211; a new geospatial feature</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="blog-image aligncenter" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/2e1ax_default_entry_SQLServer2012.jpg" alt="" /></p>
<p>There are three new geospatial features in Microsoft SQL Server 2012: CircularString, CurvePolygon, and CompoundCurve. For the fun and as an example, I will test CompoundCurve, a set of circular strings that may be combined with line strings, and store a &#8220;dbi&#8221; character set in a table.:-D</p>
<h3>What is CompoundCurve?</h3>
<p>It&#8217;s a set of circular strings, or circular strings combined with line strings, that form a desired curved shape. The end point of each element in the collection must match the starting point of the following element, so that compound curves are defined in a “connect-the-dots” fashion.</p>
<p>To be valid it must meet the following criteria:</p>
<ul>
<li>It must contain at least one CircularString or LineString instance</li>
<li>The sequence of CircularString or LineString instances must be continuous</li>
<li>See <a href="http://msdn.microsoft.com/fr-fr/library/ff929165.aspx">msdn definition</a></li>
</ul>
<h3></h3>
<h3>Creating a table to store the &#8220;dbi&#8221; character set</h3>
<p>We have to create a simple geometry column table to store the &#8220;dbi&#8221; character set:</p>
<p><span style="font-size: 11pt;line-height: 107%;font-family: 'Calibri','sans-serif'"><a class="easyblog-thumb-preview" title="Geometry-CreateTable.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-CreateTable.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-CreateTable.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-CreateTable.jpg" alt="b2ap3_thumbnail_Geometry-CreateTable.jpg" /></a></span></p>
<h3>Creating the &#8220;d&#8221;</h3>
<p>The first step is to create the &#8220;d&#8221; from dbi. The &#8220;d&#8221; character is made of an arc and a line.<br />
An arc is defined with the command CircularString. For more information on CircularString, go to <a href="http://msdn.microsoft.com/fr-fr/library/ff929141.aspx">msdn reference</a></p>
<p>Let&#8217;s define 3 points for the &#8220;d&#8221; arc:</p>
<p><a title="Geometry-D-arc.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-D-arc.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-D-arc.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-D-arc.jpg" alt="b2ap3_thumbnail_Geometry-D-arc.jpg" /></a></p>
<p>The second is the line and I use the command LineString. For more information about LineString, go to <a href="http://msdn.microsoft.com/fr-fr/library/bb895372.aspx">msdn reference.</a><br />
Let&#8217;s define 2 points for the &#8220;d&#8221; line:</p>
<p><a title="Geometry-D-Line.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-D-Line.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-D-Line.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-D-Line.jpg" alt="b2ap3_thumbnail_Geometry-D-Line.jpg" /></a></p>
<p>To create the &#8220;d&#8221;, you have to add the 2 previous geometries with a STUnion option.<br />
For more information about STUnion, go to <a href="http://msdn.microsoft.com/en-us/library/bb933914(v=sql.110).aspx">msdn reference.</a></p>
<p><a title="Geometry-D-classique.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-D-classique.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-D-classique.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-D-classique.jpg" alt="b2ap3_thumbnail_Geometry-D-classique.jpg" /></a></p>
<p>This is a classical way to create a &#8220;d&#8221;, but in SQL server 2012, you can can use the CompoundCurve feature for this.<br />
CompoundCurve is the combination of the features CircularString and LineString.</p>
<p><a title="Geometry-D-compoundcurve.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-D-compoundcurve.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-D-compoundcurve.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-D-compoundcurve.jpg" alt="b2ap3_thumbnail_Geometry-D-compoundcurve.jpg" /></a></p>
<p>Notice that you don&#8217;t need to use the LineString command, it&#8217;s implied.</p>
<h3>Creating the &#8220;b&#8221;</h3>
<p>On the same principle, let&#8217;s create the &#8220;b&#8221; from dbi.</p>
<p><a title="Geometry-B-compoundcurve.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-B-compoundcurve.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-B-compoundcurve.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-B-compoundcurve.jpg" alt="b2ap3_thumbnail_Geometry-B-compoundcurve.jpg" /></a></p>
<p>&nbsp;</p>
<h3>Creating the &#8220;i&#8221;</h3>
<p>For the &#8220;i&#8221;, you needa simple point and the command LineString.</p>
<p><a title="Geometry-I-point.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-I-point.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-I-point.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-I-point.jpg" alt="b2ap3_thumbnail_Geometry-I-point.jpg" /></a></p>
<p><a title="Geometry-I-Line.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-I-Line.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-I-Line.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-I-Line.jpg" alt="b2ap3_thumbnail_Geometry-I-Line.jpg" /></a></p>
<h3>Insert the &#8220;dbi&#8221; character set in the table</h3>
<p>Now that you have created all geometries for the character set, you can concat all geometries with the STUnion feature and insert them in the table.</p>
<p><a title="Geometry-insert.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-insert.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-insert.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-insert.jpg" alt="b2ap3_thumbnail_Geometry-insert.jpg" /></a></p>
<p>Finally, you can display the table with a simple select &#8211; and there is our &#8220;dbi&#8221; character set in the spatial result:<br />
<a title="Geometry-table-select.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-table-select.jpg"><img decoding="async" title="b2ap3_thumbnail_Geometry-table-select.jpg" src="https://www.dbi-services.com/blog/wp-content/uploads/sites/2/2022/04/b2ap3_thumbnail_Geometry-table-select.jpg" alt="b2ap3_thumbnail_Geometry-table-select.jpg" /></a></p>
<h3>Conclusion</h3>
<p>It&#8217;s very easy to use the CompoundCurve features and it&#8217;s funny to play with geometrical features.<a title="Geometry-table-select.jpg" href="http://dbi-services.com/blog/images/easyblog_images/88/Geometry-table-select.jpg"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></a></p>
<p>L’article <a href="https://www.dbi-services.com/blog/sql-server-2012-compoundcurve-a-new-geospatial-feature/">SQL Server 2012: CompoundCurve &#8211; a new geospatial feature</a> est apparu en premier sur <a href="https://www.dbi-services.com/blog">dbi Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbi-services.com/blog/sql-server-2012-compoundcurve-a-new-geospatial-feature/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)

Served from: www.dbi-services.com @ 2026-10-17 15:27:12 by W3 Total Cache
-->