<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>SQL Server Spatial Tools</title><link>http://sqlspatialtools.codeplex.com/project/feeds/rss</link><description>This project is a collection of tools for use with the spatial types that are new to SQL Server 2008.  This project does not provide an end-user application, but rather a set of reusable functions which applications can make use of.      These functions may include data conversion routines, new transformations, aggregates, etc.  Please feel free to suggest additional functionality.      This project is sponsored by Microsoft, but we welcome outside developers. </description><item><title>Closed Issue: using GeographyCollectionAggregate on set of points that exceed hemispehere limit raise Exception [3737]</title><link>http://sqlspatialtools.codeplex.com/workitem/3737</link><description>When using GeographyCollectionAggregate or GeographyUnionAggregate on set of points that exceed the hemisphere limit an Exception is raised. What would be better is if NULL is returned as this would match the behaviour of STUnion and would make the aggregate classes more usable.&lt;br /&gt;&amp;#160;&lt;br /&gt;For example&amp;#58; -&lt;br /&gt;&amp;#160;&lt;br /&gt;declare &amp;#64;x geography &amp;#61; &amp;#39;MULTIPOINT &amp;#40;&amp;#40;0 1&amp;#41;, &amp;#40;90 1&amp;#41;, &amp;#40;180 1&amp;#41;, &amp;#40;270 1&amp;#41;&amp;#41;&amp;#39;&amp;#59;&lt;br /&gt;declare &amp;#64;y geography &amp;#61; &amp;#39;POINT &amp;#40;45 1&amp;#41;&amp;#39;&amp;#59;&lt;br /&gt;&amp;#160;&lt;br /&gt;select &amp;#64;x.STUnion&amp;#40;&amp;#64;y&amp;#41;&lt;br /&gt;&amp;#160;&lt;br /&gt;This returns NULL because by unioning &amp;#64;y to &amp;#64;x the new geography exceeds the hemisphere limit.&lt;br /&gt;&amp;#160;&lt;br /&gt;However if using, say GeographyCollectionAggregate, like so&amp;#58; -&lt;br /&gt;&amp;#160;&lt;br /&gt;declare &amp;#64;t table &amp;#40;&lt;br /&gt;&amp;#9;name varchar&amp;#40;max&amp;#41;,&lt;br /&gt;&amp;#9;position geography&lt;br /&gt;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#160;&lt;br /&gt;insert into &amp;#64;t &amp;#40;name, position&amp;#41; values &amp;#40;&amp;#39;object 1&amp;#39;, &amp;#39;POINT &amp;#40;0 1&amp;#41;&amp;#39; &amp;#41;&amp;#59;&lt;br /&gt;insert into &amp;#64;t &amp;#40;name, position&amp;#41; values &amp;#40;&amp;#39;object 1&amp;#39;, &amp;#39;POINT &amp;#40;90 1&amp;#41;&amp;#39; &amp;#41;&amp;#59;&lt;br /&gt;insert into &amp;#64;t &amp;#40;name, position&amp;#41; values &amp;#40;&amp;#39;object 1&amp;#39;, &amp;#39;POINT &amp;#40;180 1&amp;#41;&amp;#39; &amp;#41;&amp;#59;&lt;br /&gt;insert into &amp;#64;t &amp;#40;name, position&amp;#41; values &amp;#40;&amp;#39;object 1&amp;#39;, &amp;#39;POINT &amp;#40;270 1&amp;#41;&amp;#39; &amp;#41;&amp;#59;&lt;br /&gt;&amp;#47;&amp;#42; including this point causes hemisphere limit Exception &amp;#42;&amp;#47;&lt;br /&gt;insert into &amp;#64;t &amp;#40;name, position&amp;#41; values &amp;#40;&amp;#39;object 1&amp;#39;, &amp;#39;POINT &amp;#40;45 1&amp;#41;&amp;#39; &amp;#41;&amp;#59;&lt;br /&gt;&amp;#160;&lt;br /&gt;select name, dbo.GeographyCollectionAggregate&amp;#40;position&amp;#41; &amp;#39;locus&amp;#39;&lt;br /&gt;from &amp;#64;t&lt;br /&gt;group by name&lt;br /&gt;&amp;#160;&lt;br /&gt;The inclusion of the POINT&amp;#40;45 1&amp;#41; forces the &amp;#39;locus&amp;#39; value to exceed the hemisphere limit but instead of returning NULL a GLArgumentException is raised.&lt;br /&gt;</description><author>bsdz</author><pubDate>Thu, 16 May 2013 10:24:36 GMT</pubDate><guid isPermaLink="false">Closed Issue: using GeographyCollectionAggregate on set of points that exceed hemispehere limit raise Exception [3737] 20130516102436A</guid></item><item><title>Created Issue: Implement a method to export each geography in a resultset as a KML placemark fragment [10777]</title><link>http://sqlspatialtools.codeplex.com/workitem/10777</link><description>Often when working with more than one row of data in a sql resultset, you want to return a fragment of KML, not a entire well formed  kml document. &lt;br /&gt;&lt;br /&gt;I would like to suggest that the spatial tools library implement an additional export method that just return a  element as xml and optionally takes a parameter of xml to include as an  node.&lt;br /&gt;</description><author>Bigjimslade</author><pubDate>Tue, 29 Jan 2013 05:09:12 GMT</pubDate><guid isPermaLink="false">Created Issue: Implement a method to export each geography in a resultset as a KML placemark fragment [10777] 20130129050912A</guid></item><item><title>Patch Uploaded: #13750</title><link>http://sqlspatialtools.codeplex.com/SourceControl/list/patches</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/Bigjimslade'&gt;Bigjimslade&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;This patch corrects a missing namespace in the KMLFunctions.cs that prevents registration of the KML functions in SQL Server. I also changed the methods to return proper xml as suggested &lt;br /&gt;in &amp;#35;8717&lt;br /&gt;&lt;br /&gt;Finally, the register and unregister scripts have been updated to include the kml functions.&lt;/p&gt;</description><author>Bigjimslade</author><pubDate>Tue, 29 Jan 2013 04:47:28 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #13750 20130129044728A</guid></item><item><title>New Post: Project Status</title><link>http://sqlspatialtools.codeplex.com/discussions/431141</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;ok great I was trying to use the KML Features and it looks like there is a minoor issue with using it I think i have a fix would it be possible to get added as a developer?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>Bigjimslade</author><pubDate>Mon, 28 Jan 2013 18:57:02 GMT</pubDate><guid isPermaLink="false">New Post: Project Status 20130128065702P</guid></item><item><title>New Post: Project Status</title><link>http://sqlspatialtools.codeplex.com/discussions/431141</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;We’ve just finished rolling up most of the features in this project into SQL Server 2012 and are now doing the same for the Windows Azure SQL Database (formerly SQL Azure). This project will remain active on CodePlex
 while we determine what features to add next after we finish the SQL and Azure synchronizations.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; Bigjimslade [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Monday, January 28, 2013 10:44 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Ed Katibah&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Project Status [sqlspatialtools:431141]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: Bigjimslade&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;What is the status of this project? is anyone still doing active development?&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>edwink</author><pubDate>Mon, 28 Jan 2013 18:54:05 GMT</pubDate><guid isPermaLink="false">New Post: Project Status 20130128065405P</guid></item><item><title>New Post: Project Status</title><link>http://sqlspatialtools.codeplex.com/discussions/431141</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;What is the status of this project? is anyone still doing active development?&lt;/p&gt;
&lt;/div&gt;</description><author>Bigjimslade</author><pubDate>Mon, 28 Jan 2013 18:44:01 GMT</pubDate><guid isPermaLink="false">New Post: Project Status 20130128064401P</guid></item><item><title>New Post: Showing two spatial columns in the spatial results together</title><link>http://sqlspatialtools.codeplex.com/discussions/404916</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;works like a charm!&lt;/p&gt;
&lt;p&gt;Thank you very much&lt;/p&gt;
&lt;/div&gt;</description><author>Viking42</author><pubDate>Fri, 30 Nov 2012 07:50:22 GMT</pubDate><guid isPermaLink="false">New Post: Showing two spatial columns in the spatial results together 20121130075022A</guid></item><item><title>New Post: Showing two spatial columns in the spatial results together</title><link>http://sqlspatialtools.codeplex.com/discussions/404916</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;You could try something like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-autospace:none"&gt;&lt;span style="font-family:"&gt;select&lt;/span&gt;&lt;span style="font-family:"&gt;
&lt;span style="color:blue"&gt;top&lt;/span&gt; 100 &lt;span style="color:blue"&gt;geography&lt;/span&gt;&lt;span style="color:gray"&gt;::&lt;/span&gt;Point&lt;span style="color:gray"&gt;(&lt;/span&gt;ddLatitude&lt;span style="color:gray"&gt;,&lt;/span&gt; ddLongitude&lt;span style="color:gray"&gt;,&lt;/span&gt; 4326&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:blue"&gt;as&lt;/span&gt; point&lt;span style="color:gray"&gt;,&lt;/span&gt; geom &lt;span style="color:blue"&gt;
into&lt;/span&gt; #foo&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-autospace:none"&gt;&lt;span style="font-family:"&gt;&lt;span style="color:blue"&gt;from&lt;/span&gt; Area&lt;span style="color:gray"&gt;,&lt;/span&gt; Position&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-autospace:none"&gt;&lt;span style="font-family:"&gt;&lt;span style="color:blue"&gt;where&lt;/span&gt;
&lt;span style="color:blue"&gt;geography&lt;/span&gt;&lt;span style="color:gray"&gt;::&lt;/span&gt;Point&lt;span style="color:gray"&gt;(&lt;/span&gt;ddLatitude&lt;span style="color:gray"&gt;,&lt;/span&gt; ddLongitude&lt;span style="color:gray"&gt;,&lt;/span&gt; 4326&lt;span style="color:gray"&gt;).&lt;/span&gt;STIntersects&lt;span style="color:gray"&gt;(&lt;/span&gt;Area&lt;span style="color:gray"&gt;.&lt;/span&gt;geom&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:gray"&gt;=&lt;/span&gt; 0 &lt;/span&gt;&lt;/p&gt;
&lt;p style="text-autospace:none"&gt;&lt;span style="font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-autospace:none"&gt;&lt;span style="font-family:"&gt;select&lt;/span&gt;&lt;span style="font-family:"&gt; point&lt;span style="color:gray"&gt;.&lt;/span&gt;STBuffer&lt;span style="color:gray"&gt;(&lt;/span&gt;1000&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:blue"&gt;from&lt;/span&gt; #foo&lt;/span&gt;&lt;/p&gt;
&lt;p style="text-autospace:none"&gt;&lt;span style="font-family:"&gt;union&lt;/span&gt;&lt;span style="font-family:"&gt;
&lt;span style="color:gray"&gt;all&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:"&gt;select&lt;/span&gt;&lt;span style="font-family:"&gt; geom &lt;span style="color:blue"&gt;
from&lt;/span&gt; #foo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;The general approach would be to populate a temporary table with the output from the select (into #foo). Then you can logically merge the two spatial columns in #foo using the union all command.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Note the simplified point constructor, Point(). When you are using the geography type and the Point() method in argument list is LATITUDE, LONGITUDE, SRID.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Please let us know if this answers your question.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;-Ed&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; Viking42 [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Wednesday, November 28, 2012 8:44 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Ed Katibah&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Showing two spatial columns in the spatial results together [sqlspatialtools:404916]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: Viking42&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;I am new to this and I have some geo points that does not intersects with my geo structures and I want to plot these and see where these points are in order to debug the solution.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;I run the following query in MS SQL management studio:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;select&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;top&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; 100
&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;geography&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;::&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;STPointFromText&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:red"&gt;'POINT('&lt;/span&gt;
&lt;span style="color:gray"&gt;&amp;#43;&lt;/span&gt; &lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;ddLongitude
&lt;span style="color:blue"&gt;AS&lt;/span&gt; &lt;span style="color:blue"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:gray"&gt;&amp;#43;&lt;/span&gt; &lt;span style="color:red"&gt;' '&lt;/span&gt; &lt;span style="color:gray"&gt;
&amp;#43;&lt;/span&gt; &lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;ddLatitude
&lt;span style="color:blue"&gt;AS&lt;/span&gt; &lt;span style="color:blue"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:gray"&gt;&amp;#43;&lt;/span&gt; &lt;span style="color:red"&gt;')'&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt; 4326&lt;span style="color:gray"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;,&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;geom
&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;from&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; Area&lt;span style="color:gray"&gt;,&lt;/span&gt; Position&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;where&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;geography&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;::&lt;/span&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;STPointFromText&lt;span style="color:gray"&gt;(&lt;/span&gt;&lt;span style="color:red"&gt;'POINT('&lt;/span&gt;
&lt;span style="color:gray"&gt;&amp;#43;&lt;/span&gt; &lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;ddLongitude
&lt;span style="color:blue"&gt;AS&lt;/span&gt; &lt;span style="color:blue"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:gray"&gt;&amp;#43;&lt;/span&gt; &lt;span style="color:red"&gt;' '&lt;/span&gt; &lt;span style="color:gray"&gt;
&amp;#43;&lt;/span&gt; &lt;span style="color:fuchsia"&gt;CAST&lt;/span&gt;&lt;span style="color:gray"&gt;(&lt;/span&gt;ddLatitude
&lt;span style="color:blue"&gt;AS&lt;/span&gt; &lt;span style="color:blue"&gt;VARCHAR&lt;/span&gt;&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:gray"&gt;&amp;#43;&lt;/span&gt; &lt;span style="color:red"&gt;')'&lt;/span&gt;&lt;span style="color:gray"&gt;,&lt;/span&gt; 4326&lt;span style="color:gray"&gt;).&lt;/span&gt;STIntersects&lt;span style="color:gray"&gt;(&lt;/span&gt;Area&lt;span style="color:gray"&gt;.&lt;/span&gt;geom&lt;span style="color:gray"&gt;)&lt;/span&gt;
&lt;span style="color:gray"&gt;= 0&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;I can switch between the two columns in the Spatial Results window but I want to see the points and my shapes together. Is there a way to do this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Thank you for your replies&lt;/span&gt;&lt;/p&gt;
&lt;div id="_mcePaste"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&amp;#65279;&lt;/span&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>edwink</author><pubDate>Wed, 28 Nov 2012 18:16:02 GMT</pubDate><guid isPermaLink="false">New Post: Showing two spatial columns in the spatial results together 20121128061602P</guid></item><item><title>New Post: Showing two spatial columns in the spatial results together</title><link>http://sqlspatialtools.codeplex.com/discussions/404916</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am new to this and I have some geo points that does not intersects with my geo structures and I want to plot these and see where these points are in order to debug the solution.&lt;/p&gt;
&lt;p&gt;I run the following query in MS SQL management studio:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;font size="2" color="#0000ff"&gt;&lt;/p&gt;
&lt;p&gt;select&lt;/p&gt;
&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small"&gt;&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;top&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt; 100
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;geography&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;::&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;STPointFromText&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;'POINT('&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;CAST&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;ddLongitude
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;' '&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;CAST&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;ddLatitude
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;')'&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
 4326&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;geom
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;from&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt; Area&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
 Position&lt;/span&gt;&lt;/p&gt;
&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;
&lt;p&gt;where&lt;/p&gt;
&lt;font size="2" color="#0000ff"&gt;
&lt;p&gt;geography&lt;/p&gt;
&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;::&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;STPointFromText&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;'POINT('&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;CAST&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;ddLongitude
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;' '&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;&lt;span style="color:#ff00ff; font-size:x-small"&gt;CAST&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;ddLatitude
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;AS&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;&lt;span style="color:#0000ff; font-size:x-small"&gt;VARCHAR&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&amp;#43;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;&lt;span style="color:#ff0000; font-size:x-small"&gt;')'&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;,&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
 4326&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;STIntersects&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;Area&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;geom&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;
&lt;/span&gt;&lt;span style="color:#808080; font-size:x-small"&gt;&lt;span style="color:#808080; font-size:x-small"&gt;= 0&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&lt;font size="2"&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/font&gt;&lt;/span&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can switch between the two columns in the Spatial Results window but I want to see the points and my shapes together.&amp;nbsp; Is there a way to do this?&lt;/p&gt;
&lt;p&gt;Thank you for your replies&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="_mcePaste" style="width:1px; height:1px; overflow:hidden; top:0px; left:-10000px"&gt;
&amp;#65279;&lt;/div&gt;
&lt;/div&gt;</description><author>Viking42</author><pubDate>Wed, 28 Nov 2012 16:43:33 GMT</pubDate><guid isPermaLink="false">New Post: Showing two spatial columns in the spatial results together 20121128044333P</guid></item><item><title>Source code checked in, #80132</title><link>http://sqlspatialtools.codeplex.com/SourceControl/changeset/changes/80132</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:49:39 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80132 20121001094939P</guid></item><item><title>Source code checked in, #80131</title><link>http://sqlspatialtools.codeplex.com/SourceControl/changeset/changes/80131</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:43:10 GMT</pubDate><guid isPermaLink="false">Source code checked in, #80131 20121001094310P</guid></item><item><title>Patch Uploaded: #11602</title><link>http://sqlspatialtools.codeplex.com/SourceControl/list/patches</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/kaveh096'&gt;kaveh096&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;Continuing from the discussion here &amp;#40;http&amp;#58;&amp;#47;&amp;#47;sqlspatialtools.codeplex.com&amp;#47;discussions&amp;#47;69864&amp;#41; I noticed that the TranverseMercator implementation results in slightly different numbers than other GIS tools like ESRI ArcGIS. So I decided to create another class for my own needs &amp;#40;TranverseMercatorMeter&amp;#41;. I was wondering if you guys are interested in this so I decided to submit a patch. Let me know how else I can help in this regard.&lt;/p&gt;</description><author>kaveh096</author><pubDate>Wed, 29 Feb 2012 03:36:32 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #11602 20120229033632A</guid></item><item><title>New Post: Project to UTM - long0 values</title><link>http://sqlspatialtools.codeplex.com/discussions/69864</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Don't know if this issue is still valid... I'm simply posting for the sake of future reference. I had some WSG 1984 geographies which needed to be projected into UTM on run-time using TranverseMercator. So I used this SqlSpatialTools library like adair but the numbers did not exactly matched after compering to ESRI ArcGIS outputs. So I found this page (http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html) and based on the javascript implementation, coded a C# class within the SQLSpatialTools framework to take care of it. Now, does anyone knows how I can submit this new class (patch files) to the project admins?&lt;/p&gt;&lt;/div&gt;</description><author>kaveh096</author><pubDate>Wed, 29 Feb 2012 01:59:37 GMT</pubDate><guid isPermaLink="false">New Post: Project to UTM - long0 values 20120229015937A</guid></item><item><title>New Post: C# library for converting geom field of SQLServer into set of google latlng</title><link>http://sqlspatialtools.codeplex.com/discussions/291089</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Is there any C# library which can convert the geometry field into set of google latlngs? I have stored a shapefile into SQLserver table. From Sqlserver i want to read the geometry field data and want to convert this geom data into set of google latlngs in
 my C# application. Finally i want to save these google latlngs into another table in SQLServer.&lt;/p&gt;
&lt;/div&gt;</description><author>Mustafa646</author><pubDate>Fri, 03 Feb 2012 12:55:55 GMT</pubDate><guid isPermaLink="false">New Post: C# library for converting geom field of SQLServer into set of google latlng 20120203125555P</guid></item><item><title>New Post: NuGet package?</title><link>http://sqlspatialtools.codeplex.com/discussions/261136</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;A NuGet package would be very useful to us. I think NuGet has enough momentum behind it by now...&lt;/p&gt;&lt;/div&gt;</description><author>jalbert</author><pubDate>Wed, 25 Jan 2012 21:56:12 GMT</pubDate><guid isPermaLink="false">New Post: NuGet package? 20120125095612P</guid></item><item><title>New Post: Conversion of State Plane to WGS84</title><link>http://sqlspatialtools.codeplex.com/discussions/286893</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ed -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much for the comprehensive answer and your suggestions for further avenues of pursuit! I very much appreciate your time and effort. I'll look into&amp;nbsp;&lt;a href="http://safe.com/solutions/for-databases/microsoft-sql-server/loader-edition/"&gt;FME Microsoft SQL Server Data Loader Edition&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Warmest regards,&lt;/p&gt;
&lt;p&gt;Joel&lt;/p&gt;&lt;/div&gt;</description><author>alembic6</author><pubDate>Mon, 23 Jan 2012 15:26:30 GMT</pubDate><guid isPermaLink="false">New Post: Conversion of State Plane to WGS84 20120123032630P</guid></item><item><title>New Post: Conversion of State Plane to WGS84</title><link>http://sqlspatialtools.codeplex.com/discussions/286893</link><description>&lt;div style="line-height: normal;"&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;@alembic6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;As you have discovered, SQL Server Spatial does not offer any coordinate projection/transformation methods as part of the core offering. There are several reasons for this which I won’t delve into here. The coordinate
 system projection code provided in the CodePlex SQL Server Spatial Tools Project is designed as working examples of how this might be done but will not, in themselves, solve this particular problem for you. There are several alternatives. First, you could,
 using the CodePlex sample code as a framework, create new CLR-based T-SQL functions to do this task. The algorithms are well known and published on the Internet in a variety of places. Or you could use the
&lt;a href="http://trac.osgeo.org/proj/"&gt;Proj.4 library&lt;/a&gt; available from OSGeo along with some CLR-code to create some new T-SQL functions. Or you could purchase the
&lt;a href="http://safe.com/solutions/for-databases/microsoft-sql-server/"&gt;Feature Manipulation Engine (FME)&lt;/a&gt; from Safe Software. If you are not familiar with FME but are interested in this approach, I would suggest that you avail yourself of the US$500 package,
&lt;a href="http://safe.com/solutions/for-databases/microsoft-sql-server/loader-edition/"&gt;
FME Microsoft SQL Server Data Loader Edition&lt;/a&gt; (&lt;i&gt;please check with Safe Software for current pricing&lt;/i&gt;). All FME editions allow you to easily and efficiently project coordinates and perform datum transformations. Lastly, you could check with
&lt;a href="http://www.bluemarblegeo.com/"&gt;Blue Marble Geographics&lt;/a&gt; and see what they have to offer. I have not worked with their product but there has been some discussion with them on this subject.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Let us know if this information assists you or if you need addition guidance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;-Ed&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt; font-family:"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in"&gt;
&lt;p&gt;&lt;b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt; font-family:"&gt; alembic6 [email removed]
&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Friday, January 20, 2012 4:07 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Ed Katibah&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Conversion of State Plane to WGS84 [sqlspatialtools:286893]&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;From: alembic6&lt;/span&gt;&lt;/p&gt;
&lt;div id="ThreadNotificationPostBody" style="margin-bottom:24.0pt"&gt;
&lt;p&gt;&lt;span style="font-size:9.0pt; font-family:"&gt;I am trying to find the correct T-SQL code to convert X,Y State Plane coordinates (NAD83) to WGS84 coordinates. I have successfully installed SQL Spatial Tools and I have searched these discussion topics for assistance,
 but I am unable to assist myself. Can anyone point me in the right direction? Which function(s) should I use and how? I have a large table with X,Y values stored as integers. Thank you in advance for your assistance!&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>edwink</author><pubDate>Sat, 21 Jan 2012 00:41:13 GMT</pubDate><guid isPermaLink="false">New Post: Conversion of State Plane to WGS84 20120121124113A</guid></item><item><title>New Post: Conversion of State Plane to WGS84</title><link>http://sqlspatialtools.codeplex.com/discussions/286893</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I am trying to find the correct T-SQL code to convert X,Y State Plane coordinates (NAD83) to WGS84 coordinates. I have successfully installed SQL Spatial Tools and I have searched these discussion topics for assistance, but I am unable to assist myself.
 Can anyone point me in the right direction? Which function(s) should I use and how? I have a large table with X,Y values stored as integers. Thank you in advance for your assistance!&lt;/p&gt;
&lt;/div&gt;</description><author>alembic6</author><pubDate>Sat, 21 Jan 2012 00:07:02 GMT</pubDate><guid isPermaLink="false">New Post: Conversion of State Plane to WGS84 20120121120702A</guid></item><item><title>New Post: wgs84 lat/longs to web mercator projection</title><link>http://sqlspatialtools.codeplex.com/discussions/81927</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am storing data as Geometry. However, the Project method seems to accept only Geography type. So, I changed the above T-SQL a bit to suit to my needs. Below is a sample script performing re-projection to one Polygon.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;DECLARE&lt;/span&gt; @geom Geometry;
&lt;span style="color: blue;"&gt;SET&lt;/span&gt; @geom = Geometry::STGeomFromText(&lt;span style="color: #a31515;"&gt;'POLYGON ((77.9672499974569 13.3208888689677, 77.968444442749 13.320666662852, 77.9683610916138 13.3203333218892, 77.9671388626099 13.3205555597941, 77.9672499974569 13.3208888689677))'&lt;/span&gt;, 4326)

&lt;span style="color: green;"&gt;-- Correct the ring orientation if it is incorrect&lt;/span&gt;
&lt;span style="color: green;"&gt;-- SqlGeography, unlike &lt;/span&gt;&lt;span style="color: green;"&gt;SqlGeometry&lt;/span&gt;&lt;span style="color: green;"&gt; data type is very unforgiving&lt;/span&gt;
&lt;span style="color: green;"&gt;-- This will force a validation of the Spatial object and correct the ring orientation internally&lt;/span&gt;
&lt;span style="color: green;"&gt;-- For more info see: http://blogs.msdn.com/b/edkatibah/archive/2008/08/19/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-1b.aspx&lt;/span&gt;
&lt;span style="color: blue;"&gt;SET&lt;/span&gt; @geom = @geom.STUnion(@geom.STStartPoint());

&lt;span style="color: blue;"&gt;DECLARE&lt;/span&gt; @geography Geography
&lt;span style="color: blue;"&gt;SET&lt;/span&gt; @geography = Geography::STGeomFromText(@geom.STAsText(),@geom.STSrid)

&lt;span style="color: blue;"&gt;DECLARE&lt;/span&gt; @mercator Projection;
&lt;span style="color: blue;"&gt;SET&lt;/span&gt; @mercator = Projection::Mercator(0)

&lt;span style="color: blue;"&gt;SELECT&lt;/span&gt; 
	@geom.STAsText() &lt;span style="color: blue;"&gt;AS&lt;/span&gt; WGS84,
	@mercator.Project(@geography).STAsText() &lt;span style="color: blue;"&gt;AS&lt;/span&gt; WebMercator
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, the values I get are totally off! Here is what I get:&lt;/p&gt;
&lt;p&gt;Original Geometry: POLYGON ((77.968361091625411 13.320333321884391, 77.968444442754844 13.32066666285391, 77.967249997454928 13.320888868969632, 77.967138862615684 13.320555559796048, 77.968361091625411 13.320333321884391))&lt;/p&gt;
&lt;p&gt;Re-projected Geometry: POLYGON ((1.3608046134327036 0.23460666206021522, 1.3608060681843475 0.23461264080687308, 1.3607852211811289 0.2346166262623624, 1.3607832815122705 0.23461064808050117, 1.3608046134327036 0.23460666206021522))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not able to figure out what I am doing wrong. Any help will be great.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt; Raghu&lt;/p&gt;&lt;/div&gt;</description><author>kraghavk</author><pubDate>Sun, 08 Jan 2012 08:09:44 GMT</pubDate><guid isPermaLink="false">New Post: wgs84 lat/longs to web mercator projection 20120108080944A</guid></item><item><title>New Post: Conversion from ("non-vacuous") geography to geometry</title><link>http://sqlspatialtools.codeplex.com/discussions/278933</link><description>&lt;div style="line-height: normal;"&gt;There seems to be an asymmetry in the spatial tools provided. Given a geometry with an SRID we can convert to a geography with the same SRID using MakeValidGeographyFromGeometry What about the reverse process? There is a symmetric pair of functions for
 conversion when the items are &amp;quot;vacuous&amp;quot;, which I &amp;gt;think&amp;lt; means that they have no SRID. There is also an asymmetry in the spatial aggregations: we have GeographyUnionAggregate but no GeometryUnionAggregate. Is this forthcoming or it is redundant?
&lt;/div&gt;</description><author>StJohnKettle</author><pubDate>Thu, 10 Nov 2011 01:19:53 GMT</pubDate><guid isPermaLink="false">New Post: Conversion from ("non-vacuous") geography to geometry 20111110011953A</guid></item></channel></rss>