A shapefile dataset containing geographic features or non-spatial records.
Instances of this class respresent a Shapefile dataset that could include either geographic features. You can query the dataset using attribute or spatial criteria, and if permitted, also edit the data. You can display the geographic features on a map using AGSFeatureLayer
.
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.
Cancels loading if it is in progress, otherwise it does nothing. This should be called carefully because other objects could be waiting for loadWithCompletion:
or retryLoadWithCompletion:
to complete and this will call them all back with the error of NSUserCancelledError
Indicates whether the source allows this particular feature to be deleted. The method first checks to verify if the source is capable of deleting any features in general. It also checks specific ownership-based access control policies of the source to see if the user attempting to perform the operation has persmissions to delete this particular feature.
Indicates whether the source allows updating this particular feature. The method first checks to verify if the source is capable of updating any features in general. It also checks specific ownership-based access control policies of the source to see if the user attempting to perform the operation has persmissions to edit this patricular feature.
Close connection to the shapefile on disk. All use of this instance should cease before closing it. For example: remove feature layers from maps, and release feature tables. Any attempt to access this instance after it is closed will fail, resulting in an error. After closing the connection, the shapefile file can be deleted.
Create a new, empty feature. Note, the new feature is only available in memory at this point, it is not committed to the dataset.
addFeature:completion:
Create a new feature with the provided attribute values and, optionally, geometry. Note, the new feature is only available in memory at this point, it is not committed to the dataset.
addFeature:completion:
Convenience method to getting a field object given its name
Loads data for the object asynchronously. The completion block is invoked upon completion.
You can call this method any number of times, however only one attempt is made to load the data. If it is already loading, it will just continue to load (i.e. not force a reload). If it has already loaded successfully, the completion block will be invoked right away. If it has already failed to load, the completion block will be invoked right away with error previously encountered. This method supports multiple callers and will call them all back on completion. However, each caller's completion block will be invoked once and only once.
- cancelLoad
to cancel loading
- retryLoadWithCompletion:
to force reload
Query the dataset to find the geographic extent covering matched features or records.
AGSFeatureServiceSessionType
Query the dataset to find the number of matched features or records.
AGSFeatureServiceSessionType
Query the dataset to find specific features or records.
AGSFeatureServiceSessionType
Query the dataset to compute statistics on matched features or records.
AGSFeatureServiceSessionType
Tries to reload when an object has failed to load. This method should be called judiciously. It should be called when:
cancelLoad
and then this methodIf the data hasn't started loading, it will start loading. If it is already loading, it will just continue to load. If it has already loaded successfully, calls back right away. If it has already failed to load, tries again. This method supports multiple callers and will call them all back on completion. However, each caller's completion block will be invoked once and only once.
Indicates whether the source supports adding new features.
Indicates whether the source supports updating geometry of existing features.
User-friendly name that can be displayed in the UI (for example in a Table of Contents)
Indicates whether the dataset can be edited. For details on which fine-grained editing capabilites are supported, refer to canUpdateFeature:
and canDeleteFeature:
The extent of the dataset.
Array of AGSField
objects representing the fields (columns) in the dataset.
AGSField
Path to the shapefile dataset on disk.
The type of geometry used by geographic feautres. Only applicable if hasGeometry
is true.
Indicates whether the dataset contains a geometry field (column). If YES, the dataset contains geographic features. If NO, the dataset contains non-spatial records, similar to a database table.
Indicates whether features may contain M values
Indicates whether features may contain Z values
The error that was encountered during the most recent load operation. Will be nil if the operation succeeded.
Status of the load operation.
The total number of features or records in the dataset.
The AGSPopupDefinition
associated with the popup source. This property will be nil
if an error occurs or if the popup source is not associated with a popup definition.
Indicates whether popups are enabled on this source.
Metadata of the shapefile dataset. Only available if the shapefile dataset contains a .xml file.
Indicates whether or not the shapefile uses spatial indexes.
ArcGIS for 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.
The spatial reference of the dataset.
Name of the dataset.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4