<?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: How to load .slpk file locally ?? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754585#M9445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I tried on 100.2.1, however, i didn't see my slpk data on the scene control, the region displays gray. i generated the slpk via smart3d, anything i miss? see my&amp;nbsp;code snippet below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void LoadSceneTest()&lt;BR /&gt; {&lt;BR /&gt; // Create new Scene&lt;BR /&gt; Scene myScene = new Scene();&lt;/P&gt;&lt;P&gt;// Set Scene's base map property&lt;BR /&gt; myScene.Basemap = Basemap.CreateImagery();&lt;BR /&gt;&lt;SPAN&gt; var _elevationSourceUrl = new Uri(@"&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer" rel="nofollow" target="_blank"&gt;https://scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; // Create and add an elevation source for the Scene&lt;BR /&gt; //ArcGISTiledElevationSource elevationSrc = new ArcGISTiledElevationSource(_elevationSourceUrl);&lt;BR /&gt; //myScene.BaseSurface.ElevationSources.Add(elevationSrc);&lt;/P&gt;&lt;P&gt;Uri treespk = new System.Uri(@"F:\JointSurvey\数据\倾斜三维\SPK\海沧\spk\spk.slpk");&lt;BR /&gt; var treeLayer = new ArcGISSceneLayer();&lt;BR /&gt; // add the scene layer to the scene&lt;BR /&gt; treeLayer.Source = treespk;&lt;BR /&gt; //await treeLayer.LoadAsync();&lt;BR /&gt; myScene.OperationalLayers.Add(treeLayer);&lt;/P&gt;&lt;P&gt;// Create a camera with coordinates showing layer data&lt;BR /&gt; Camera camera = new Camera(24.515519999999999, 117.989097000000000, 300, 344, 0, 71.17);&lt;/P&gt;&lt;P&gt;// Assign the Scene to the SceneView&lt;BR /&gt; MySceneView.Scene = myScene;&lt;/P&gt;&lt;P&gt;// Set view point of scene view using camera&lt;BR /&gt; MySceneView.SetViewpointCameraAsync(camera);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also debug the code and found that the&amp;nbsp;treeLayer is loaded correctly and visible. by the way the slpk contrains 3D models from osgb format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 03:15:41 GMT</pubDate>
    <dc:creator>PeterChen1</dc:creator>
    <dc:date>2018-07-04T03:15:41Z</dc:date>
    <item>
      <title>How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754582#M9442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to work in the Desktop Pattern, Accordint to the documentation , we need to set elevation source using some specified formats (i.e dem, geotiff ..) and the layers to be added using .slpk format,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/build-a-new-scene.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/build-a-new-scene.htm"&gt;Display a scene—ArcGIS Runtime SDK for .NET (WPF) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the API Reference states that the constructor of ArcGISSceneLayer asks for URI, I want to load everything offline , there are no sample codes for offline data. Please help me with some snippets , or examples so I can work with offline 3D Data. Thanks in advance &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 12:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754582#M9442</guid>
      <dc:creator>VijitWadhwa</dc:creator>
      <dc:date>2018-05-28T12:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754583#M9443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a file uri for local data: file://c:/data/mydata.slpk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 22:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754583#M9443</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-05-30T22:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754584#M9444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for the reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 09:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754584#M9444</guid>
      <dc:creator>VijitWadhwa</dc:creator>
      <dc:date>2018-06-06T09:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754585#M9445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I tried on 100.2.1, however, i didn't see my slpk data on the scene control, the region displays gray. i generated the slpk via smart3d, anything i miss? see my&amp;nbsp;code snippet below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private void LoadSceneTest()&lt;BR /&gt; {&lt;BR /&gt; // Create new Scene&lt;BR /&gt; Scene myScene = new Scene();&lt;/P&gt;&lt;P&gt;// Set Scene's base map property&lt;BR /&gt; myScene.Basemap = Basemap.CreateImagery();&lt;BR /&gt;&lt;SPAN&gt; var _elevationSourceUrl = new Uri(@"&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer" rel="nofollow" target="_blank"&gt;https://scene.arcgis.com/arcgis/rest/services/BREST_DTM_1M/ImageServer&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;BR /&gt; // Create and add an elevation source for the Scene&lt;BR /&gt; //ArcGISTiledElevationSource elevationSrc = new ArcGISTiledElevationSource(_elevationSourceUrl);&lt;BR /&gt; //myScene.BaseSurface.ElevationSources.Add(elevationSrc);&lt;/P&gt;&lt;P&gt;Uri treespk = new System.Uri(@"F:\JointSurvey\数据\倾斜三维\SPK\海沧\spk\spk.slpk");&lt;BR /&gt; var treeLayer = new ArcGISSceneLayer();&lt;BR /&gt; // add the scene layer to the scene&lt;BR /&gt; treeLayer.Source = treespk;&lt;BR /&gt; //await treeLayer.LoadAsync();&lt;BR /&gt; myScene.OperationalLayers.Add(treeLayer);&lt;/P&gt;&lt;P&gt;// Create a camera with coordinates showing layer data&lt;BR /&gt; Camera camera = new Camera(24.515519999999999, 117.989097000000000, 300, 344, 0, 71.17);&lt;/P&gt;&lt;P&gt;// Assign the Scene to the SceneView&lt;BR /&gt; MySceneView.Scene = myScene;&lt;/P&gt;&lt;P&gt;// Set view point of scene view using camera&lt;BR /&gt; MySceneView.SetViewpointCameraAsync(camera);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also debug the code and found that the&amp;nbsp;treeLayer is loaded correctly and visible. by the way the slpk contrains 3D models from osgb format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 03:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754585#M9445</guid>
      <dc:creator>PeterChen1</dc:creator>
      <dc:date>2018-07-04T03:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754586#M9446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your file uri should be :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Uri treespk = new System.Uri(@"file://F:/JointSurvey/数据\倾斜三维/SPK/海沧/spk/spk.slpk");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;I see you commented out the treeLayer.LoadAsync() call. While you don't need it, explicitly calling it should give you an error message telling you what's wrong. Could you please share that error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Also while I believe we fixed all Unicode issues with file paths, could you try it with a path that contains basic ASCII characters, just to make sure that's not the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 21:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754586#M9446</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-07-04T21:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754587#M9447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply. I tried&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;explicitly calling &lt;SPAN&gt;LoadAsync() and found that it worked correctly. the file path is not an issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit doubt that there is something wrong with my slpk file as it's the some result(see below snapshot) when i open it via Arcgis Earth. any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;by the way, the slpk contrains 3D models which is generated by smart 3d software. Could you&amp;nbsp;provide some sample 'correct' slpk file for testing my code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;IMG __jive_id="413200" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/413200_runtimeLoadslpkError.jpg" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 01:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754587#M9447</guid>
      <dc:creator>PeterChen1</dc:creator>
      <dc:date>2018-07-05T01:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754588#M9448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Earth uses a newer build of the runtime. Could you retry with the newly released v100.3 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 19:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754588#M9448</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-07-10T19:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754589#M9449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Morten Nielsen, I tried my another slpk and succeeded to open it using arcgis runtime 100.2.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, today after I upgrade arcgis runtime .net to v100.3, my scene layer is invisible when it was there when I was using v100.2.1,could you give me some idea on how to fix this? Below is my code snippet to load my local slpk as an&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;ArcGISSceneLayer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Uri treespk = new System.Uri(slpkPath);&lt;BR /&gt;var sceneLayer = new ArcGISSceneLayer();&lt;BR /&gt;// add the scene layer to the scene&lt;BR /&gt;sceneLayer.Source = treespk;&lt;BR /&gt;sceneLayer.Loaded += SceneLayer_Loaded;&lt;BR /&gt;//await sceneLayer.LoadAsync();&lt;BR /&gt;sceneView.Scene.OperationalLayers.Add(sceneLayer);&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;By the way, the&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;SceneLayer_Loaded is invoked so I am sure the&amp;nbsp;sceneLayer is loaded without any error, just not visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I&amp;nbsp;try to load the same local slpk via arcgis earth v1.6.1, it's&amp;nbsp;visible on the earth.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 00:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/754589#M9449</guid>
      <dc:creator>PeterChen1</dc:creator>
      <dc:date>2018-09-25T00:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to load .slpk file locally ??</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/1110182#M10554</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; to load the local .slpk file. Its loaded successfully.&lt;/P&gt;&lt;P&gt;But 3D Object not rendered perfectly in base map.&lt;/P&gt;&lt;P&gt;Some gap is showing between basemap and building.&lt;/P&gt;&lt;P&gt;Please give us advice&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 12:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-to-load-slpk-file-locally/m-p/1110182#M10554</guid>
      <dc:creator>KarthikS</dc:creator>
      <dc:date>2021-10-22T12:05:12Z</dc:date>
    </item>
  </channel>
</rss>

