Disponible con licencia de Business Analyst.
Resumen
Removes overlap (cannibalization) between trade areas
Ilustración
![Trade Area overlap Drive Time wide Trade Area overlap Drive Time wide](GUID-3C39ADA1-35A4-4E16-92B7-842789AE4C83-web.gif)
Uso
The spatial reference of the output feature class will be the same as the trade area layer.
The Trade Area Layer must be a polygon feature class.
In most cases, the Trade Area Layer will be a trade area created with Business Analyst.
The Remove Overlap Method parameter has two choices:
- THIESSEN_POLYGONS method will remove overlap using straight lines.
- The GRID method will remove overlap with a line that reflects the shape and curve of the input polygon feature class.
If trade areas do not overlap, the output feature class will contain the features from the input Trade Area Layer.
Sintaxis
arcpy.ba.RemoveTAOverlap(InputFeatureLayer, AssociatedStoreID, {CenterOfTA}, ApproachToRemoveOverlap, OutputFeatureClass, {StoreLayer}, {StoreIDField}, {WayToDefineWeights}, {WeightField})
Parámetro | Explicación | Tipo de datos |
InputFeatureLayer | The input features containing the overlapping trade areas. | Feature Layer |
AssociatedStoreID | Unique ID field in the trade area layer. | Field |
CenterOfTA (Opcional) | Field used to define the way a centroid is derived.
| String |
ApproachToRemoveOverlap | Defines the approach used to remove overlap between trade areas.
| String |
OutputFeatureClass | The feature class containing the new trade area features. | Feature Class |
StoreLayer (Opcional) | The input features containing center points for the overlapping trade areas. In most cases, this will be a Business Analyst store layer. | Feature Layer |
StoreIDField (Opcional) | Unique ID field in the store layer. | Field |
WayToDefineWeights (Opcional) | Method for removing overlap when using the grid approach.
| String |
WeightField (Opcional) | Field used to determine how the trade area overlap is influenced. Required when the grid approach and the weight definition method are set to USE_WEIGHT_FIELD. | Field |
Muestra de código
RemoveTAOverlap Example (Stand-alone Script)
# Name: RemoveTAOverlap.py
# Description: Removes overlap between selected trade areas.
# Author: Esri
# Import system modules
import arcview
import arcpy
arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
# Acquire extension license
arcpy.CheckOutExtension("Business")
# Define input and output parameters for the Remove Trade Area Overlap tool
InputFeatureLayer = "C:/temp/overlap.shp"
AssociatedStoreID = "<none>"
CenterOfTA = "USE_CENTROID"
ApproachToRemoveOverlap = "THIESSEN_POLYGONS"
OutputFeatureClass = "C:/temp/RAPolygon.shp"
StoreLayer = ""
StoreIDField = ""
WayToDefineWeights = ""
WeightField = ""
# Remove overlap based on trade areas
arcpy.RemoveTAOverlap_ba(InputFeatureLayer,
AssociatedStoreID,
CenterOfTA,
ApproachToRemoveOverlap,
OutputFeatureClass,
StoreLayer,
StoreIDField,
WayToDefineWeights,
WeightField)
# Release extension license
arcpy.CheckInExtension("Business")
Entornos
Esta herramienta no utiliza ningún entorno de geoprocesamiento.
Información de licenciamiento
- Basic: Requiere Business Analyst
- Standard: Requiere Business Analyst
- Advanced: Requiere Business Analyst