Increase Line Length (Production Mapping)

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

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

Increases the lengths of lines from the center until they meet a specified length.

Рисунок

Increase Line Length example

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

Синтаксис

IncreaseLineLength_production (Input_Line_Features, Minimum_Length)
ПараметрОбъяснениеТип данных
Input_Line_Features

The line features to be lengthened.

Feature Layer
Minimum_Length

Any feature shorter than this length will be extended in both directions until it meets the minimum length value.

Linear unit

Пример кода

IncreaseLineLength example (stand-alone script)

This sample script increases the length of roads until they reach 400 feet.

# Name: IncreaseLineLength_Example.py
# Description:
# Author: Esri
# Date: February 2014

# Import arcpy module
import arcpy

# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")

# set environment
arcpy.env.workspace="c:/data/LocalGovernment.gdb"

# Define variables
inFeatures="ReferenceData/RoadCenterline"
inFeatureLyr="RoadLayer"
minLength="400 feet"

# make a feature layer from road centerlines
arcpy.MakeFeatureLayer_management(inFeatures,inFeatureLyr)

# Execute ExtendPolygonSides
arcpy.IncreaseLineLength_production(inFeatureLyr,minLength)

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

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

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

ArcGIS for Desktop Basic: Нет
ArcGIS for Desktop Standard: Требует Production Mapping
ArcGIS for Desktop Advanced: Требует Production Mapping
4/27/2014