Show / Hide Table of Contents

Class ShapefileFeatureTable

A table of features that typically represents real-world objects created from a local shapefile data source.

Inheritance
System.Object
FeatureTable
ShapefileFeatureTable
Implements
System.ComponentModel.INotifyPropertyChanged
ILoadable
IPopupSource
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.GetPopupDefinition(Feature)
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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ShapefileFeatureTable : FeatureTable, INotifyPropertyChanged, ILoadable, IPopupSource
Remarks

A shapefile is a vector data storage format that stores the location, shape, and attributes of geographic features with the same geometry type (such as point, line, and polygon) and the same spatial reference. A shapefile dataset consists of at least three files (.shp, .shx, .dbf), and may include many others. Each of the component files of a shapefile must be smaller than 2 GB. If the minimum required files are not present (or are larger than 2 GB), the table will fail to load. If the file permissions are read-only, features cannot be edited.

See Shapefiles in ArcGIS Pro for more information about shapefile data types and limitations.

On-the-fly projection of a shapefile is supported if an associated .prj file is present. Otherwise, the features are assumed to have the same spatial reference as the map.

A default renderer is used to render a shapefile feature table in a feature layer. In most cases, the default should be replaced with a custom renderer.

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()

Closes 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.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7

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.