Show / Hide Table of Contents

Class ShapefileFeatureTable

Represents a feature table based on a local Shapefile data source.

Inheritance
Object
FeatureTable
ShapefileFeatureTable
Implements
INotifyPropertyChanged
ILoadable
FeatureTable.Layer
FeatureTable.Extent
FeatureTable.IsPopupEnabled
FeatureTable.Fields
FeatureTable.GeometryType
FeatureTable.HasGeometry
FeatureTable.IsEditable
FeatureTable.LoadError
FeatureTable.LoadStatus
FeatureTable.NumberOfFeatures
FeatureTable.SpatialReference
FeatureTable.TableName
FeatureTable.HasM
FeatureTable.HasZ
FeatureTable.PopupDefinition
FeatureTable.DisplayName
FeatureTable.LoadAsync()
FeatureTable.RetryLoadAsync()
FeatureTable.AddFeatureAsync(Feature)
FeatureTable.AddFeaturesAsync(IEnumerable<Feature>)
FeatureTable.CanAdd()
FeatureTable.CanDelete(Feature)
FeatureTable.CanUpdate(Feature)
FeatureTable.CanEditGeometry()
FeatureTable.CancelLoad()
FeatureTable.CreateFeature()
FeatureTable.CreateFeature(IEnumerable<KeyValuePair<String, Object>>, Geometry)
FeatureTable.DeleteFeatureAsync(Feature)
FeatureTable.DeleteFeaturesAsync(IEnumerable<Feature>)
FeatureTable.GetField(String)
FeatureTable.QueryFeaturesAsync(QueryParameters)
FeatureTable.QueryFeaturesAsync(QueryParameters, CancellationToken)
FeatureTable.UpdateFeatureAsync(Feature)
FeatureTable.UpdateFeaturesAsync(IEnumerable<Feature>)
FeatureTable.QueryStatisticsAsync(StatisticsQueryParameters)
FeatureTable.QueryExtentAsync(QueryParameters)
FeatureTable.QueryFeatureCountAsync(QueryParameters)
FeatureTable.PropertyChanged
FeatureTable.Loaded
FeatureTable.LoadStatusChanged
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ShapefileFeatureTable : FeatureTable, INotifyPropertyChanged, ILoadable
Remarks

A shapefile dataset consists of at least three files: *.shp, *.shx, and *.dbf (and may include various others). Open a shapefile using the path to the *.shp file (specified in Path). The associated *.shx and *.dbf files must be present at the same location and each of the component files of a shapefile must be smaller than 2 GB. If the minimum required files are not present(or larger than 2 GB), the table will fail to load. If the file permissions are read-only, features cannot be edited. On-the-fly projection of a shapefile is only supported if an associated *.prj file is present. Otherwise, the features are assumed to have the same spatial reference as the map.

Constructors

Name Description
ShapefileFeatureTable(String)

Initializes a new instance of the ShapefileFeatureTable class.

Properties

Name Description
Info

Gets the shapefile info.

Path

Gets or sets the path to the shapefile

SpatialIndexEnabled

Gets a value indicating whether the shapefile uses spatial indexes.

Methods

Name Description
Close()

Close a shapefile feature table.

OpenAsync(String)

Creates and initializes a ShapefileFeatureTable from a file path.

See Also

FeatureLayer

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.2
.NET 6.0100.13 - 200.2
.NET 6.0 Windows100.13 - 200.2
.NET 6.0 Android200.0 - 200.2
.NET 6.0 iOS200.0 - 200.2
.NET Framework100.2.1 - 200.2
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.2.1 - 100.15
iOS100.2.1 - 100.15
UWP100.2.1 - 200.2

Relevant samples

Feature layer (shapefile): Open a shapefile stored on the device and display it as a feature layer with default symbology.
Read shapefile metadata: Read a shapefile and display its metadata.
Symbolize shapefile: Display a shapefile with custom symbology.
In This Article
Back to top Copyright © 2022 Esri.