Remove Trade Area Overlap (Business Analyst)
概要
Removes overlap (cannibalization) between trade areas
図
使用法
-
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 ESRI Business Analyst.
-
The Remove Overlap Method parameter has two choices:
- THIESSEN_POLYGON 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.
構文
パラメータ | 説明 | データ タイプ |
InputFeatureLayer |
The input features containing the overlapping trade areas. | Feature Layer |
AssociatedStoreID |
Unique ID field in the trade area layer. | Field |
CenterOfTA (オプション) |
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 (オプション) |
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 (オプション) |
Unique ID field in the store layer. | Field |
WayToDefineWeights (オプション) |
Method for removing overlap when using the grid approach.
| String |
WeightField (オプション) |
Field used to determine how the trade area overlap is influenced. Used when the grid approach and the weight definition method are set to USE_WEIGHT_FIELD. | Field |
コード サンプル
# Name: RemoveTAOverlap.py # Description: Removes overlap between selected trade areas. # Author: ESRI # Import system modules import arcview import arcpy arcpy.AddToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx") try: # Acquire extension license arcpy.CheckOutExtension("Business") # Define input and output parameters for the Remove Trade Area Overlap tool Path = "C:/temp/overlap.shp" IdFld = "<none>" OutPath = "C:/temp/RAPolygon.shp" # Remove overlap based on trade areas arcpy.RemoveTAOverlap_ba(Path, IdFld, "USE_CENTROID", "THIESSEN_POLYGONS", OutPath) # Release extension license arcpy.CheckInExtension("Business") except: print arcpy.GetMessages(2)