ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

Split Features

  • Resumen
  • Uso
  • Sintaxis
  • Muestra de código
  • Entornos
  • Información de licenciamiento

Resumen

Splits features for any number of polyline or polygon target feature classes using the cutting features and inserts points on the cutting feature.

Uso

  • Cutting features must have at least one feature selected.

  • Target features will be divided into multiple features at any point where they intersect the source features.

  • Source features will have new vertices added at every point where they intersect the target features.

Sintaxis

arcpy.defense.SplitFeatures(cutting_features, target_features, use_target_z)
ParámetroExplicaciónTipo de datos
cutting_features

The source features used to split target features at intersection points of the feature class geometries.

Feature Layer
target_features
[target_features,...]

The features that will be divided by the cutting features.

Feature Layer
use_target_z

Determines the source of the z-value from the source or target.

  • USE_TARGET_Z —Uses the z-value from the source or target.
  • DONT_USE_TARGET_Z —Does not use the z-value. This is the default.
Boolean

Salida derivada

NombreExplicaciónTipo de datos
out_feature_layerFeature Layer

Muestra de código

SplitFeatures example (stand-alone script)

This script demonstrates how to use SplitFeatures.

# Name: SplitFeatures_Example.py
# Description: Split road features by AOI polygons
# Requirements: ArcGIS Defense Mapping solution

# Import the Arcpy module
import arcpy

# Check out Defense Mapping extension
arcpy.CheckOutExtension('defense')

# Set up the gp environment
arcpy.env.overwriteOutput = 1
arcpy.env.workspace = r"C:\Data\MGCP_TRD4.gdb"
arcpy.env.scratchWorkspace = r"C:\Data\SplitFeatures.gdb"

# Declare paths to AOI features and polyline features
AOIFeatures = r"C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.2\ReferenceData\MapIndex.mdb\MapIndex\TLM50_Index"
polylineFeautres = r"C:\Data\MGCP_TRD4.gdb\MGCP\RoadL"

# Create feature layers of the AOI
arcpy.management.MakeFeatureLayer(AOIFeatures, "AOIFeatures")

# Select specific AOIs
selection = "NRN = 'E732X57714'"
arcpy.management.SelectLayerByAttribute("AOIFeatures", "NEW_SELECTION", selection)

# Execute Split Features tool
arcpy.defense.SplitFeatures("AOIFeatures", polylineFeautres, "USE_TARGET_Z")

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Información de licenciamiento

  • Basic: No
  • Standard: Requiere Defense Mapping
  • Advanced: Requiere Defense Mapping

Temas relacionados

  • An overview of the Features toolset

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal