Class ShapefileFeatureTable
Represents a feature table based on a local Shapefile data source.
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
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.2.1 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.2.1 - 100.15 |
| Xamarin.iOS | 100.2.1 - 100.15 |
| UWP | 100.2.1 - 100.15 |