<?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: Elevation Services (SOEs) in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75332#M1831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1) why the Data Contract from SOEs (&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SOEElevationLatLonDataContract"&gt;&lt;SPAN style="color:#417394;"&gt;http://help.arcgis.com/en/webapi/sil...onDataContract&lt;/SPAN&gt;&lt;/A&gt;) doesn't work and every point has elevation 0 meters.&lt;BR /&gt;2) I want to use the "&lt;A href="http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers/1/GetElevations"&gt;&lt;SPAN style="color:#417394;"&gt;GetElevations&lt;/SPAN&gt;&lt;/A&gt;" from SOEs , but every geometry I use, I get "400 error". &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a known issue in the sample when the decimal separator is not '.' (dot).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is your decimal separator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could please someone write an example that works?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix the decimal separator issue, add the InvariantCulture option when generating the Url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. : &lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SOEurl += string.Format(&lt;SPAN style="color:red;"&gt;System.Globalization.CultureInfo.InvariantCulture&lt;/SPAN&gt;, "?lon={0}&amp;amp;lat={1}&amp;amp;f=json", geographicPoint.X, geographicPoint.Y);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 09:54:41 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-11-03T09:54:41Z</dc:date>
    <item>
      <title>Elevation Services (SOEs)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75331#M1830</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;SPAN&gt;I am a geologist and I trying to develop an application with silverlight. I want to use the elevation examples from SOEs but I can't work out the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) why the Data Contract from SOEs (&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SOEElevationLatLonDataContract"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SOEElevationLatLonDataContract&lt;/A&gt;&lt;SPAN&gt;) doesn't work and every point has elevation 0 meters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I want to use the "&lt;/SPAN&gt;&lt;A href="http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers/1/GetElevations"&gt;GetElevations&lt;/A&gt;&lt;SPAN&gt;" from SOEs , but every geometry I use, I get "400 error". Could please someone write an example that works?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Christos Charmatzis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75331#M1830</guid>
      <dc:creator>CHRISTOSCHARMATZIS</dc:creator>
      <dc:date>2011-11-02T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Elevation Services (SOEs)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75332#M1831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1) why the Data Contract from SOEs (&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SOEElevationLatLonDataContract"&gt;&lt;SPAN style="color:#417394;"&gt;http://help.arcgis.com/en/webapi/sil...onDataContract&lt;/SPAN&gt;&lt;/A&gt;) doesn't work and every point has elevation 0 meters.&lt;BR /&gt;2) I want to use the "&lt;A href="http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers/1/GetElevations"&gt;&lt;SPAN style="color:#417394;"&gt;GetElevations&lt;/SPAN&gt;&lt;/A&gt;" from SOEs , but every geometry I use, I get "400 error". &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a known issue in the sample when the decimal separator is not '.' (dot).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is your decimal separator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could please someone write an example that works?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix the decimal separator issue, add the InvariantCulture option when generating the Url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. : &lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SOEurl += string.Format(&lt;SPAN style="color:red;"&gt;System.Globalization.CultureInfo.InvariantCulture&lt;/SPAN&gt;, "?lon={0}&amp;amp;lat={1}&amp;amp;f=json", geographicPoint.X, geographicPoint.Y);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 09:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75332#M1831</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-11-03T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Elevation Services (SOEs)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75333#M1832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But now there is one other problem, I used the code you attached and now every map_click gives "-4237 meters" result, hahahahaha!!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About the "the decimal separator" I believe I use the "." (dot), however why the "&lt;/SPAN&gt;&lt;A href="http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers/1/GetElevations"&gt;GetElevations&lt;/A&gt;&lt;SPAN&gt;" from SOEs ,gives "400 error"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you write one example that works?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THANK YOU AGAIN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CHRISTOS CHARMATZIS&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 15:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75333#M1832</guid>
      <dc:creator>CHRISTOSCHARMATZIS</dc:creator>
      <dc:date>2011-11-03T15:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Elevation Services (SOEs)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75334#M1833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use the dot as decimal separator, I don't understand what happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I provided should not change anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest you use fiddler to look at the requests sent to the server. This may give a clue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Concerning 'GetElevations' sample, it's the same kind of fix (if it's a decimal separator issue), i.e. :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SOEurl += string.Format(&lt;/SPAN&gt;&lt;SPAN style="color:red;"&gt;System.Globalization.CultureInfo.InvariantCulture&lt;/SPAN&gt;&lt;SPAN&gt;, ........&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 15:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/elevation-services-soes/m-p/75334#M1833</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-11-03T15:33:37Z</dc:date>
    </item>
  </channel>
</rss>

