Summary
Manages the feature binning cache for data with feature binning enabled.
Feature binning aggregates large amounts of point features into dynamic polygon bins that vary through scaled levels of detail. Learn how to enable feature binning and work with binned feature layers
Usage
Use this tool when feature binning has been enabled on a feature class and a static cache has been generated. If the underlying data has changed, run this tool to update the cache to reflect the most recent state of the data. If you run this tool on a feature class without a static cache, a static cache is generated. Use this tool to add or delete summary statistics that are stored in the cache, or to modify the cache level of detail.
Feature binning is only supported for point and multipoint feature classes stored in an enterprise geodatabase or database on the following platforms:
- IBM Db2
- Microsoft SQL Server
- Oracle
- PostgreSQL
- SAP HANA
Use the Level of Detail parameter to specify the maximum level of detail for the tiling scheme to include in the cache. Tiling schemes are a continuum of scale ranges. Depending on your map, you may want to forego caching of some of the extremely large or small scales in your tiling scheme. Choose a level of detail that most closely matches the intended use of the map in which the data will be shown.
Syntax
arcpy.management.ManageFeatureBinCache(in_features, {bin_type}, {max_lod}, {add_cache_statistics}, {delete_cache_statistics})
Parameter | Explanation | Data Type |
in_features | The binning-enabled feature class that will have its static cache updated. | Feature Layer |
bin_type (Optional) | Specifies the type of binning that will be enabled. If you are using SAP HANA data, only square bins are supported.
| String |
max_lod (Optional) | Specifies the maximum level of detail that will be used for the cache. Tiling schemes are a continuum of scale ranges. Depending on your map, you may want to forego caching of some of the extremely large or small scales in your tiling scheme. This tool examines the scale dependencies in your map and attempts to provide a maximum range of scale for caching. Choose a level of detail that most closely matches the intended use of the map in which the data will be shown.
| String |
add_cache_statistics [[Field, Statistic Type],...] (Optional) | Specifies the statistics that will be summarized and stored in the bin cache. Statistics are used to symbolize bins and provide aggregate information for all the points in a bin. One summary statistic, shape_count (which is the total feature count), is always available.
| Value Table |
delete_cache_statistics [delete_cache_statistics,...] (Optional) | The summary statistic that will be deleted from the cache. You cannot delete the default COUNT summary statistic. | String |
Derived Output
Name | Explanation | Data Type |
out_features | The input features with the updated feature bin cache. | Feature Layer |
Code sample
Add a new statistic to calculate the maximum depth and set the level of detail of the feature bin cache for a feature layer named Earthquakes.
import arcpy
arcpy.ManageFeatureBinCache_management("lod_gdb.elec.Earthquakes", "SQUARE",
"STATE", "depth_km MAX")
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes