<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Incorporating Data from Ancillary Sources in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756898#M19346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think there should be a way to create REST endpoints to SQL Server spatial data without using MapIT, but I have yet to find a working solution. I was looking at &lt;A href="http://msdn.microsoft.com/en-us/data/cc745957"&gt;this link&lt;/A&gt; that shows how to do it using ADO.NET data services and the entity model framework, but the problem I ran into is that the current entity model framework doesn't support the spatial data types that are in Sql Server 2008.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I found &lt;/SPAN&gt;&lt;A href="http://jasonfollas.com/blog/archive/2010/02/14/spatial-data-and-the-entity-framework.aspx"&gt;this link&lt;/A&gt;&lt;SPAN&gt; that goes over a way to do a 'hack' by creating a view that casts the spatial column to binary, which then gets converted back to the sql geometry on the client side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would then need to convert the entities into the ESRI objects that are supported in whatever API that you are using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of this, I just used a published map service that contained a query layer. The query layer is able to access the SQL Server spatial data and display it inside of the service. However, doing it by REST would eliminate the need for a published map service, which would remove some of links in the process chain.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jan 2011 14:23:49 GMT</pubDate>
    <dc:creator>BrentStevener</dc:creator>
    <dc:date>2011-01-31T14:23:49Z</dc:date>
    <item>
      <title>Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756893#M19341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to GIS and mapping applications, so this may be a dumb question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to incorporate tabular data from a local SQL Server database with spatial data that I'm getting from a map service, particularly (for now), in the Map Tip.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already managed, with this forum's help (thank you, Dominique) to use a simple Converter to take one piece of data from the map service (a site's primary key), and use it to lookup and return a different piece of data (the site's name) that's not returned by the service.&amp;nbsp; However, that's a really simple case, and required me, in the Silverlight page's Loaded event handler, to fetch a dictionary of site ID's and site names and store it locally in the browser in anticipation of it being needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got boat loads more tabular data I'd like to display in the map tip.&amp;nbsp; So what I'm wondering is, what's the best approach.&amp;nbsp; As I see it, and again I'm new to GIS, there are two options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Create a local service (REST?&amp;nbsp; WCF?) that acts as a proxy to the map service.&amp;nbsp; Point the map feature layer at the local service.&amp;nbsp; That service then communicates with the actual map service, and then returns the results from the map service, plus whatever tabular data is needed from the SQL database, back to the feature layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Handle some event of the map tip, right before it displays, to fire off a service call to a local service which fetches the tabular data I'm interested in (I don't even know if this event exists, however).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There may be other options as well.&amp;nbsp; I should mention that I don't have access to the map service, so I can't go in and tell it what additional data I'd like to return.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, if you have any suggestions, I'd me most grateful.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Aaron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 20:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756893#M19341</guid>
      <dc:creator>AaronEdwards</dc:creator>
      <dc:date>2010-10-10T20:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756894#M19342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like what you need is MapIt: &lt;/SPAN&gt;&lt;A href="http://www.esri.com/mapit"&gt;www.esri.com/mapit&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 17:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756894#M19342</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-10-11T17:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756895#M19343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A little rich for my blood.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 16:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756895#M19343</guid>
      <dc:creator>AaronEdwards</dc:creator>
      <dc:date>2010-10-12T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756896#M19344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think there should be a way to create REST endpoints to SQL Server spatial data without using MapIT, but I have yet to find a working solution. I was looking at &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/data/cc745957"&gt;this link&lt;/A&gt;&lt;SPAN&gt; that shows how to do it using ADO.NET data services and the entity model framework, but the problem I ran into is that the current entity model framework doesn't support the spatial data types that are in Sql Server 2008.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps someone else out there can examine it and figure out a way and provide a simple tutorial &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 13:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756896#M19344</guid>
      <dc:creator>BrentStevener</dc:creator>
      <dc:date>2011-01-31T13:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756897#M19345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of EF you could use Linq2SQL, which is more flexible. Here is a post at StackOverflow on how to use (hack) L2S for SQL Spatial data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/1314523/spatial-data-types-support-in-linq2sql-or-ef4/1797509#1797509"&gt;http://stackoverflow.com/questions/1314523/spatial-data-types-support-in-linq2sql-or-ef4/1797509#1797509&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here's a more helpful walkthrough:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.u2u.be/diederik/post/2010/01/03/The-Missing-Linq-to-SQL-Spatial.aspx"&gt;http://blogs.u2u.be/diederik/post/2010/01/03/The-Missing-Linq-to-SQL-Spatial.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 13:13:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756897#M19345</guid>
      <dc:creator>DanielWalton</dc:creator>
      <dc:date>2011-01-31T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756898#M19346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think there should be a way to create REST endpoints to SQL Server spatial data without using MapIT, but I have yet to find a working solution. I was looking at &lt;A href="http://msdn.microsoft.com/en-us/data/cc745957"&gt;this link&lt;/A&gt; that shows how to do it using ADO.NET data services and the entity model framework, but the problem I ran into is that the current entity model framework doesn't support the spatial data types that are in Sql Server 2008.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I found &lt;/SPAN&gt;&lt;A href="http://jasonfollas.com/blog/archive/2010/02/14/spatial-data-and-the-entity-framework.aspx"&gt;this link&lt;/A&gt;&lt;SPAN&gt; that goes over a way to do a 'hack' by creating a view that casts the spatial column to binary, which then gets converted back to the sql geometry on the client side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would then need to convert the entities into the ESRI objects that are supported in whatever API that you are using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of this, I just used a published map service that contained a query layer. The query layer is able to access the SQL Server spatial data and display it inside of the service. However, doing it by REST would eliminate the need for a published map service, which would remove some of links in the process chain.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 14:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756898#M19346</guid>
      <dc:creator>BrentStevener</dc:creator>
      <dc:date>2011-01-31T14:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating Data from Ancillary Sources</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756899#M19347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This blogpost might also help you get started on building a service: &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All you really need is to add a SQL query to that sample...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 16:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/incorporating-data-from-ancillary-sources/m-p/756899#M19347</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-01-31T16:51:02Z</dc:date>
    </item>
  </channel>
</rss>

