<?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: Does anyone know how to create file geodatabase using local sever? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/1021472#M9728</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is this working?&lt;/P&gt;&lt;P&gt;When I am trying this code, It shows no error.&lt;/P&gt;&lt;P&gt;But I am not able to see the features in the map.&lt;/P&gt;&lt;P&gt;It would be the great pleasure if you can help me with this.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 12:53:18 GMT</pubDate>
    <dc:creator>Shanmugapriya55</dc:creator>
    <dc:date>2021-01-29T12:53:18Z</dc:date>
    <item>
      <title>Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467197#M5745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a file geodatabase using local server but i can't find any samples for that. The only code i have seen is to add shape file to local map server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 09:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467197#M5745</guid>
      <dc:creator>saeidpahlevan</dc:creator>
      <dc:date>2018-10-18T09:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467198#M5746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just found one way of accessing file geodatabase through the local server as follows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;private ArcGISMapImageSublayer _fileGeodatabaseSublayer;&lt;BR /&gt; private LocalServer _LocalServer;&lt;/P&gt;&lt;P&gt;public MainWindow()&lt;BR /&gt; {&lt;BR /&gt; InitializeComponent();&lt;BR /&gt; Initialize();&lt;BR /&gt; } &lt;BR /&gt; private async void Initialize()&lt;BR /&gt; {&lt;BR /&gt; // Create a map and add it to the view&lt;BR /&gt; MyMapView.Map = new Map(BasemapType.Topographic, 39.7294, -104.8319, 12);&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt; {&lt;BR /&gt; // Start the local server instance&lt;BR /&gt; await LocalServer.Instance.StartAsync();&lt;BR /&gt; }&lt;BR /&gt; catch (InvalidOperationException ex)&lt;BR /&gt; {&lt;BR /&gt; MessageBox.Show(String.Format("Please ensure that local server is installed prior to using the sample. See instructions in readme.md or metadata.json. Message: {0}", ex.Message), "Local Server failed to start");&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; private void m_Button_Click(object sender, RoutedEventArgs e)&lt;BR /&gt; {&lt;BR /&gt; string filePath = "D:\\test\\test.gdb";&lt;BR /&gt; string fileName = "featureclass1";&lt;BR /&gt; StartLocalMapService(fileName, filePath);&lt;BR /&gt; }&lt;BR /&gt; private async void StartLocalMapService(string fileName, string filePath)&lt;BR /&gt; {&lt;BR /&gt; // any mpk file - don't know why&lt;BR /&gt; string mapServiceUrl = System.IO.Path.GetDirectoryName(filePath) + "\\mpk_blank.mpk";&lt;/P&gt;&lt;P&gt;// Create the local map service&lt;BR /&gt; var localMapService = new LocalMapService(mapServiceUrl);&lt;BR /&gt; FileGeodatabaseWorkspace ws = new FileGeodatabaseWorkspace("file_wkspc", filePath);&lt;BR /&gt; TableSublayerSource source = new TableSublayerSource(ws.Id, fileName);&lt;BR /&gt; _fileGeodatabaseSublayer = new ArcGISMapImageSublayer(0, source);&lt;BR /&gt; localMapService.SetDynamicWorkspaces(new List&amp;lt;DynamicWorkspace&amp;gt;()&lt;BR /&gt; {&lt;BR /&gt; ws&lt;BR /&gt; });&lt;BR /&gt; localMapService.StatusChanged += localMapService_StatusChanged;&lt;BR /&gt; await localMapService.StartAsync();&lt;BR /&gt; }&lt;BR /&gt; private async void localMapService_StatusChanged(object sender, StatusChangedEventArgs e)&lt;BR /&gt; {&lt;BR /&gt; if (e.Status == LocalServerStatus.Started)&lt;BR /&gt; {&lt;BR /&gt; if (!(sender is LocalMapService localService))&lt;BR /&gt; {&lt;BR /&gt; return;&lt;BR /&gt; }&lt;BR /&gt; ArcGISMapImageLayer imageryLayer = new ArcGISMapImageLayer(localService.Url);&lt;BR /&gt; imageryLayer.LoadStatusChanged += (q, ex) =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt; // Add the layer to the map once loaded&lt;BR /&gt; if (ex.Status == Esri.ArcGISRuntime.LoadStatus.Loaded)&lt;BR /&gt; {&lt;BR /&gt; // Create a default symbol style&lt;BR /&gt; SimpleLineSymbol lineSymbol = new SimpleLineSymbol(SimpleLineSymbolStyle.Solid, System.Drawing.Color.Red, 3);&lt;BR /&gt; // Apply the symbol style with a renderer&lt;BR /&gt; _fileGeodatabaseSublayer.Renderer = new SimpleRenderer(lineSymbol);&lt;BR /&gt; imageryLayer.Sublayers.Add(_fileGeodatabaseSublayer);&lt;BR /&gt; }&lt;BR /&gt; };&lt;BR /&gt; await imageryLayer.LoadAsync();&lt;BR /&gt; MyMapView.Map.OperationalLayers.Clear();&lt;BR /&gt; // Add the image layer to the map&lt;BR /&gt; MyMapView.Map.OperationalLayers.Add(imageryLayer);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 01:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467198#M5746</guid>
      <dc:creator>saeidpahlevan</dc:creator>
      <dc:date>2018-10-23T01:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467199#M5747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a File Geodatabase use the geoprocessing tool `Create File GDB` in the Data Management toolbox under the Workspace toolset (in&amp;nbsp;either help doc below refer to&amp;nbsp;the standalone python script example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pro:&amp;nbsp;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-file-gdb.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-file-gdb.htm"&gt;Create File Geodatabase—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcMap:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-file-gdb.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-file-gdb.htm"&gt;Create File GDB—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-file-gdb.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-file-gdb.htm"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-file-gdb.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can&amp;nbsp;use that tool either within a Model or a script. Once you have created a geoprocessing tool and run that successfully within Pro or ArcMap, then share the result and ensure you enable ArcGIS Runtime Support:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pro:&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/package-result.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/package-result.htm"&gt;Package Result—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcMap:&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/sharing-a-package.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/sharing-workflows/sharing-a-package.htm"&gt;Sharing a geoprocessing package—ArcMap | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To run via the API see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/run-a-geoprocessing-task.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/run-a-geoprocessing-task.htm"&gt;Run a geoprocessing task—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 22:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467199#M5747</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-10-23T22:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467200#M5748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike that's very helpful. My next question is if file geodatabase is created using the steps you mentioned then is it possible to add a georeferenced tiff file to the currently created file geodatabase using only the Runtime local server API or does it still need geoprocessing tool ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 00:27:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467200#M5748</guid>
      <dc:creator>saeidpahlevan</dc:creator>
      <dc:date>2018-10-24T00:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467201#M5749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding a raster dataset in .tiff format to the new file geodatabase can be done via the geoprocessing tool&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-geodatabase-multiple-.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-geodatabase-multiple-.htm"&gt;Raster To Geodatabase—Conversion toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;(same workflow as above to create a geoprocessing package that you would run as a local geoprocessing service to add one or more raster datasets to a file geodatabase). Note you can also use ArcPy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your workflow, it's also worth noting that the ArcGIS Runtime API provides a mechanism to directly create raster mosaics on disk (in a mobile geodatabase) and add raster datasets to the mosaic dataset:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Rasters_MosaicDatasetRaster__ctor.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Rasters_MosaicDatasetRaster__ctor.htm"&gt;MosaicDatasetRaster Constructor&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Rasters_MosaicDatasetRaster_Create_1.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Rasters_MosaicDatasetRaster_Create_1.htm"&gt;MosaicDatasetRaster.Create Method (String, String, SpatialReference)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Rasters_MosaicDatasetRaster_AddRastersAsync.htm" title="https://developers.arcgis.com/net/latest/wpf/api-reference//html/M_Esri_ArcGISRuntime_Rasters_MosaicDatasetRaster_AddRastersAsync.htm"&gt;MosaicDatasetRaster.AddRastersAsync Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use ArcPy within scripts in geoprocessing packages with local geoprocessing services. ArcPy has functionality for creating, manipulating, and saving datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 00:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467201#M5749</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-10-24T00:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467202#M5750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now assuming .gpk with the appropriate script tool has been created and shared with ArcGis Runtime, how to pass parameters to .gkp? are there any samples on running the geoprocessing package and passing the parameters through ArcGis Runtime local server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 03:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467202#M5750</guid>
      <dc:creator>saeidpahlevan</dc:creator>
      <dc:date>2018-10-24T03:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467203#M5751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For samples see:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/localservergeoprocessing.htm" title="https://developers.arcgis.com/net/latest/wpf/sample-code/localservergeoprocessing.htm"&gt;Local Server Geoprocessing—ArcGIS Runtime SDK for .NET Samples | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/analyzehotspots.htm" title="https://developers.arcgis.com/net/latest/wpf/sample-code/analyzehotspots.htm"&gt;Analyze hotspots—ArcGIS Runtime SDK for .NET Samples | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/analyzeviewshed.htm" title="https://developers.arcgis.com/net/latest/wpf/sample-code/analyzeviewshed.htm"&gt;Viewshed (Geoprocessing)—ArcGIS Runtime SDK for .NET Samples | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/sample-code/listgeodatabaseversions.htm" title="https://developers.arcgis.com/net/latest/wpf/sample-code/listgeodatabaseversions.htm"&gt;List geodatabase versions—ArcGIS Runtime SDK for .NET Samples | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 14:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467203#M5751</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2018-10-24T14:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467204#M5752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mike, I managed to create the file geodatabase using runtime api local server and the geoprocessing package. I appreciate your help and time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 01:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/467204#M5752</guid>
      <dc:creator>saeidpahlevan</dc:creator>
      <dc:date>2018-10-26T01:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone know how to create file geodatabase using local sever?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/1021472#M9728</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is this working?&lt;/P&gt;&lt;P&gt;When I am trying this code, It shows no error.&lt;/P&gt;&lt;P&gt;But I am not able to see the features in the map.&lt;/P&gt;&lt;P&gt;It would be the great pleasure if you can help me with this.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 12:53:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/does-anyone-know-how-to-create-file-geodatabase/m-p/1021472#M9728</guid>
      <dc:creator>Shanmugapriya55</dc:creator>
      <dc:date>2021-01-29T12:53:18Z</dc:date>
    </item>
  </channel>
</rss>

