Horje
summarize within arcpy Code Example
summarize within arcpy
#-------------------------------------------------------------------------------
# Name: SummarizeWithin.py
# Description: Summarize river polylines by counties.

# Import system modules
import arcpy

arcpy.env.workspace = "C:/data/RedRiver_basin.gdb"

# Set local variables
summarizedLayer = "Rivers"
summaryPolys = "Basins"
summaryStatistics = [["Width", "MEAN"]]
weighedSummaryStatistics = [["DOC", "SUM"]]
out = 'SummarizedRivers'


# Execute SummarizeWithin
arcpy.gapro.SummarizeWithin(summarizedLayer, out, "POLYGON", None, 
                            None, summaryPolys, "ADD_SUMMARY", 
                            "KILOMETERS", summaryStatistics, 
                            weightedSummaryStatistics)
summarize within arcpy
arcpy.gapro.SummarizeWithin(summarized_layer, out_feature_class, polygon_or_bin, bin_type, {bin_size}, {summary_polygons}, sum_shape, {shape_units}, {standard_summary_fields}, {weighted_summary_fields}, {group_by_field}, {add_minority_majority}, {add_percentages}, {group_by_summary})




Python

Related
autoscrapper basic code Code Example autoscrapper basic code Code Example
Python String Index() Code Example Python String Index() Code Example
python call function that need args with decorator Code Example python call function that need args with decorator Code Example
how to Write the regular expression that will match all non-digit characters of a string. Code Example how to Write the regular expression that will match all non-digit characters of a string. Code Example
class dog_years:   years = 0   __      fido=Dog() fido.years=3 print(fido.dog_years()) Code Example class dog_years: years = 0 __ fido=Dog() fido.years=3 print(fido.dog_years()) Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6