Method OpenAsync
OpenAsync(String)
Creates and initializes a ShapefileFeatureTable from a file path.
Declaration
public static async Task<ShapefileFeatureTable> OpenAsync(string shapefilePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | shapefilePath | Path to the *.shp shape file. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ShapefileFeatureTable> | A task that represents the asynchronous open operation. The value of the task result is a ShapefileFeatureTable object. |
Remarks
When creating a shapefile feature table, the shapefilePath
must point to the *.shp file and the associated *.shx and *.dbf files must be present at the same location.
Applies to
Platforms and versions
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 |
Relevant samples
Display feature layers: 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.