<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx</link><description>In a long past post, Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 1b (August 2008), I discussed techniques for dealing with invalid data and the geography data type. In my last post, I listed the new geography validation</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#10389188</link><pubDate>Tue, 29 Jan 2013 15:46:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10389188</guid><dc:creator>Nagarjuna Dilip</dc:creator><description>&lt;p&gt;Thanks for your work! It worked for me. :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10389188" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#10126445</link><pubDate>Tue, 08 Feb 2011 21:57:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10126445</guid><dc:creator>Franck</dc:creator><description>&lt;p&gt;Great post thanks !!!&lt;/p&gt;
&lt;p&gt;Really helpful espacially the Reduce() trick on invalid-geography-polygons-that-comes-from-valid-geometry...&lt;/p&gt;
&lt;p&gt;Franck&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10126445" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#10017772</link><pubDate>Mon, 31 May 2010 13:31:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10017772</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;I am looking for a way to convert my WGS84 coord that a GPS receiver gives me to a NAD83 coord that another program is expecting. &amp;nbsp;Is there a Stored Porcedure that can do this for me?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10017772" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9928100</link><pubDate>Tue, 24 Nov 2009 17:20:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9928100</guid><dc:creator>Wimpy1</dc:creator><description>&lt;p&gt;Is there a way to make valid geographies strictly using the FME workbench? &amp;nbsp;What FME components/transformers would handle these steps?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9928100" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9797195</link><pubDate>Mon, 22 Jun 2009 09:43:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9797195</guid><dc:creator>vIndEx</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;I think that using .STUnion(@g.STPointN(1)) is the best way to validate these geometries, instead of using Reduce:&lt;/p&gt;
&lt;p&gt;1) It will mantain the shape of the geometries&lt;/p&gt;
&lt;p&gt;2) Don't have to guess with the value passed to reduce&lt;/p&gt;
&lt;p&gt;3) If needed, it changes the rings orientation so you can buid a geography&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9797195" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9797039</link><pubDate>Mon, 22 Jun 2009 07:57:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9797039</guid><dc:creator>Hugh Saalmans</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;Thanks for the update - the original method (in part 1) didn't work with my data, so good to finally have that sorted...!&lt;/p&gt;
&lt;p&gt;What would be great would be if there was a tool to remove the linestrings and points created by using either the Reduce function or a validation function, rather than having to clean them out manually or using a custom application.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9797039" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9707441</link><pubDate>Mon, 08 Jun 2009 06:56:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9707441</guid><dc:creator>Spatial Ed</dc:creator><description>&lt;p&gt;You do raise a good point. &amp;nbsp;However, in this particular case, I would argue that the vertexes removed on ID=3499 were essentially duplicative and remaining problem of spikes was most likely pure data errors. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;What about a new MapValidGeography&amp;lt;...&amp;gt; function with Reduce and Densify arguments?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9707441" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9707414</link><pubDate>Mon, 08 Jun 2009 06:37:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9707414</guid><dc:creator>Morten Nielsen</dc:creator><description>&lt;p&gt;When you convert form Geometry to Geography, shouldn't you really be densifying along the line segments?&lt;/p&gt;
&lt;p&gt;It might be that the shape file you are importing &amp;quot;claims&amp;quot; to be espg:4269, but my bet is that it is really a projected coordinate system where the line segments are straight in a flat coordinate system, but not in an spherical one. The issues you hit also seem to confirm that.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9707414" width="1" height="1"&gt;</description></item><item><title>re: Working with Invalid Data and the SQL Server 2008 Geography Data Type, Part 2</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9703001</link><pubDate>Sat, 06 Jun 2009 21:30:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9703001</guid><dc:creator>me</dc:creator><description>&lt;p&gt;thanks for your posts. I am a web dev guy who only knows the basics of sql server and this spatial querying is very interesting. Im trying to go from shape files where the lat/lons are backwards to showing the polygons on google maps so one of these months I think I will put all this together. Anyway thanks for your contributions&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9703001" width="1" height="1"&gt;</description></item><item><title>national media exposure &amp;raquo; Wikipedia:Requests for arbitration/Macedonia 2/Proposed decision</title><link>http://blogs.msdn.com/b/edkatibah/archive/2009/06/05/working-with-invalid-data-and-the-sql-server-2008-geography-data-type-part-2.aspx#9702724</link><pubDate>Sat, 06 Jun 2009 14:18:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9702724</guid><dc:creator>national media exposure &amp;raquo; Wikipedia:Requests for arbitration/Macedonia 2/Proposed decision</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://nationalmediaexposure.blog-giant.com/2009/06/04/wikipediarequests-for-arbitrationmacedonia-2proposed-decision/"&gt;http://nationalmediaexposure.blog-giant.com/2009/06/04/wikipediarequests-for-arbitrationmacedonia-2proposed-decision/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9702724" width="1" height="1"&gt;</description></item></channel></rss>