<?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>Dutton Software &#187; Google Maps</title>
	<atom:link href="http://www.duttonsoftware.com/tag/google-maps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.duttonsoftware.com</link>
	<description>Code, plug-ins &#38; more</description>
	<lastBuildDate>Mon, 16 Jan 2012 06:30:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Mapping with Virtual Earth in SQL Server Reporting Services</title>
		<link>http://www.duttonsoftware.com/2008/10/04/mapping-with-virtual-earth-in-sql-server-reporting-services/</link>
		<comments>http://www.duttonsoftware.com/2008/10/04/mapping-with-virtual-earth-in-sql-server-reporting-services/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 07:32:04 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[SQL Server Reporting Services]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[SSRS]]></category>
		<category><![CDATA[Virtual Earth]]></category>

		<guid isPermaLink="false">http://www.duttonsoftware.com/?p=56</guid>
		<description><![CDATA[After seeing an excellent article by Wayne Berry about Mapping in SQL Server Reporting Services using the Google Maps API, I was inspired to see what I could do with Virtual Earth. The answer: not much. Virtual Earth does has a stellar SDK. The SDK is all JavaScript based, so it may not be used [...]]]></description>
			<content:encoded><![CDATA[<p>After seeing an excellent article by Wayne Berry about <a title="Mapping in SQL Server Reporting Services" href="http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2008/09/03/MappingInSQLServerReportingServices.aspx" target="_blank">Mapping in SQL Server Reporting Services</a> using the Google Maps API, I was inspired to see what I could do with Virtual Earth.</p>
<p>The answer: not much.</p>
<p>Virtual Earth does has a stellar SDK. The SDK is all JavaScript based, so it may not be used by SQL Server Reporting Services. Virtual Earth does not have a static mapping API. However, there are unsupported ways to get a single image tile&#8211;I used this <a title="veTile virtual earth example application" href="http://www.viawindowslive.com/Articles/VirtualEarth/CreatingaVEpluginforNASAsWorldWind.aspx" target="_blank">virtual earth example application (veTile)</a> as a basis for retrieving the tile URL.</p>
<p>I translated the code from C# to VB.NET so I could use it directly in reporting services. The code allows you to provide a latitude, longitude, and a zoom level and get back the closest virtual earth tile. The problem is that the resolution is only as good as a single map tile. The actual location of the latitude and longitude could be anywhere on the tile.</p>
<div id="attachment_57" class="wp-caption alignnone" style="width: 160px"><a href="http://www.duttonsoftware.com/wp-content/uploads/2008/10/vemappingexample.jpg"><img class="size-thumbnail wp-image-57" title="Virtual Earth mapping example" src="http://www.duttonsoftware.com/wp-content/uploads/2008/10/vemappingexample-150x150.jpg" alt="Virtual Earth mapping example" width="150" height="150" /></a><p class="wp-caption-text">Virtual Earth mapping example</p></div>
<p>The good news, like the Google maps example, is that you can use the tiles in SSRS because no JavaScript is required. If you find a way to improve the resolution, let me know.</p>
<p>The SSRS source code of the report: <a href="http://www.duttonsoftware.com/wp-content/uploads/2008/10/vemappingexample.rdl.zip">Virtual Earth Mapping Example source code (vemappingexample.rdl)</a></p>
<p>In case you just want to get the map tile URL in Visual Basic, I am providing the <a href="http://www.duttonsoftware.com/wp-content/uploads/2008/10/virtual-earth-helper.txt">Virtual Earth Helper source code (VB.NET code)</a>. The class (VEHelper) has a single public static method (GetVETileUrl).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.duttonsoftware.com/2008/10/04/mapping-with-virtual-earth-in-sql-server-reporting-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

