Skip To Content ArcGIS for Developers Sign In Dashboard

ShapefileFeatureTable QML Type

A feature table created from an ArcGIS feature service. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.2
Inherits:

FeatureTable

Properties

Signals

Methods

Detailed Description

A shapefile is a simple, nontopological format for storing the geometric location and attribute information of geographic features. A shapefile is one of the spatial data formats that you can work with and edit in ArcGIS.

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 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. 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.

Property Documentation

info : ShapefileInfo

Returns the ShapefileInfo for the specified shapefile (read-only).

This property is populated after the table loads.

If the shapefile has an associated .xml file, a shapefile info object will be created and populated with metadata from the file. Otherwise this will return null.


path : url

Returns the path to the local shapefile.

This is always a local file path.

The file referenced must have the .shp extension.


spatialIndexEnabled : bool

Returns whether the shapefile uses spatial indexes (read-only).

This property is populated after the table loads.

ArcGIS Desktop can be used to create spatial indexes for shapefiles, stored in .sbn and .sbx files. Having a current spatial index ensures that a high level of performance is maintained when drawing and working with the shapefile's features and that the shapefile's extent is accurate.


Signal Documentation

infoChanged()

Emitted when the info property changes.


pathChanged()

Emitted when the path property changes.


spatialIndexEnabledChanged()

Emitted when the spatialIndexEnabled property changes.


Method Documentation

void close()

Closes the ShapefileFeatureTable by forcefully removing all internal references to it.

Sometimes it is necessary to close a ShapefileFeatureTable and remove references to it so the source shapefile can be deleted by the same app that has been using it. This workflow can be difficult when there can be outstanding references that may be difficult to track and delete.

Stop using the ShapefileFeatureTable before calling close. For example, remove from maps any feature layers use the ShapefileFeatureTable.

After calling ShapefileFeatureTable::close, the ShapefileFeatureTable object is in an undefined state and should no longer be used.

This QML method was introduced in Esri.ArcGISRuntime 100.3.



Feedback on this topic?