Generate geodatabase

This sample demonstrates how to take a feature service offline by generating a geodatabase.

Generate geodatabase map

Instructions

  1. Pan and zoom to the area you would like to download features for, ensuring that all features are within the rectangle.
  2. Tap on the button. This will start the process of generating the offline geodatabase.
  3. Observe that the sample unregisters the geodatabase. This is best practice when changes won't be edited and synced back to the service.
Note that the basemap will be automatically downloaded from an ArcGIS Online portal.

Code

<UserControl
    x:Class="ArcGISRuntime.UWP.Samples.GenerateGeodatabase.GenerateGeodatabase"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <CommandBar Grid.Row="0">
            <AppBarButton Label="Generate" Icon="Download" Click="GenerateButton_Clicked" x:Name="MyGenerateButton" IsEnabled="False" />
        </CommandBar>
        <ProgressBar Grid.Row="1" x:Name="MyProgressBar" Visibility="Collapsed" MinHeight="10" />
        <esriUI:MapView x:Name="MyMapView" Grid.Row="2" />
    </Grid>
</UserControl>


In this topic
  1. Instructions
  2. Code