Market Ranking Report (Business Analyst)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

Generates a report to rank data based on a selected variable.

Learn more about how the Market Ranking Report works

Использование

Синтаксис

MarketRankingReport_ba (InputFeatureLayer, NameField, IDField, {UseSelectedFeaturesOnly}, {UsePercentages}, {PercentageFieldName}, {UseAdditionalFields}, {UseAllInputFeatures}, {NumberOfOutputFeatures}, {UseSummOfRank}, {IDsOfFeaturesForRanking}, {CreateReport}, {ReportTitle}, {ReportDir}, {CreateFeatureClass}, OutputFeatureClass, {ReportFormats})
ПараметрОбъяснениеТип данных
InputFeatureLayer

The input feature class to be ranked.

Feature Layer
NameField

The unique ID of the Rank Markets Layer.

Field
IDField

The attribute that will be used to rank the market ranking layer.

Field
UseSelectedFeaturesOnly
(дополнительно)

Generates a report on selected features of the market ranking layer.

  • TrueGenerates the market ranking report on selected features.
  • FalseGenerates the market ranking report on all features. This is the default.
Boolean
UsePercentages
(дополнительно)

Generates a percentage of the ranking attribute based on another attribute.

  • TrueCreates a percentage of the ranking attribute.
  • FalseDoes not create a percentage of the ranking attribute. This is the default.
Boolean
PercentageFieldName
(дополнительно)

This field is used to calculate a percentage based on the Primary Field to Rank. The percentage is calculated by dividing the Primary Field to Rank by the Field to Percentage

Field
UseAdditionalFields
[[Name, {Alias}, {Add to report}],...]
(дополнительно)

Additional fields to rank from the market ranking layer.

Value Table
UseAllInputFeatures
(дополнительно)

Ranks the features in the market ranking layer.

  • TrueRanks all the features in the market ranking layer.
  • FalseRanks only selected features in the market ranking layer. This is the default.
Boolean
NumberOfOutputFeatures
(дополнительно)

Limits the number of features to rank to the top n features. For example, rank only the top 100 features based on the primary rank field. The default is 1000.

Long
UseSummOfRank
(дополнительно)

Creates a new field that sums the rank order of each rank variable.

  • TrueCreates a new field that sums the number of ranks.
  • FalseDoes not create a new field that sums the number of ranks. This is the default
Boolean
IDsOfFeaturesForRanking
(дополнительно)

Selects the rank field to be filtered by descending values.

File
CreateReport
(дополнительно)

Generates an output report.

  • TrueCreates a market ranking report. This is the default
  • FalseDoes not create a market ranking report.
Boolean
ReportTitle
(дополнительно)

The title for the report.

String
ReportDir
(дополнительно)

The output directory that will contain the report.

Folder
CreateFeatureClass
(дополнительно)

Outputs the results as a new feature class.

  • TrueCreates a new output feature class.
  • FalseDoes not create an output feature class. This is the default.
Boolean
OutputFeatureClass

The output feature class containing the new ranked features.

Feature Class
ReportFormats
[ReportFormats,...]
(дополнительно)

The desired report output format.

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSV
  • Stripped XLSX
String

Пример кода

MarketRankingReport Example (Stand-alone Script)
# Name: MarketRankingReport.py
# Description: Ranks total population in the US by CBSA.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
 
# Define input and output parameters for the Market Ranking Report tool
  MarketRankingLayer = "C:/ArcGIS/Business Analyst/US_2013/Data/BDS/esri_cbsa.bds"
  ID = "ID"
  RankVar = "TOTPOP_CY"
   
# Create market ranking reports
  arcpy.MarketRankingReport_ba(MarketRankingLayer, ID, RankVar)
 
# Release extension license 
  arcpy.CheckInExtension("Business")
 
except:
  print arcpy.GetMessages(2)

Параметры среды

Этот инструмент не использует параметры среды геообработки

Связанные темы

Информация о лицензировании

ArcGIS for Desktop Basic: Требует Business Analyst
ArcGIS for Desktop Standard: Требует Business Analyst
ArcGIS for Desktop Advanced: Требует Business Analyst
4/27/2014